Chromium Code Reviews| Index: native_client_sdk/src/libraries/xray/xray.h |
| =================================================================== |
| --- native_client_sdk/src/libraries/xray/xray.h (revision 208986) |
| +++ native_client_sdk/src/libraries/xray/xray.h (working copy) |
| @@ -20,7 +20,7 @@ |
| #endif |
| #define XRAY_NO_INSTRUMENT __attribute__((no_instrument_function)) |
| -#define XRAY_INLINE __attribute__((always_inline)) |
| +#define XRAY_INLINE __attribute__((always_inline,no_instrument_function)) |
|
bradn
2013/06/27 23:01:24
Semi-ambiguous given this an attribute, but normal
nfullagar1
2013/06/27 23:41:55
space added
|
| #if defined(XRAY) |
| @@ -38,7 +38,12 @@ |
| XRAY_NO_INSTRUMENT void XRayStartFrame(); |
| XRAY_NO_INSTRUMENT void XRayEndFrame(); |
| XRAY_NO_INSTRUMENT void XRaySetAnnotationFilter(uint32_t filter); |
| -XRAY_NO_INSTRUMENT void XRaySaveReport(const char* filename, float cutoff); |
| +XRAY_NO_INSTRUMENT void XRaySaveReport(const char* filename, |
| + float percent_cutoff, |
| + int cycle_cutoff); |
| +XRAY_NO_INSTRUMENT void XRayReport(FILE* f, |
| + float percent_cutoff, |
| + int ticks_cutoff); |
| #if defined(XRAY_ANNOTATE) |
| #define XRayAnnotate(...) __XRayAnnotate(__VA_ARGS__) |
| #define XRayAnnotateFiltered(...) __XRayAnnotateFiltered(__VA_ARGS__) |
| @@ -56,13 +61,15 @@ |
| #define XRayAnnotateFiltered(...) |
| inline void XRayInit(int stack_size, int buffer_size, |
| - int frame_count, const char* mapfilename) {} |
| + int frame_count, const char* mapfilename) {} |
|
bradn
2013/06/27 23:01:24
Maybe a comment mentioning NULL for no mapfile?
nfullagar1
2013/06/27 23:41:55
Done.
|
| inline void XRayShutdown() {} |
| inline void XRayStartFrame() {} |
| inline void XRayEndFrame() {} |
| inline void XRaySetAnnotationFilter(uint32_t filter) {} |
| -inline void XRaySaveReport(const char* filename, float cutoff) {} |
| - |
| +inline void XRaySaveReport(const char* filename, |
| + float percent_cutoff, |
| + int cycle_cutoff) {} |
| +inline void XRayReport(FILE *f, float percent_cutoff, int ticks_cutoff); |
|
bradn
2013/06/27 23:01:24
FILE*
nfullagar1
2013/06/27 23:41:55
Done.
|
| #endif /* defined(XRAY) */ |
| #ifdef __cplusplus |