1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Use slab allocator for server allocations.

This commit is contained in:
Bartosz Taudul
2017-10-21 13:01:57 +02:00
parent 07cb693cbb
commit 807d3c42be
3 changed files with 41 additions and 19 deletions
+6
View File
@@ -57,6 +57,12 @@ public:
return (T*)AllocRaw( sizeof( T ) );
}
template<typename T>
T* Alloc( size_t size )
{
return (T*)AllocRaw( sizeof( T ) * size );
}
void Unalloc( size_t size )
{
assert( size <= m_offset );