mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +00:00
commit
e3d16a162e
13
TracyC.h
13
TracyC.h
@ -73,6 +73,11 @@ typedef const void* TracyCZoneCtx;
|
|||||||
#define TracyCMessageCS(x,y,z,w)
|
#define TracyCMessageCS(x,y,z,w)
|
||||||
#define TracyCMessageLCS(x,y,z)
|
#define TracyCMessageLCS(x,y,z)
|
||||||
|
|
||||||
|
#ifdef TRACY_FIBERS
|
||||||
|
# define TracyCFiberEnter(fiber)
|
||||||
|
# define TracyCFiberLeave
|
||||||
|
#endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#ifndef TracyConcat
|
#ifndef TracyConcat
|
||||||
@ -292,6 +297,14 @@ TRACY_API void ___tracy_emit_message_appinfo( const char* txt, size_t size );
|
|||||||
# define TracyCMessageLCS( txt, color, depth ) TracyCMessageLC( txt, color )
|
# define TracyCMessageLCS( txt, color, depth ) TracyCMessageLC( txt, color )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
TRACY_API void ___tracy_fiber_enter( const char* fiber );
|
||||||
|
TRACY_API void ___tracy_fiber_leave( void );
|
||||||
|
|
||||||
|
#ifdef TRACY_FIBERS
|
||||||
|
# define TracyCFiberEnter( fiber ) ___tracy_fiber_enter( fiber );
|
||||||
|
# define TracyCFiberLeave ___tracy_fiber_leave();
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -4157,6 +4157,11 @@ TRACY_API void ___tracy_emit_gpu_context_name_serial( const struct ___tracy_gpu_
|
|||||||
tracy::Profiler::QueueSerialFinish();
|
tracy::Profiler::QueueSerialFinish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef TRACY_FIBERS
|
||||||
|
TRACY_API void ___tracy_fiber_enter( const char* fiber ){ tracy::Profiler::EnterFiber( fiber ); }
|
||||||
|
TRACY_API void ___tracy_fiber_leave( void ){ tracy::Profiler::LeaveFiber(); }
|
||||||
|
#endif
|
||||||
|
|
||||||
# ifdef TRACY_MANUAL_LIFETIME
|
# ifdef TRACY_MANUAL_LIFETIME
|
||||||
TRACY_API void ___tracy_startup_profiler( void )
|
TRACY_API void ___tracy_startup_profiler( void )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user