diff options
author | Bartosz Taudul <wolf.pld@gmail.com> | 2019-08-17 04:06:54 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf.pld@gmail.com> | 2019-08-17 04:06:54 +0300 |
commit | 65e62dea060967a31bce694b413fb7c0408d1ccf (patch) | |
tree | 212cfc98efd8a8fd266ddb731eacb51e8b78be6e /server/TracyView.cpp | |
parent | 6c1dd8eaec66962530df0ed876d417e3e7554a90 (diff) |
Display thread ids next to thread names in CPU data.
Diffstat (limited to 'server/TracyView.cpp')
-rw-r--r-- | server/TracyView.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/TracyView.cpp b/server/TracyView.cpp index e10bc686..23cd91f0 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -4018,6 +4018,8 @@ int View::DrawCpuData( int offset, double pxns, const ImVec2& wpos, bool hover, ImGui::SameLine(); TextDisabledUnformatted( "(profiled program)" ); TextFocused( "Thread:", m_worker.GetThreadString( thread ) ); + ImGui::SameLine(); + ImGui::TextDisabled( "(0x%" PRIX64 ")", thread ); } else { @@ -4032,6 +4034,8 @@ int View::DrawCpuData( int offset, double pxns, const ImVec2& wpos, bool hover, TextDisabledUnformatted( "(external)" ); } TextFocused( "Thread:", m_worker.GetExternalName( thread ).second ); + ImGui::SameLine(); + ImGui::TextDisabled( "(0x%" PRIX64 ")", thread ); } ImGui::Separator(); TextFocused( "Start time:", TimeToString( start ) ); |