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

Postpone processing incomplete sampled callstacks.

This commit is contained in:
Bartosz Taudul
2020-02-29 13:45:50 +01:00
parent 7e4088ed61
commit 3412d2232f
2 changed files with 56 additions and 17 deletions
+3 -1
View File
@@ -227,6 +227,7 @@ private:
unordered_flat_map<uint64_t, SymbolStats> symbolStats;
#ifndef TRACY_NO_STATISTICS
unordered_flat_map<uint32_t, uint32_t> postponedSamples;
bool callstackSamplesReady = false;
#endif
@@ -638,7 +639,8 @@ private:
#ifndef TRACY_NO_STATISTICS
void ReconstructContextSwitchUsage();
void UpdateSampleStatistics( uint32_t callstack, uint32_t count );
void UpdateSampleStatistics( uint32_t callstack, uint32_t count, bool canPostpone );
void UpdateSampleStatisticsImpl( const CallstackFrameData** frames, uint8_t framesCount, uint32_t count );
#endif
tracy_force_inline int64_t ReadTimeline( FileRead& f, ZoneEvent* zone, int64_t refTime, int32_t& childIdx );