mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-29 08:54:34 +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();
|
profiler.m_serialLock.unlock();
|
||||||
#else
|
#else
|
||||||
static_cast<void>(depth); // unused
|
static_cast<void>(depth); // unused
|
||||||
static_cast<void>(name); // unused
|
MemAllocNamed( ptr, size, secure, name );
|
||||||
MemAlloc( ptr, size, secure );
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -629,8 +628,7 @@ public:
|
|||||||
profiler.m_serialLock.unlock();
|
profiler.m_serialLock.unlock();
|
||||||
#else
|
#else
|
||||||
static_cast<void>(depth); // unused
|
static_cast<void>(depth); // unused
|
||||||
static_cast<void>(name); // unused
|
MemFreeNamed( ptr, secure, name );
|
||||||
MemFree( ptr, secure );
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user