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

Explicit tracking of fiber state in ThreadData.

This replaces the use of hard-to-track global state with well-defined accessor
functionality.
This commit is contained in:
Bartosz Taudul
2021-11-06 18:55:29 +01:00
parent 765561de81
commit 3ede2a1345
3 changed files with 114 additions and 106 deletions
+1
View File
@@ -667,6 +667,7 @@ struct ThreadData
SampleData pendingSample;
uint64_t kernelSampleCnt;
uint8_t isFiber;
ThreadData* fiber;
tracy_force_inline void IncStackCount( int16_t srcloc ) { IncSrcLocCount( stackCount, srcloc ); }
tracy_force_inline bool DecStackCount( int16_t srcloc ) { return DecSrcLocCount( stackCount, srcloc ); }