mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Store callstacks on 24 bits.
ZoneEvent is now 27 bytes. Memory usage reduction on selected traces (sizes in MB): big 9224 -> 9011 (97%) chicken 2044 -> 2027 (99%) drl-l-b 1443 -> 1383 (95%) long 5327 -> 5253 (98%) q3bsp-mt 5400 -> 5304 (98%) selfprofile 1403 -> 1382 (98%)
This commit is contained in:
@@ -138,7 +138,7 @@ struct ZoneEvent
|
||||
uint64_t _start_srcloc;
|
||||
uint64_t _end_child1;
|
||||
StringIdx text;
|
||||
uint32_t callstack;
|
||||
Int24 callstack;
|
||||
StringIdx name;
|
||||
uint16_t _child2;
|
||||
};
|
||||
@@ -198,7 +198,7 @@ struct GpuEvent
|
||||
int64_t gpuStart;
|
||||
int64_t gpuEnd;
|
||||
int16_t srcloc;
|
||||
uint32_t callstack;
|
||||
Int24 callstack;
|
||||
uint16_t thread;
|
||||
int32_t child;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user