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 // This file contains the Windows-specific declarations for trace_event.h. | 5 // This file contains the Windows-specific declarations for trace_event.h. |
6 #ifndef BASE_TRACE_EVENT_TRACE_EVENT_WIN_H_ | 6 #ifndef BASE_TRACE_EVENT_TRACE_EVENT_WIN_H_ |
7 #define BASE_TRACE_EVENT_TRACE_EVENT_WIN_H_ | 7 #define BASE_TRACE_EVENT_TRACE_EVENT_WIN_H_ |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/base_export.h" | 11 #include "base/base_export.h" |
12 #include "base/trace_event/trace_event.h" | 12 #include "base/trace_event/trace_event.h" |
13 #include "base/win/event_trace_provider.h" | 13 #include "base/win/event_trace_provider.h" |
14 | 14 |
15 // Fwd. | 15 namespace base { |
| 16 |
16 template <typename Type> | 17 template <typename Type> |
17 struct StaticMemorySingletonTraits; | 18 struct StaticMemorySingletonTraits; |
18 | 19 |
19 namespace base { | |
20 namespace trace_event { | 20 namespace trace_event { |
21 | 21 |
22 // This EtwTraceProvider subclass implements ETW logging | 22 // This EtwTraceProvider subclass implements ETW logging |
23 // for the macros above on Windows. | 23 // for the macros above on Windows. |
24 class BASE_EXPORT TraceEventETWProvider : public base::win::EtwTraceProvider { | 24 class BASE_EXPORT TraceEventETWProvider : public base::win::EtwTraceProvider { |
25 public: | 25 public: |
26 static const size_t kUseStrlen = static_cast<size_t>(-1); | 26 static const size_t kUseStrlen = static_cast<size_t>(-1); |
27 | 27 |
28 // Start logging trace events. | 28 // Start logging trace events. |
29 // This is a noop in this implementation. | 29 // This is a noop in this implementation. |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 // The "name" string as a zero-terminated ASCII string. | 116 // The "name" string as a zero-terminated ASCII string. |
117 // The id pointer in the machine bitness. | 117 // The id pointer in the machine bitness. |
118 // The "extra" string as a zero-terminated ASCII string. | 118 // The "extra" string as a zero-terminated ASCII string. |
119 // Optionally the stack trace, consisting of a DWORD "depth", followed | 119 // Optionally the stack trace, consisting of a DWORD "depth", followed |
120 // by an array of void* (machine bitness) of length "depth". | 120 // by an array of void* (machine bitness) of length "depth". |
121 | 121 |
122 } // namespace trace_event | 122 } // namespace trace_event |
123 } // namespace base | 123 } // namespace base |
124 | 124 |
125 #endif // BASE_TRACE_EVENT_TRACE_EVENT_WIN_H_ | 125 #endif // BASE_TRACE_EVENT_TRACE_EVENT_WIN_H_ |
OLD | NEW |