123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- #ifndef _SGX_PROFILE_H_
- #define _SGX_PROFILE_H_
- #if defined(_PROFILE_)
- #define PRO_START 0
- #define PRO_END 1
- #if defined(__cplusplus)
- extern "C"
- {
- #endif
- void profile_init();
- void profile_start(const char* str);
- void profile_end(const char * str);
- void profile_output(const char* filename);
- #if defined(__cplusplus)
- }
- #endif
- #define PROFILE_INIT() profile_init()
- #define PROFILE_START(x) profile_start(x)
- #define PROFILE_END(x) profile_end(x)
- #define PROFILE_OUTPUT(x) profile_output(x)
- #else
- #define PROFILE_INIT()
- #define PROFILE_START(x)
- #define PROFILE_END(x)
- #define PROFILE_OUTPUT(x)
- #endif
- #endif
|