1
0
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:
Andrey Voroshilov
2020-07-07 00:39:09 -07:00
parent 384e2e3fa1
commit da5e58682f
2 changed files with 52 additions and 1 deletions
+6
View File
@@ -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