| 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_TRACE_EVENT_TRACE_EVENT_IMPL_H_ | 6 #ifndef BASE_TRACE_EVENT_TRACE_EVENT_IMPL_H_ |
| 7 #define BASE_TRACE_EVENT_TRACE_EVENT_IMPL_H_ | 7 #define BASE_TRACE_EVENT_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/atomicops.h" | 13 #include "base/atomicops.h" |
| 14 #include "base/base_export.h" | 14 #include "base/base_export.h" |
| 15 #include "base/callback.h" | 15 #include "base/callback.h" |
| 16 #include "base/containers/hash_tables.h" | 16 #include "base/containers/hash_tables.h" |
| 17 #include "base/gtest_prod_util.h" | 17 #include "base/gtest_prod_util.h" |
| 18 #include "base/memory/ref_counted_memory.h" | 18 #include "base/memory/ref_counted_memory.h" |
| 19 #include "base/memory/scoped_vector.h" | 19 #include "base/memory/scoped_vector.h" |
| 20 #include "base/observer_list.h" | 20 #include "base/observer_list.h" |
| 21 #include "base/single_thread_task_runner.h" | 21 #include "base/single_thread_task_runner.h" |
| 22 #include "base/strings/string_util.h" | 22 #include "base/strings/string_util.h" |
| 23 #include "base/synchronization/condition_variable.h" | 23 #include "base/synchronization/condition_variable.h" |
| 24 #include "base/synchronization/lock.h" | 24 #include "base/synchronization/lock.h" |
| 25 #include "base/threading/thread.h" | 25 #include "base/threading/thread.h" |
| 26 #include "base/threading/thread_local.h" | 26 #include "base/threading/thread_local.h" |
| 27 #include "base/trace_event/memory_dump_provider.h" | 27 #include "base/trace_event/memory_dump_provider.h" |
| 28 #include "base/trace_event/startup_tracing.h" |
| 28 #include "base/trace_event/trace_config.h" | 29 #include "base/trace_event/trace_config.h" |
| 29 #include "base/trace_event/trace_event_memory_overhead.h" | 30 #include "base/trace_event/trace_event_memory_overhead.h" |
| 30 | 31 |
| 31 // Older style trace macros with explicit id and extra data | 32 // Older style trace macros with explicit id and extra data |
| 32 // Only these macros result in publishing data to ETW as currently implemented. | 33 // Only these macros result in publishing data to ETW as currently implemented. |
| 33 // TODO(georgesak): Update/replace these with new ETW macros. | 34 // TODO(georgesak): Update/replace these with new ETW macros. |
| 34 #define TRACE_EVENT_BEGIN_ETW(name, id, extra) \ | 35 #define TRACE_EVENT_BEGIN_ETW(name, id, extra) \ |
| 35 base::trace_event::TraceLog::AddTraceEventEtw( \ | 36 base::trace_event::TraceLog::AddTraceEventEtw( \ |
| 36 TRACE_EVENT_PHASE_BEGIN, \ | 37 TRACE_EVENT_PHASE_BEGIN, \ |
| 37 name, reinterpret_cast<const void*>(id), extra) | 38 name, reinterpret_cast<const void*>(id), extra) |
| (...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 695 subtle::AtomicWord generation_; | 696 subtle::AtomicWord generation_; |
| 696 bool use_worker_thread_; | 697 bool use_worker_thread_; |
| 697 | 698 |
| 698 DISALLOW_COPY_AND_ASSIGN(TraceLog); | 699 DISALLOW_COPY_AND_ASSIGN(TraceLog); |
| 699 }; | 700 }; |
| 700 | 701 |
| 701 } // namespace trace_event | 702 } // namespace trace_event |
| 702 } // namespace base | 703 } // namespace base |
| 703 | 704 |
| 704 #endif // BASE_TRACE_EVENT_TRACE_EVENT_IMPL_H_ | 705 #endif // BASE_TRACE_EVENT_TRACE_EVENT_IMPL_H_ |
| OLD | NEW |