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; /* internal xray timestamp */ |
| 187 int64_t pepper; /* corresponding timestamp from PPAPI interface */ |
| 188 }; |
| 189 |
| 190 #ifndef XRAY_DISABLE_BROWSER_INTEGRATION |
| 191 XRAY_NO_INSTRUMENT void XRayGetTSC(uint64_t* tsc); |
| 192 XRAY_NO_INSTRUMENT int32_t XRayGetSavedThreadID( |
| 193 struct XRayTraceCapture* capture); |
| 194 XRAY_NO_INSTRUMENT struct XRayTimestampPair XRayFrameGetStartTimestampPair( |
| 195 struct XRayTraceCapture* capture, int frame); |
| 196 XRAY_NO_INSTRUMENT struct XRayTimestampPair XRayFrameGetEndTimestampPair( |
| 197 struct XRayTraceCapture* capture, int frame); |
| 198 XRAY_NO_INSTRUMENT struct XRayTimestampPair XRayGenerateTimestampsNow(void); |
| 199 #endif |
| 200 |
| 201 |
185 #endif /* defined(XRAY) */ | 202 #endif /* defined(XRAY) */ |
186 | 203 |
187 #ifdef __cplusplus | 204 #ifdef __cplusplus |
188 } | 205 } |
189 #endif | 206 #endif |
190 | 207 |
191 #endif /* LIBRARIES_XRAY_XRAY_PRIV_H_ */ | 208 #endif /* LIBRARIES_XRAY_XRAY_PRIV_H_ */ |
OLD | NEW |