2019-10-20 01:17:44 +00:00
|
|
|
/*
|
|
|
|
* 4coder_profile_static_enable.cpp - Macro interface for self profiler.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// TOP
|
|
|
|
|
2019-10-26 20:48:50 +00:00
|
|
|
#if defined(ProfileBlock)
|
2019-10-20 01:17:44 +00:00
|
|
|
#undef ProfileBlock
|
|
|
|
#undef ProfileScope
|
2019-10-25 06:17:54 +00:00
|
|
|
#undef ProfileBlockNamed
|
|
|
|
#undef ProfileScopeNamed
|
2019-10-20 01:17:44 +00:00
|
|
|
|
2019-10-26 20:48:50 +00:00
|
|
|
#undef ProfileTLBlock
|
|
|
|
#undef ProfileTLScope
|
|
|
|
#undef ProfileTLBlockNamed
|
|
|
|
#undef ProfileTLScopeNamed
|
2019-10-20 01:17:44 +00:00
|
|
|
|
2019-10-26 20:48:50 +00:00
|
|
|
#undef ProfileCloseNow
|
|
|
|
#endif
|
2019-10-20 01:17:44 +00:00
|
|
|
|
|
|
|
#define ProfileBlock(T,N) \
|
|
|
|
Profile_Block glue(profile_block_, __LINE__) \
|
|
|
|
((T), string_u8_litexpr(N), string_u8_litexpr(file_name_line_number))
|
|
|
|
|
|
|
|
#define ProfileScope(T,N) \
|
|
|
|
Profile_Scope_Block glue(profile_block_, __LINE__) \
|
|
|
|
((T), string_u8_litexpr(N), string_u8_litexpr(file_name_line_number))
|
|
|
|
|
2019-10-25 06:17:54 +00:00
|
|
|
#define ProfileBlockNamed(T,N,M) \
|
|
|
|
Profile_Block M \
|
|
|
|
((T), string_u8_litexpr(N), string_u8_litexpr(file_name_line_number))
|
|
|
|
|
|
|
|
#define ProfileScopeNamed(T,N,M) \
|
|
|
|
Profile_Scope_Block M \
|
|
|
|
((T), string_u8_litexpr(N), string_u8_litexpr(file_name_line_number))
|
|
|
|
|
2019-10-26 20:48:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
#define ProfileTLBlock(T,L,N) \
|
|
|
|
Profile_Block glue(profile_block_, __LINE__) \
|
|
|
|
((T), (L), string_u8_litexpr(N), string_u8_litexpr(file_name_line_number))
|
|
|
|
|
|
|
|
#define ProfileTLScope(T,L,N) \
|
|
|
|
Profile_Scope_Block glue(profile_block_, __LINE__) \
|
|
|
|
((T), (L), string_u8_litexpr(N), string_u8_litexpr(file_name_line_number))
|
|
|
|
|
|
|
|
#define ProfileTLBlockNamed(T,L,N,M) \
|
|
|
|
Profile_Block M \
|
|
|
|
((T), (L), string_u8_litexpr(N), string_u8_litexpr(file_name_line_number))
|
|
|
|
|
|
|
|
#define ProfileTLScopeNamed(T,L,N,M) \
|
|
|
|
Profile_Scope_Block M \
|
|
|
|
((T), (L), string_u8_litexpr(N), string_u8_litexpr(file_name_line_number))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define ProfileCloseNow(B) ((B).close_now())
|
|
|
|
|
2019-10-20 01:17:44 +00:00
|
|
|
// BOTTOM
|
|
|
|
|