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

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

Issue 1546033002: Switch to standard integer types in base/trace_event/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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/trace_config_unittest.cc ('k') | base/trace_event/trace_event_android.cc » ('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 #ifndef BASE_TRACE_EVENT_TRACE_EVENT_H_ 5 #ifndef BASE_TRACE_EVENT_TRACE_EVENT_H_
6 #define BASE_TRACE_EVENT_TRACE_EVENT_H_ 6 #define BASE_TRACE_EVENT_TRACE_EVENT_H_
7 7
8 // This header file defines implementation details of how the trace macros in 8 // This header file defines implementation details of how the trace macros in
9 // trace_event_common.h collect and store trace events. Anything not 9 // trace_event_common.h collect and store trace events. Anything not
10 // implementation-specific should go in trace_macros_common.h instead of here. 10 // implementation-specific should go in trace_macros_common.h instead of here.
11 11
12 #include <stddef.h>
13 #include <stdint.h>
14
12 #include <string> 15 #include <string>
13 16
14 #include "base/atomicops.h" 17 #include "base/atomicops.h"
18 #include "base/macros.h"
15 #include "base/time/time.h" 19 #include "base/time/time.h"
16 #include "base/trace_event/common/trace_event_common.h" 20 #include "base/trace_event/common/trace_event_common.h"
17 #include "base/trace_event/trace_event_system_stats_monitor.h" 21 #include "base/trace_event/trace_event_system_stats_monitor.h"
18 #include "base/trace_event/trace_log.h" 22 #include "base/trace_event/trace_log.h"
19 #include "build/build_config.h" 23 #include "build/build_config.h"
20 24
21 // By default, const char* argument values are assumed to have long-lived scope 25 // By default, const char* argument values are assumed to have long-lived scope
22 // and will not be copied. Use this macro to force a const char* to be copied. 26 // and will not be copied. Use this macro to force a const char* to be copied.
23 #define TRACE_STR_COPY(str) \ 27 #define TRACE_STR_COPY(str) \
24 trace_event_internal::TraceStringWithCopy(str) 28 trace_event_internal::TraceStringWithCopy(str)
25 29
26 // By default, uint64 ID argument values are not mangled with the Process ID in 30 // By default, uint64_t ID argument values are not mangled with the Process ID
27 // TRACE_EVENT_ASYNC macros. Use this macro to force Process ID mangling. 31 // in TRACE_EVENT_ASYNC macros. Use this macro to force Process ID mangling.
28 #define TRACE_ID_MANGLE(id) \ 32 #define TRACE_ID_MANGLE(id) \
29 trace_event_internal::TraceID::ForceMangle(id) 33 trace_event_internal::TraceID::ForceMangle(id)
30 34
31 // By default, pointers are mangled with the Process ID in TRACE_EVENT_ASYNC 35 // By default, pointers are mangled with the Process ID in TRACE_EVENT_ASYNC
32 // macros. Use this macro to prevent Process ID mangling. 36 // macros. Use this macro to prevent Process ID mangling.
33 #define TRACE_ID_DONT_MANGLE(id) \ 37 #define TRACE_ID_DONT_MANGLE(id) \
34 trace_event_internal::TraceID::DontMangle(id) 38 trace_event_internal::TraceID::DontMangle(id)
35 39
36 // Sets the current sample state to the given category and name (both must be 40 // Sets the current sample state to the given category and name (both must be
37 // constant strings). These states are intended for a sampling profiler. 41 // constant strings). These states are intended for a sampling profiler.
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 const char* name_; 911 const char* name_;
908 IDType id_; 912 IDType id_;
909 913
910 DISALLOW_COPY_AND_ASSIGN(TraceScopedTrackableObject); 914 DISALLOW_COPY_AND_ASSIGN(TraceScopedTrackableObject);
911 }; 915 };
912 916
913 } // namespace trace_event 917 } // namespace trace_event
914 } // namespace base 918 } // namespace base
915 919
916 #endif // BASE_TRACE_EVENT_TRACE_EVENT_H_ 920 #endif // BASE_TRACE_EVENT_TRACE_EVENT_H_
OLDNEW
« no previous file with comments | « base/trace_event/trace_config_unittest.cc ('k') | base/trace_event/trace_event_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698