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

Store memory callstack data as 24-bit ints.

This reduces MemEvent size from 40 to 38 bytes.

Memory usage reduction:

chicken     2027 -> 2019
mem         6468 -> 6308
q3bsp-mt    5304 -> 5283
This commit is contained in:
Bartosz Taudul
2019-10-01 22:36:22 +02:00
parent f0b957ec56
commit 65ea33a60f
3 changed files with 74 additions and 37 deletions
+2 -7
View File
@@ -90,11 +90,6 @@ public:
SetVal( val );
}
Int24( const Int24& ) = delete;
Int24( Int24&& ) = delete;
Int24& operator=( const Int24& ) = delete;
Int24& operator=( Int24&& ) = delete;
void SetVal( uint32_t val )
{
memcpy( m_val, &val, 3 );
@@ -220,8 +215,8 @@ struct MemEvent
uint64_t ptr;
uint64_t size;
uint32_t csAlloc;
uint32_t csFree;
Int24 csAlloc;
Int24 csFree;
uint64_t _time_thread_alloc;
uint64_t _time_thread_free;
};