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

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

Issue 988693005: Chromium roll (https://codereview.chromium.org/976353002) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: fixed bad android build patch Created 5 years, 9 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
« no previous file with comments | « base/trace_event/process_memory_totals_dump_provider.cc ('k') | base/values.h » ('j') | no next file with comments »
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 file defines the set of trace_event macros without specifying 5 // This header file defines the set of trace_event macros without specifying
6 // how the events actually get collected and stored. If you need to expose trace 6 // how the events actually get collected and stored. If you need to expose trace
7 // events to some other universe, you can copy-and-paste this file as well as 7 // events to some other universe, you can copy-and-paste this file as well as
8 // trace_event.h, modifying the macros contained there as necessary for the 8 // trace_event.h, modifying the macros contained there as necessary for the
9 // target platform. The end result is that multiple libraries can funnel events 9 // target platform. The end result is that multiple libraries can funnel events
10 // through to a shared trace event collector. 10 // through to a shared trace event collector.
(...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 #define TRACE_EVENT_PHASE_NESTABLE_ASYNC_INSTANT ('n') 1032 #define TRACE_EVENT_PHASE_NESTABLE_ASYNC_INSTANT ('n')
1033 #define TRACE_EVENT_PHASE_FLOW_BEGIN ('s') 1033 #define TRACE_EVENT_PHASE_FLOW_BEGIN ('s')
1034 #define TRACE_EVENT_PHASE_FLOW_STEP ('t') 1034 #define TRACE_EVENT_PHASE_FLOW_STEP ('t')
1035 #define TRACE_EVENT_PHASE_FLOW_END ('f') 1035 #define TRACE_EVENT_PHASE_FLOW_END ('f')
1036 #define TRACE_EVENT_PHASE_METADATA ('M') 1036 #define TRACE_EVENT_PHASE_METADATA ('M')
1037 #define TRACE_EVENT_PHASE_COUNTER ('C') 1037 #define TRACE_EVENT_PHASE_COUNTER ('C')
1038 #define TRACE_EVENT_PHASE_SAMPLE ('P') 1038 #define TRACE_EVENT_PHASE_SAMPLE ('P')
1039 #define TRACE_EVENT_PHASE_CREATE_OBJECT ('N') 1039 #define TRACE_EVENT_PHASE_CREATE_OBJECT ('N')
1040 #define TRACE_EVENT_PHASE_SNAPSHOT_OBJECT ('O') 1040 #define TRACE_EVENT_PHASE_SNAPSHOT_OBJECT ('O')
1041 #define TRACE_EVENT_PHASE_DELETE_OBJECT ('D') 1041 #define TRACE_EVENT_PHASE_DELETE_OBJECT ('D')
1042 #define TRACE_EVENT_PHASE_MEMORY_DUMP ('v')
1042 1043
1043 // Flags for changing the behavior of TRACE_EVENT_API_ADD_TRACE_EVENT. 1044 // Flags for changing the behavior of TRACE_EVENT_API_ADD_TRACE_EVENT.
1044 #define TRACE_EVENT_FLAG_NONE (static_cast<unsigned char>(0)) 1045 #define TRACE_EVENT_FLAG_NONE (static_cast<unsigned char>(0))
1045 #define TRACE_EVENT_FLAG_COPY (static_cast<unsigned char>(1 << 0)) 1046 #define TRACE_EVENT_FLAG_COPY (static_cast<unsigned char>(1 << 0))
1046 #define TRACE_EVENT_FLAG_HAS_ID (static_cast<unsigned char>(1 << 1)) 1047 #define TRACE_EVENT_FLAG_HAS_ID (static_cast<unsigned char>(1 << 1))
1047 #define TRACE_EVENT_FLAG_MANGLE_ID (static_cast<unsigned char>(1 << 2)) 1048 #define TRACE_EVENT_FLAG_MANGLE_ID (static_cast<unsigned char>(1 << 2))
1048 #define TRACE_EVENT_FLAG_SCOPE_OFFSET (static_cast<unsigned char>(1 << 3)) 1049 #define TRACE_EVENT_FLAG_SCOPE_OFFSET (static_cast<unsigned char>(1 << 3))
1049 #define TRACE_EVENT_FLAG_SCOPE_EXTRA (static_cast<unsigned char>(1 << 4)) 1050 #define TRACE_EVENT_FLAG_SCOPE_EXTRA (static_cast<unsigned char>(1 << 4))
1050 #define TRACE_EVENT_FLAG_EXPLICIT_TIMESTAMP (static_cast<unsigned char>(1 << 5)) 1051 #define TRACE_EVENT_FLAG_EXPLICIT_TIMESTAMP (static_cast<unsigned char>(1 << 5))
1051 1052
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
1600 const char* name_; 1601 const char* name_;
1601 IDType id_; 1602 IDType id_;
1602 1603
1603 DISALLOW_COPY_AND_ASSIGN(TraceScopedTrackableObject); 1604 DISALLOW_COPY_AND_ASSIGN(TraceScopedTrackableObject);
1604 }; 1605 };
1605 1606
1606 } // namespace trace_event 1607 } // namespace trace_event
1607 } // namespace base 1608 } // namespace base
1608 1609
1609 #endif /* BASE_TRACE_EVENT_TRACE_EVENT_H_ */ 1610 #endif /* BASE_TRACE_EVENT_TRACE_EVENT_H_ */
OLDNEW
« no previous file with comments | « base/trace_event/process_memory_totals_dump_provider.cc ('k') | base/values.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698