Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: base/debug/trace_event_win.h

Issue 8590015: trace_event: distinguish between scoped begin/end and global start/finish events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: jam, nduca feedback Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_DEBUG_TRACE_EVENT_WIN_H_ 6 #ifndef BASE_DEBUG_TRACE_EVENT_WIN_H_
7 #define BASE_DEBUG_TRACE_EVENT_WIN_H_ 7 #define BASE_DEBUG_TRACE_EVENT_WIN_H_
8 #pragma once 8 #pragma once
9 9
10 #include <string> 10 #include <string>
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 // The ETW event class GUID for 64 bit events. 101 // The ETW event class GUID for 64 bit events.
102 BASE_EXPORT extern const GUID kTraceEventClass64; 102 BASE_EXPORT extern const GUID kTraceEventClass64;
103 103
104 // The ETW event types, IDs 0x00-0x09 are reserved, so start at 0x10. 104 // The ETW event types, IDs 0x00-0x09 are reserved, so start at 0x10.
105 const base::win::EtwEventType kTraceEventTypeBegin = 0x10; 105 const base::win::EtwEventType kTraceEventTypeBegin = 0x10;
106 const base::win::EtwEventType kTraceEventTypeEnd = 0x11; 106 const base::win::EtwEventType kTraceEventTypeEnd = 0x11;
107 const base::win::EtwEventType kTraceEventTypeInstant = 0x12; 107 const base::win::EtwEventType kTraceEventTypeInstant = 0x12;
108 108
109 // If this flag is set in enable flags 109 // If this flag is set in enable flags
110 enum TraceEventFlags { 110 enum TraceEventETWFlags {
111 CAPTURE_STACK_TRACE = 0x0001, 111 CAPTURE_STACK_TRACE = 0x0001,
112 }; 112 };
113 113
114 // The event format consists of: 114 // The event format consists of:
115 // The "name" string as a zero-terminated ASCII string. 115 // The "name" string as a zero-terminated ASCII string.
116 // The id pointer in the machine bitness. 116 // The id pointer in the machine bitness.
117 // The "extra" string as a zero-terminated ASCII string. 117 // The "extra" string as a zero-terminated ASCII string.
118 // Optionally the stack trace, consisting of a DWORD "depth", followed 118 // Optionally the stack trace, consisting of a DWORD "depth", followed
119 // by an array of void* (machine bitness) of length "depth". 119 // by an array of void* (machine bitness) of length "depth".
120 120
121 } // namespace debug 121 } // namespace debug
122 } // namespace base 122 } // namespace base
123 123
124 #endif // BASE_DEBUG_TRACE_EVENT_WIN_H_ 124 #endif // BASE_DEBUG_TRACE_EVENT_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698