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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user