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

Build ghost zones tree.

This commit is contained in:
Bartosz Taudul
2020-03-10 21:06:38 +01:00
parent 693db74380
commit 452341059b
3 changed files with 91 additions and 1 deletions
+11
View File
@@ -500,6 +500,16 @@ struct FrameImage
enum { FrameImageSize = sizeof( FrameImage ) };
struct GhostZone
{
Int48 start, end;
CallstackFrameId frame;
int32_t child;
};
enum { GhostZoneSize = sizeof( GhostZone ) };
#pragma pack()
@@ -514,6 +524,7 @@ struct ThreadData
Vector<uint32_t> zoneIdStack;
#ifndef TRACY_NO_STATISTICS
Vector<int64_t> childTimeStack;
Vector<GhostZone> ghostZones;
#endif
Vector<SampleData> samples;
};