Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf.pld@gmail.com>2019-08-16 20:49:16 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2019-08-16 20:49:16 +0300
commite975c4d7bf73b3900e0fbf52f1511d185adbc9ef (patch)
treea439fab65a29c6f3df4482c51f7aca76437ca5c0 /server/TracyView.cpp
parent134a8c5d2a2d28d68c75b121488c0089af96fdec (diff)
Also retrieve external thread names.
Diffstat (limited to 'server/TracyView.cpp')
-rw-r--r--server/TracyView.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/TracyView.cpp b/server/TracyView.cpp
index fe4f4ada..e10bc686 100644
--- a/server/TracyView.cpp
+++ b/server/TracyView.cpp
@@ -3972,7 +3972,7 @@ int View::DrawCpuData( int offset, double pxns, const ImVec2& wpos, bool hover,
{
const auto thread = it->Thread();
const auto local = m_worker.IsThreadLocal( thread );
- auto txt = local ? m_worker.GetThreadString( thread ) : m_worker.GetExternalName( thread );
+ auto txt = local ? m_worker.GetThreadString( thread ) : m_worker.GetExternalName( thread ).first;
const bool untracked = !local && strcmp( txt, m_worker.GetCaptureProgram().c_str() ) == 0;
const auto pr0 = ( start - m_zvStart ) * pxns;
const auto pr1 = ( end - m_zvStart ) * pxns;
@@ -4031,6 +4031,7 @@ int View::DrawCpuData( int offset, double pxns, const ImVec2& wpos, bool hover,
{
TextDisabledUnformatted( "(external)" );
}
+ TextFocused( "Thread:", m_worker.GetExternalName( thread ).second );
}
ImGui::Separator();
TextFocused( "Start time:", TimeToString( start ) );