client/runtime/browser_profile.h (630B)
1 #ifndef BROWSER_PROFILE_H 2 #define BROWSER_PROFILE_H 3 4 #ifdef __EMSCRIPTEN__ 5 #include <stdint.h> 6 void browser_profile_initialize(uint32_t *current_function); 7 void browser_profile_thread_initialize(uint32_t *current_function, uint32_t entry); 8 void browser_profile_thread_finish(void); 9 double ao_profile_begin(const char *name); 10 void ao_profile_end(const char *name, double start, const char *detail); 11 #else 12 static inline double ao_profile_begin(const char *name) { (void)name; return 0; } 13 static inline void ao_profile_end(const char *name, double start, const char *detail) 14 { (void)name; (void)start; (void)detail; } 15 #endif 16 17 #endif