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

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

Issue 11366109: Adding raw tracing to trace framework. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo. Created 7 years, 10 months 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
« no previous file with comments | « no previous file | base/debug/trace_event_impl.h » ('j') | base/debug/trace_event_impl.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 header defines the set of functions necessary for trace_event_internal.h 5 // This header defines the set of functions necessary for trace_event_internal.h
6 // to remain platform and context neutral. To use tracing in another context, 6 // to remain platform and context neutral. To use tracing in another context,
7 // copy this header (and trace_event_internal.h) and implement the 7 // copy this header (and trace_event_internal.h) and implement the
8 // TRACE_EVENT_API_* macros below for the new environment. 8 // TRACE_EVENT_API_* macros below for the new environment.
9 9
10 #ifndef BASE_DEBUG_TRACE_EVENT_H_ 10 #ifndef BASE_DEBUG_TRACE_EVENT_H_
(...skipping 18 matching lines...) Expand all
29 // TRACE_EVENT_API_GET_CATEGORY_ENABLED(const char* category_name) 29 // TRACE_EVENT_API_GET_CATEGORY_ENABLED(const char* category_name)
30 #define TRACE_EVENT_API_GET_CATEGORY_ENABLED \ 30 #define TRACE_EVENT_API_GET_CATEGORY_ENABLED \
31 base::debug::TraceLog::GetCategoryEnabled 31 base::debug::TraceLog::GetCategoryEnabled
32 32
33 // Add a trace event to the platform tracing system. 33 // Add a trace event to the platform tracing system.
34 // void TRACE_EVENT_API_ADD_TRACE_EVENT( 34 // void TRACE_EVENT_API_ADD_TRACE_EVENT(
35 // char phase, 35 // char phase,
36 // const unsigned char* category_enabled, 36 // const unsigned char* category_enabled,
37 // const char* name, 37 // const char* name,
38 // unsigned long long id, 38 // unsigned long long id,
39 // int thread_id,
40 // int64 timestamp,
jar (doing other things) 2013/02/14 02:17:54 nit: This arg list as waaaay long, and it is sadde
dsinclair 2013/02/14 15:38:47 Done.
39 // int num_args, 41 // int num_args,
40 // const char** arg_names, 42 // const char** arg_names,
41 // const unsigned char* arg_types, 43 // const unsigned char* arg_types,
42 // const unsigned long long* arg_values, 44 // const unsigned long long* arg_values,
43 // unsigned char flags) 45 // unsigned char flags)
44 #define TRACE_EVENT_API_ADD_TRACE_EVENT \ 46 #define TRACE_EVENT_API_ADD_TRACE_EVENT \
45 base::debug::TraceLog::GetInstance()->AddTraceEvent 47 base::debug::TraceLog::GetInstance()->AddTraceEvent
46 48
47 // Defines atomic operations used internally by the tracing system. 49 // Defines atomic operations used internally by the tracing system.
48 #define TRACE_EVENT_API_ATOMIC_WORD base::subtle::AtomicWord 50 #define TRACE_EVENT_API_ATOMIC_WORD base::subtle::AtomicWord
49 #define TRACE_EVENT_API_ATOMIC_LOAD(var) base::subtle::NoBarrier_Load(&(var)) 51 #define TRACE_EVENT_API_ATOMIC_LOAD(var) base::subtle::NoBarrier_Load(&(var))
50 #define TRACE_EVENT_API_ATOMIC_STORE(var, value) \ 52 #define TRACE_EVENT_API_ATOMIC_STORE(var, value) \
51 base::subtle::NoBarrier_Store(&(var), (value)) 53 base::subtle::NoBarrier_Store(&(var), (value))
52 54
53 // Defines visibility for classes in trace_event_internal.h 55 // Defines visibility for classes in trace_event_internal.h
54 #define TRACE_EVENT_API_CLASS_EXPORT BASE_EXPORT 56 #define TRACE_EVENT_API_CLASS_EXPORT BASE_EXPORT
55 57
56 //////////////////////////////////////////////////////////////////////////////// 58 ////////////////////////////////////////////////////////////////////////////////
57 59
58 #include "base/debug/trace_event_internal.h" 60 #include "base/debug/trace_event_internal.h"
59 61
60 #endif /* BASE_DEBUG_TRACE_EVENT_H_ */ 62 #endif /* BASE_DEBUG_TRACE_EVENT_H_ */
OLDNEW
« no previous file with comments | « no previous file | base/debug/trace_event_impl.h » ('j') | base/debug/trace_event_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698