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

Side by Side Diff: native_client_sdk/src/libraries/xray/xray.h

Issue 19409003: Update Xray for PNaCl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add/remove files, change instrumentation ot __pnacl Created 7 years, 5 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
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 /* XRay -- a simple profiler for Native Client */ 6 /* XRay -- a simple profiler for Native Client */
7 7
8 8
9 #ifndef LIBRARIES_XRAY_XRAY_H_ 9 #ifndef LIBRARIES_XRAY_XRAY_H_
10 #define LIBRARIES_XRAY_XRAY_H_ 10 #define LIBRARIES_XRAY_XRAY_H_
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 XRAY_NO_INSTRUMENT void XRaySetAnnotationFilter( 46 XRAY_NO_INSTRUMENT void XRaySetAnnotationFilter(
47 struct XRayTraceCapture* capture, uint32_t filter); 47 struct XRayTraceCapture* capture, uint32_t filter);
48 XRAY_NO_INSTRUMENT void XRaySaveReport(struct XRayTraceCapture* capture, 48 XRAY_NO_INSTRUMENT void XRaySaveReport(struct XRayTraceCapture* capture,
49 const char* filename, 49 const char* filename,
50 float percent_cutoff, 50 float percent_cutoff,
51 int cycle_cutoff); 51 int cycle_cutoff);
52 XRAY_NO_INSTRUMENT void XRayReport(struct XRayTraceCapture* capture, 52 XRAY_NO_INSTRUMENT void XRayReport(struct XRayTraceCapture* capture,
53 FILE* f, 53 FILE* f,
54 float percent_cutoff, 54 float percent_cutoff,
55 int ticks_cutoff); 55 int ticks_cutoff);
56
57 #ifndef XRAY_NOPEPPER
58 #include "ppapi/c/ppb.h"
59 XRAY_NO_INSTRUMENT void XRayBrowserTraceReport(
60 struct XRayTraceCapture* capture);
61 XRAY_NO_INSTRUMENT void XRayBrowserRegisterInterface(
62 PPB_GetInterface get_browser_interface);
63 #endif /* XRAY_NOPEPPER */
64
65
56 #if defined(XRAY_ANNOTATE) 66 #if defined(XRAY_ANNOTATE)
57 #define XRayAnnotate(...) __XRayAnnotate(__VA_ARGS__) 67 #define XRayAnnotate(...) __XRayAnnotate(__VA_ARGS__)
58 #define XRayAnnotateFiltered(...) __XRayAnnotateFiltered(__VA_ARGS__) 68 #define XRayAnnotateFiltered(...) __XRayAnnotateFiltered(__VA_ARGS__)
59 #else 69 #else
60 #define XRayAnnotate(...) 70 #define XRayAnnotate(...)
61 #define XRayAnnotateFiltered(...) 71 #define XRayAnnotateFiltered(...)
62 #endif 72 #endif
63 /* This is the end of the public XRay API */ 73 /* This is the end of the public XRay API */
64 74
65 #else /* defined(XRAY) */ 75 #else /* defined(XRAY) */
(...skipping 13 matching lines...) Expand all
79 inline void XRaySetAnnotationFilter(struct XRayTraceCapture* capture, 89 inline void XRaySetAnnotationFilter(struct XRayTraceCapture* capture,
80 uint32_t filter) {} 90 uint32_t filter) {}
81 inline void XRaySaveReport(struct XRayTraceCapture* capture, 91 inline void XRaySaveReport(struct XRayTraceCapture* capture,
82 const char* filename, 92 const char* filename,
83 float percent_cutoff, 93 float percent_cutoff,
84 int cycle_cutoff) {} 94 int cycle_cutoff) {}
85 inline void XRayReport(struct XRayTraceCapture* capture, 95 inline void XRayReport(struct XRayTraceCapture* capture,
86 FILE* f, 96 FILE* f,
87 float percent_cutoff, 97 float percent_cutoff,
88 int ticks_cutoff); 98 int ticks_cutoff);
99
100 #ifndef XRAY_NOPEPPER
101 #include "ppapi/c/ppb.h"
102 inline void XRayBrowserTraceReport(struct XRayTraceCapture* capture);
nfullagar1 2013/07/17 00:53:19 add an empty {} function body
grosse 2013/07/17 19:37:56 Done.
103 inline void XRayBrowserRegisterInterface(
nfullagar1 2013/07/17 00:53:19 XRayRegisterBrowserInterface(
grosse 2013/07/17 19:37:56 Done.
104 PPB_GetInterface get_browser_interface);
nfullagar1 2013/07/17 00:53:19 {}
grosse 2013/07/17 19:37:56 Done.
105 #endif /* XRAY_NOPEPPER */
106
107
89 #endif /* defined(XRAY) */ 108 #endif /* defined(XRAY) */
90 109
91 #ifdef __cplusplus 110 #ifdef __cplusplus
92 } 111 }
93 #endif 112 #endif
94 113
95 #endif /* LIBRARIES_XRAY_XRAY_H_ */ 114 #endif /* LIBRARIES_XRAY_XRAY_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698