mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 14:54:34 +00:00
Zone tooltip cosmetics.
This commit is contained in:
parent
ac68cde9f3
commit
17fdd2bcbf
@ -3634,14 +3634,13 @@ void View::ZoneTooltip( const ZoneEvent& ev )
|
|||||||
if( srcloc.name.active )
|
if( srcloc.name.active )
|
||||||
{
|
{
|
||||||
ImGui::Text( "%s", zoneName );
|
ImGui::Text( "%s", zoneName );
|
||||||
ImGui::Separator();
|
|
||||||
ImGui::Text( "%s", func );
|
ImGui::Text( "%s", func );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ImGui::Text( "%s", func );
|
ImGui::Text( "%s", func );
|
||||||
ImGui::Separator();
|
|
||||||
}
|
}
|
||||||
|
ImGui::Separator();
|
||||||
ImGui::Text( "%s:%i", filename, line );
|
ImGui::Text( "%s:%i", filename, line );
|
||||||
ImGui::Text( "Execution time: %s", TimeToString( end - ev.start ) );
|
ImGui::Text( "Execution time: %s", TimeToString( end - ev.start ) );
|
||||||
ImGui::Text( "Without profiling: %s", TimeToString( end - ev.start - m_delay * dmul ) );
|
ImGui::Text( "Without profiling: %s", TimeToString( end - ev.start - m_delay * dmul ) );
|
||||||
@ -3668,6 +3667,7 @@ void View::ZoneTooltip( const GpuEvent& ev )
|
|||||||
{
|
{
|
||||||
auto& srcloc = GetSourceLocation( ev.srcloc );
|
auto& srcloc = GetSourceLocation( ev.srcloc );
|
||||||
|
|
||||||
|
const auto name = GetString( srcloc.name );
|
||||||
const auto filename = GetString( srcloc.file );
|
const auto filename = GetString( srcloc.file );
|
||||||
const auto line = srcloc.line;
|
const auto line = srcloc.line;
|
||||||
const auto func = GetString( srcloc.function );
|
const auto func = GetString( srcloc.function );
|
||||||
@ -3675,6 +3675,7 @@ void View::ZoneTooltip( const GpuEvent& ev )
|
|||||||
const auto end = GetZoneEnd( ev );
|
const auto end = GetZoneEnd( ev );
|
||||||
|
|
||||||
ImGui::BeginTooltip();
|
ImGui::BeginTooltip();
|
||||||
|
ImGui::Text( "%s", name );
|
||||||
ImGui::Text( "%s", func );
|
ImGui::Text( "%s", func );
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
ImGui::Text( "%s:%i", filename, line );
|
ImGui::Text( "%s:%i", filename, line );
|
||||||
|
Loading…
Reference in New Issue
Block a user