mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Support 4-byte size_t.
This commit is contained in:
parent
14c77aba2f
commit
15219b1481
@ -201,7 +201,16 @@ public:
|
|||||||
MemWrite( &item->memAlloc.time, GetTime() );
|
MemWrite( &item->memAlloc.time, GetTime() );
|
||||||
MemWrite( &item->memAlloc.thread, thread );
|
MemWrite( &item->memAlloc.thread, thread );
|
||||||
MemWrite( &item->memAlloc.ptr, (uint64_t)ptr );
|
MemWrite( &item->memAlloc.ptr, (uint64_t)ptr );
|
||||||
memcpy( &item->memAlloc.size, &size, 6 );
|
if( sizeof( size ) == 4 )
|
||||||
|
{
|
||||||
|
memcpy( &item->memAlloc.size, &size, 4 );
|
||||||
|
memset( &item->memAlloc.size + 4, 0, 2 );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
assert( sizeof( size ) == 8 );
|
||||||
|
memcpy( &item->memAlloc.size, &size, 6 );
|
||||||
|
}
|
||||||
s_profiler.m_serialLock.unlock();
|
s_profiler.m_serialLock.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user