mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Separate drawing callstack tooltip from drawing its contents.
This commit is contained in:
parent
aed1360a9c
commit
ce8e42f00b
@ -17776,9 +17776,14 @@ void View::ZoneTooltip( const GpuEvent& ev )
|
||||
|
||||
void View::CallstackTooltip( uint32_t idx )
|
||||
{
|
||||
auto& cs = m_worker.GetCallstack( idx );
|
||||
|
||||
ImGui::BeginTooltip();
|
||||
CallstackTooltipContents( idx );
|
||||
ImGui::EndTooltip();
|
||||
}
|
||||
|
||||
void View::CallstackTooltipContents( uint32_t idx )
|
||||
{
|
||||
auto& cs = m_worker.GetCallstack( idx );
|
||||
int fidx = 0;
|
||||
for( auto& entry : cs )
|
||||
{
|
||||
@ -17836,7 +17841,6 @@ void View::CallstackTooltip( uint32_t idx )
|
||||
}
|
||||
}
|
||||
}
|
||||
ImGui::EndTooltip();
|
||||
}
|
||||
|
||||
void View::CrashTooltip()
|
||||
|
@ -262,6 +262,7 @@ private:
|
||||
void ZoneTooltip( const ZoneEvent& ev );
|
||||
void ZoneTooltip( const GpuEvent& ev );
|
||||
void CallstackTooltip( uint32_t idx );
|
||||
void CallstackTooltipContents( uint32_t idx );
|
||||
void CrashTooltip();
|
||||
|
||||
const ZoneEvent* GetZoneParent( const ZoneEvent& zone ) const;
|
||||
|
Loading…
Reference in New Issue
Block a user