mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Allocate new block, if we're at the end of current one.
This commit is contained in:
parent
7b023e533d
commit
23d12d2633
@ -83,6 +83,13 @@ public:
|
||||
m_offset += size;
|
||||
return ret;
|
||||
}
|
||||
else if( size <= BlockSize && BlockSize - m_offset <= 1024 )
|
||||
{
|
||||
DoAlloc();
|
||||
void* ret = m_ptr + m_offset;
|
||||
m_offset += size;
|
||||
return ret;
|
||||
}
|
||||
else
|
||||
{
|
||||
memUsage.fetch_add( size );
|
||||
|
Loading…
Reference in New Issue
Block a user