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

Add callstack frame identifier and the required plumbing.

This commit is contained in:
Bartosz Taudul
2019-03-03 16:37:21 +01:00
parent cf8d17c2ec
commit 1feedb17ac
3 changed files with 38 additions and 0 deletions
+11
View File
@@ -100,6 +100,17 @@ private:
int64_t selfTotal;
};
struct CallstackFrameIdHash
{
size_t operator()( const CallstackFrameId& id ) { return id.data; }
typedef tracy::power_of_two_hash_policy hash_policy;
};
struct CallstackFrameIdCompare
{
bool operator()( const CallstackFrameId& lhs, const CallstackFrameId& rhs ) { return lhs.data == rhs.data; }
};
struct DataBlock
{
DataBlock() : zonesCnt( 0 ), lastTime( 0 ), frameOffset( 0 ), threadLast( std::numeric_limits<uint64_t>::max(), 0 ) {}