Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2021-11-13 04:40:32 +0300
committerBartosz Taudul <wolf@nereid.pl>2021-11-13 04:40:32 +0300
commit745b795d505484e8af77345e473953a2e68410be (patch)
tree63060ad85a60e5725bbf809722da659d602b0ca1 /server/TracyEvent.hpp
parent5b799e0e45df922f6cf7a06079bc9300e2483360 (diff)
Detect context switch callstack samples.
Context switch callstack samples are not included in the sampling data statistics (as these don't represent random sampling), but are rather put into a separate dedicated data structure. For this to work, a complete context switch data has to be available for the callstack timestamp. There is no guarantee it will be present at the time it is needed, so a second structure is added to allow postponing qualification of callstacks.
Diffstat (limited to 'server/TracyEvent.hpp')
-rw-r--r--server/TracyEvent.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/TracyEvent.hpp b/server/TracyEvent.hpp
index 8cde3678..abca931c 100644
--- a/server/TracyEvent.hpp
+++ b/server/TracyEvent.hpp
@@ -666,9 +666,11 @@ struct ThreadData
Vector<int64_t> childTimeStack;
Vector<GhostZone> ghostZones;
uint64_t ghostIdx;
+ Vector<SampleData> postponedSamples;
#endif
Vector<SampleData> samples;
SampleData pendingSample;
+ Vector<SampleData> ctxSwitchSamples;
uint64_t kernelSampleCnt;
uint8_t isFiber;
ThreadData* fiber;