Index: native_client_sdk/src/libraries/xray/xray_priv.h |
diff --git a/native_client_sdk/src/libraries/xray/xray_priv.h b/native_client_sdk/src/libraries/xray/xray_priv.h |
index ae4de0cda9c0d1a0ace6558adce063c9af31aad6..53b9169f9802c201a8b07ca0a5f88f36e6e44812 100644 |
--- a/native_client_sdk/src/libraries/xray/xray_priv.h |
+++ b/native_client_sdk/src/libraries/xray/xray_priv.h |
@@ -182,6 +182,23 @@ XRAY_NO_INSTRUMENT void XRayEnableCapture(struct XRayTraceCapture* capture); |
XRAY_NO_INSTRUMENT void XRayLoadMapfile( |
struct XRayTraceCapture* capture, const char* mapfilename); |
+struct XRayTimestampPair { |
+ uint64_t xray; /* internal xray timestamp */ |
+ int64_t pepper; /* corresponding timestamp from PPAPI interface */ |
+}; |
+ |
+#ifndef XRAY_DISABLE_BROWSER_INTEGRATION |
+XRAY_NO_INSTRUMENT void XRayGetTSC(uint64_t* tsc); |
+XRAY_NO_INSTRUMENT int32_t XRayGetSavedThreadID( |
+ struct XRayTraceCapture* capture); |
+XRAY_NO_INSTRUMENT struct XRayTimestampPair XRayFrameGetStartTimestampPair( |
+ struct XRayTraceCapture* capture, int frame); |
+XRAY_NO_INSTRUMENT struct XRayTimestampPair XRayFrameGetEndTimestampPair( |
+ struct XRayTraceCapture* capture, int frame); |
+XRAY_NO_INSTRUMENT struct XRayTimestampPair XRayGenerateTimestampsNow(void); |
+#endif |
+ |
+ |
#endif /* defined(XRAY) */ |
#ifdef __cplusplus |