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

Side by Side Diff: native_client_sdk/src/libraries/xray/browser.c

Issue 888883002: Mechanical rename of tracing includes (remaining bits) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@trace_watchlist
Patch Set: Created 5 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
« no previous file with comments | « ipc/ipc_sync_channel.cc ('k') | storage/browser/fileapi/file_system_usage_cache.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) 2013 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2013 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 5
6 6
7 /* XRay -- a simple profiler for Native Client */ 7 /* XRay -- a simple profiler for Native Client */
8 8
9 #ifndef XRAY_DISABLE_BROWSER_INTEGRATION 9 #ifndef XRAY_DISABLE_BROWSER_INTEGRATION
10 10
(...skipping 22 matching lines...) Expand all
33 33
34 struct XRayTimestampPair XRayGenerateTimestampsNow(void) { 34 struct XRayTimestampPair XRayGenerateTimestampsNow(void) {
35 struct XRayTimestampPair pair; 35 struct XRayTimestampPair pair;
36 assert(ppb_trace_event_interface); 36 assert(ppb_trace_event_interface);
37 37
38 XRayGetTSC(&pair.xray); 38 XRayGetTSC(&pair.xray);
39 pair.pepper = ppb_trace_event_interface->Now(); 39 pair.pepper = ppb_trace_event_interface->Now();
40 return pair; 40 return pair;
41 } 41 }
42 42
43 /* see chromium/src/base/debug/trace_event.h */ 43 /* see chromium/src/base/trace_event/trace_event.h */
44 #define TRACE_VALUE_TYPE_UINT (2) 44 #define TRACE_VALUE_TYPE_UINT (2)
45 #define TRACE_VALUE_TYPE_DOUBLE (4) 45 #define TRACE_VALUE_TYPE_DOUBLE (4)
46 #define TRACE_VALUE_TYPE_COPY_STRING (7) 46 #define TRACE_VALUE_TYPE_COPY_STRING (7)
47 47
48 union TraceValue { 48 union TraceValue {
49 bool as_bool; 49 bool as_bool;
50 unsigned long long as_uint; 50 unsigned long long as_uint;
51 long long as_int; 51 long long as_int;
52 double as_double; 52 double as_double;
53 const void* as_pointer; 53 const void* as_pointer;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 } 154 }
155 155
156 void XRayRegisterBrowserInterface(PPB_GetInterface interface) { 156 void XRayRegisterBrowserInterface(PPB_GetInterface interface) {
157 ppb_trace_event_interface = (PPB_Trace_Event_Dev*)interface( 157 ppb_trace_event_interface = (PPB_Trace_Event_Dev*)interface(
158 PPB_TRACE_EVENT_DEV_INTERFACE); 158 PPB_TRACE_EVENT_DEV_INTERFACE);
159 assert(ppb_trace_event_interface); 159 assert(ppb_trace_event_interface);
160 } 160 }
161 161
162 #endif /* XRAY */ 162 #endif /* XRAY */
163 #endif /* XRAY_DISABLE_BROWSER_INTEGRATION */ 163 #endif /* XRAY_DISABLE_BROWSER_INTEGRATION */
OLDNEW
« no previous file with comments | « ipc/ipc_sync_channel.cc ('k') | storage/browser/fileapi/file_system_usage_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698