mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Adding manual lifetime management to aid multi-DLL usecase
This commit is contained in:
@@ -41,6 +41,10 @@
|
||||
|
||||
namespace tracy
|
||||
{
|
||||
#ifdef TRACY_MANUAL_LIFETIME
|
||||
void startupProfiler();
|
||||
void shutdownProfiler();
|
||||
#endif
|
||||
|
||||
class GpuCtx;
|
||||
class Profiler;
|
||||
@@ -118,6 +122,8 @@ public:
|
||||
Profiler();
|
||||
~Profiler();
|
||||
|
||||
void SpawnWorkerThreads();
|
||||
|
||||
static tracy_force_inline int64_t GetTime()
|
||||
{
|
||||
#ifdef TRACY_HW_TIMER
|
||||
|
||||
Reference in New Issue
Block a user