OLD | NEW |
---|---|
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 /* This header file is the private internal interface. */ | 9 /* This header file is the private internal interface. */ |
10 | 10 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
175 XRAY_NO_INSTRUMENT void XRayFree(void* data); | 175 XRAY_NO_INSTRUMENT void XRayFree(void* data); |
176 | 176 |
177 XRAY_NO_INSTRUMENT void XRaySetMaxStackDepth( | 177 XRAY_NO_INSTRUMENT void XRaySetMaxStackDepth( |
178 struct XRayTraceCapture* capture, int stack_depth); | 178 struct XRayTraceCapture* capture, int stack_depth); |
179 XRAY_NO_INSTRUMENT int XRayGetLastFrame(struct XRayTraceCapture* capture); | 179 XRAY_NO_INSTRUMENT int XRayGetLastFrame(struct XRayTraceCapture* capture); |
180 XRAY_NO_INSTRUMENT void XRayDisableCapture(struct XRayTraceCapture* capture); | 180 XRAY_NO_INSTRUMENT void XRayDisableCapture(struct XRayTraceCapture* capture); |
181 XRAY_NO_INSTRUMENT void XRayEnableCapture(struct XRayTraceCapture* capture); | 181 XRAY_NO_INSTRUMENT void XRayEnableCapture(struct XRayTraceCapture* capture); |
182 XRAY_NO_INSTRUMENT void XRayLoadMapfile( | 182 XRAY_NO_INSTRUMENT void XRayLoadMapfile( |
183 struct XRayTraceCapture* capture, const char* mapfilename); | 183 struct XRayTraceCapture* capture, const char* mapfilename); |
184 | 184 |
185 struct XRayTimestampPair { | |
186 uint64_t xray; | |
nfullagar1
2013/07/18 00:47:22
brief comments for each field /* xray tick counter
grosse
2013/07/18 01:26:40
Done.
| |
187 int64_t pepper; | |
188 }; | |
189 | |
190 #ifndef XRAY_DISABLE_BROWSER_INTEGRATION | |
191 XRAY_NO_INSTRUMENT void XRayGetTSC(uint64_t* tsc); | |
192 XRAY_NO_INSTRUMENT int32_t XRayGetThreadID(struct XRayTraceCapture* capture); | |
193 XRAY_NO_INSTRUMENT struct XRayTimestampPair* XRayGetTimestamp( | |
194 struct XRayTraceCapture* capture, int frame, bool end); | |
195 XRAY_NO_INSTRUMENT struct XRayTimestampPair XRayGenerateTimestampsNow(void); | |
196 #endif /* XRAY_DISABLE_BROWSER_INTEGRATION */ | |
197 | |
198 | |
185 #endif /* defined(XRAY) */ | 199 #endif /* defined(XRAY) */ |
186 | 200 |
187 #ifdef __cplusplus | 201 #ifdef __cplusplus |
188 } | 202 } |
189 #endif | 203 #endif |
190 | 204 |
191 #endif /* LIBRARIES_XRAY_XRAY_PRIV_H_ */ | 205 #endif /* LIBRARIES_XRAY_XRAY_PRIV_H_ */ |
OLD | NEW |