mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 23:44:35 +00:00
Still use named mem pool if no callstacks
Forward MemAllocCallstackNamed() and MemFreeCallstackNamed() to MemAllocNamed() and MemFreeNamed if callstack capture is off.
This commit is contained in:
parent
278330af5b
commit
18352366f7
@ -605,8 +605,7 @@ public:
|
||||
profiler.m_serialLock.unlock();
|
||||
#else
|
||||
static_cast<void>(depth); // unused
|
||||
static_cast<void>(name); // unused
|
||||
MemAlloc( ptr, size, secure );
|
||||
MemAllocNamed( ptr, size, secure, name );
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -629,8 +628,7 @@ public:
|
||||
profiler.m_serialLock.unlock();
|
||||
#else
|
||||
static_cast<void>(depth); // unused
|
||||
static_cast<void>(name); // unused
|
||||
MemFree( ptr, secure );
|
||||
MemFreeNamed( ptr, secure, name );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user