Display extra zone data count.

This commit is contained in:
Bartosz Taudul 2020-01-26 17:28:37 +01:00
parent 3e45e4abd9
commit 1915a9e5f6
2 changed files with 5 additions and 0 deletions

View File

@ -11201,6 +11201,10 @@ void View::DrawInfo()
TextFocused( "Queue delay:", TimeToString( m_worker.GetDelay() ) ); TextFocused( "Queue delay:", TimeToString( m_worker.GetDelay() ) );
TextFocused( "Timer resolution:", TimeToString( m_worker.GetResolution() ) ); TextFocused( "Timer resolution:", TimeToString( m_worker.GetResolution() ) );
TextFocused( "CPU zones:", RealToString( m_worker.GetZoneCount(), true ) ); TextFocused( "CPU zones:", RealToString( m_worker.GetZoneCount(), true ) );
ImGui::SameLine();
ImGui::Spacing();
ImGui::SameLine();
TextFocused( "Extra data:", RealToString( m_worker.GetZoneExtraCount(), true ) );
TextFocused( "GPU zones:", RealToString( m_worker.GetGpuZoneCount(), true ) ); TextFocused( "GPU zones:", RealToString( m_worker.GetGpuZoneCount(), true ) );
TextFocused( "Lock events:", RealToString( m_worker.GetLockCount(), true ) ); TextFocused( "Lock events:", RealToString( m_worker.GetLockCount(), true ) );
TextFocused( "Plot data points:", RealToString( m_worker.GetPlotCount(), true ) ); TextFocused( "Plot data points:", RealToString( m_worker.GetPlotCount(), true ) );

View File

@ -330,6 +330,7 @@ public:
size_t GetFullFrameCount( const FrameData& fd ) const; size_t GetFullFrameCount( const FrameData& fd ) const;
int64_t GetLastTime() const { return m_data.lastTime; } int64_t GetLastTime() const { return m_data.lastTime; }
uint64_t GetZoneCount() const { return m_data.zonesCnt; } uint64_t GetZoneCount() const { return m_data.zonesCnt; }
uint64_t GetZoneExtraCount() const { return m_data.zoneExtra.size() - 1; }
uint64_t GetGpuZoneCount() const { return m_data.gpuCnt; } uint64_t GetGpuZoneCount() const { return m_data.gpuCnt; }
uint64_t GetLockCount() const; uint64_t GetLockCount() const;
uint64_t GetPlotCount() const; uint64_t GetPlotCount() const;