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

Preprocess CPU usage.

Things of note: Worker::GetCpuUsage() functionality was moved to
TimelineItemCpuData::PreprocessCpuUsage().
This commit is contained in:
Bartosz Taudul
2023-03-25 17:55:15 +01:00
parent dcf27f4989
commit 5eebc5d7cf
7 changed files with 194 additions and 149 deletions
+9
View File
@@ -3,6 +3,7 @@
#include "TracyEvent.hpp"
#include "TracyTimelineItem.hpp"
#include "TracyTimelineDraw.hpp"
namespace tracy
{
@@ -25,8 +26,16 @@ protected:
int64_t RangeEnd() const override;
bool DrawContents( const TimelineContext& ctx, int& offset ) override;
void DrawFinished() override;
bool IsEmpty() const override;
void Preprocess( const TimelineContext& ctx, TaskDispatch& td, bool visible ) override;
private:
void PreprocessCpuUsage( const TimelineContext& ctx );
std::vector<CpuUsageDraw> m_cpuDraw;
};
}