Skip to content

Commit

Permalink
Print git ref in the about dialog.
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfpld committed Sep 8, 2024
1 parent 5934f5d commit 1950040
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions profiler/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@
#include "ResolvService.hpp"
#include "RunQueue.hpp"

#include "GitRef.hpp"


struct ClientData
{
Expand Down Expand Up @@ -714,6 +716,11 @@ static void DrawContents()
ImGui::PushFont( s_bigFont );
tracy::TextCentered( buf );
ImGui::PopFont();
ImGui::PushFont( s_smallFont );
ImGui::PushStyleColor( ImGuiCol_Text, GImGui->Style.Colors[ImGuiCol_TextDisabled] );
tracy::TextCentered( tracy::GitRef );
ImGui::PopStyleColor();
ImGui::PopFont();
ImGui::Spacing();
ImGui::TextUnformatted( "A real time, nanosecond resolution, remote telemetry, hybrid\nframe and sampling profiler for games and other applications." );
ImGui::Spacing();
Expand Down

0 comments on commit 1950040

Please sign in to comment.