OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef BASE_TRACE_EVENT_TRACE_LOG_H_ | 5 #ifndef BASE_TRACE_EVENT_TRACE_LOG_H_ |
6 #define BASE_TRACE_EVENT_TRACE_LOG_H_ | 6 #define BASE_TRACE_EVENT_TRACE_LOG_H_ |
7 | 7 |
| 8 #include "base/gtest_prod_util.h" |
8 #include "base/trace_event/memory_dump_provider.h" | 9 #include "base/trace_event/memory_dump_provider.h" |
9 #include "base/trace_event/trace_config.h" | 10 #include "base/trace_event/trace_config.h" |
10 #include "base/trace_event/trace_event_impl.h" | 11 #include "base/trace_event/trace_event_impl.h" |
11 | 12 |
12 // Older style trace macros with explicit id and extra data | 13 // Older style trace macros with explicit id and extra data |
13 // Only these macros result in publishing data to ETW as currently implemented. | 14 // Only these macros result in publishing data to ETW as currently implemented. |
14 // TODO(georgesak): Update/replace these with new ETW macros. | 15 // TODO(georgesak): Update/replace these with new ETW macros. |
15 #define TRACE_EVENT_BEGIN_ETW(name, id, extra) \ | 16 #define TRACE_EVENT_BEGIN_ETW(name, id, extra) \ |
16 base::trace_event::TraceLog::AddTraceEventEtw( \ | 17 base::trace_event::TraceLog::AddTraceEventEtw( \ |
17 TRACE_EVENT_PHASE_BEGIN, name, reinterpret_cast<const void*>(id), extra) | 18 TRACE_EVENT_PHASE_BEGIN, name, reinterpret_cast<const void*>(id), extra) |
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 subtle::AtomicWord generation_; | 485 subtle::AtomicWord generation_; |
485 bool use_worker_thread_; | 486 bool use_worker_thread_; |
486 | 487 |
487 DISALLOW_COPY_AND_ASSIGN(TraceLog); | 488 DISALLOW_COPY_AND_ASSIGN(TraceLog); |
488 }; | 489 }; |
489 | 490 |
490 } // namespace trace_event | 491 } // namespace trace_event |
491 } // namespace base | 492 } // namespace base |
492 | 493 |
493 #endif // BASE_TRACE_EVENT_TRACE_LOG_H_ | 494 #endif // BASE_TRACE_EVENT_TRACE_LOG_H_ |
OLD | NEW |