1
0
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:
Bartosz Taudul
2019-10-01 21:48:52 +02:00
parent c631e33f81
commit f0b957ec56
5 changed files with 110 additions and 60 deletions
+2 -2
View File
@@ -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;
};