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

Implement counting CPU usage (ctx switch) at a given time.

This commit is contained in:
Bartosz Taudul
2019-10-15 16:54:43 +02:00
parent 3ce6b1205f
commit 3ae5c125f6
2 changed files with 25 additions and 0 deletions
+1
View File
@@ -309,6 +309,7 @@ public:
int GetCpuDataCpuCount() const { return m_data.cpuDataCount; }
uint64_t GetPidFromTid( uint64_t tid ) const;
const flat_hash_map<uint64_t, CpuThreadData, nohash<uint64_t>>& GetCpuThreadData() const { return m_data.cpuThreadData; }
void GetCpuUsageAtTime( int64_t time, int& own, int& other ) const;
int64_t GetFrameTime( const FrameData& fd, size_t idx ) const;
int64_t GetFrameBegin( const FrameData& fd, size_t idx ) const;