OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 | 5 |
6 #ifndef BASE_DEBUG_TRACE_EVENT_IMPL_H_ | 6 #ifndef BASE_DEBUG_TRACE_EVENT_IMPL_H_ |
7 #define BASE_DEBUG_TRACE_EVENT_IMPL_H_ | 7 #define BASE_DEBUG_TRACE_EVENT_IMPL_H_ |
8 | 8 |
9 #include <stack> | 9 #include <stack> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
15 #include "base/hash_tables.h" | 15 #include "base/hash_tables.h" |
16 #include "base/memory/ref_counted_memory.h" | 16 #include "base/memory/ref_counted_memory.h" |
17 #include "base/memory/scoped_vector.h" | 17 #include "base/memory/scoped_vector.h" |
18 #include "base/observer_list.h" | 18 #include "base/observer_list.h" |
19 #include "base/string_util.h" | 19 #include "base/strings/string_util.h" |
20 #include "base/synchronization/condition_variable.h" | 20 #include "base/synchronization/condition_variable.h" |
21 #include "base/synchronization/lock.h" | 21 #include "base/synchronization/lock.h" |
22 #include "base/threading/thread.h" | 22 #include "base/threading/thread.h" |
23 #include "base/timer.h" | 23 #include "base/timer.h" |
24 | 24 |
25 // Older style trace macros with explicit id and extra data | 25 // Older style trace macros with explicit id and extra data |
26 // Only these macros result in publishing data to ETW as currently implemented. | 26 // Only these macros result in publishing data to ETW as currently implemented. |
27 #define TRACE_EVENT_BEGIN_ETW(name, id, extra) \ | 27 #define TRACE_EVENT_BEGIN_ETW(name, id, extra) \ |
28 base::debug::TraceLog::AddTraceEventEtw( \ | 28 base::debug::TraceLog::AddTraceEventEtw( \ |
29 TRACE_EVENT_PHASE_BEGIN, \ | 29 TRACE_EVENT_PHASE_BEGIN, \ |
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 | 563 |
564 CategoryFilter category_filter_; | 564 CategoryFilter category_filter_; |
565 | 565 |
566 DISALLOW_COPY_AND_ASSIGN(TraceLog); | 566 DISALLOW_COPY_AND_ASSIGN(TraceLog); |
567 }; | 567 }; |
568 | 568 |
569 } // namespace debug | 569 } // namespace debug |
570 } // namespace base | 570 } // namespace base |
571 | 571 |
572 #endif // BASE_DEBUG_TRACE_EVENT_IMPL_H_ | 572 #endif // BASE_DEBUG_TRACE_EVENT_IMPL_H_ |
OLD | NEW |