mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Add function to determine if the program is busy.
This commit is contained in:
parent
630effe8fa
commit
9f9cd04761
@ -196,6 +196,13 @@ static void SetupScaleCallback( float scale )
|
|||||||
RunOnMainThread( []{ SetupDPIScale(); }, true );
|
RunOnMainThread( []{ SetupDPIScale(); }, true );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int IsBusy()
|
||||||
|
{
|
||||||
|
if( loadThread.joinable() ) return 2;
|
||||||
|
if( view && !view->IsBackgroundDone() ) return 1;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static void LoadConfig()
|
static void LoadConfig()
|
||||||
{
|
{
|
||||||
const auto fn = tracy::GetSavePath( "tracy.ini" );
|
const auto fn = tracy::GetSavePath( "tracy.ini" );
|
||||||
|
@ -152,6 +152,8 @@ public:
|
|||||||
bool DrawGpu( const TimelineContext& ctx, const GpuCtxData& gpu, int& offset );
|
bool DrawGpu( const TimelineContext& ctx, const GpuCtxData& gpu, int& offset );
|
||||||
bool DrawCpuData( const TimelineContext& ctx, const std::vector<CpuUsageDraw>& cpuDraw, const std::vector<std::vector<CpuCtxDraw>>& ctxDraw, int& offset, bool hasCpuData );
|
bool DrawCpuData( const TimelineContext& ctx, const std::vector<CpuUsageDraw>& cpuDraw, const std::vector<std::vector<CpuCtxDraw>>& ctxDraw, int& offset, bool hasCpuData );
|
||||||
|
|
||||||
|
bool IsBackgroundDone() const { return m_worker.IsBackgroundDone(); }
|
||||||
|
|
||||||
bool m_showRanges = false;
|
bool m_showRanges = false;
|
||||||
Range m_statRange;
|
Range m_statRange;
|
||||||
Range m_waitStackRange;
|
Range m_waitStackRange;
|
||||||
|
Loading…
Reference in New Issue
Block a user