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@nereid.pl>2022-07-02 15:14:27 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-07-02 15:14:27 +0300
commitb58a206d9d6942178344db87f5ba25e0a8c886b8 (patch)
treeb2011b751a10ba237fedcb3bab9ee91c7929841b /server/TracyView.cpp
parent701cc16cbf378992bc04771a9d8a1114e12efcd5 (diff)
More utility extract.
Diffstat (limited to 'server/TracyView.cpp')
-rw-r--r--server/TracyView.cpp38
1 files changed, 0 insertions, 38 deletions
diff --git a/server/TracyView.cpp b/server/TracyView.cpp
index b8a655df..22a773d7 100644
--- a/server/TracyView.cpp
+++ b/server/TracyView.cpp
@@ -5504,44 +5504,6 @@ int View::DrawLocks( uint64_t tid, bool hover, double pxns, const ImVec2& wpos,
return cnt;
}
-const char* View::GetThreadContextData( uint64_t thread, bool& _local, bool& _untracked, const char*& program )
-{
- static char buf[256];
- const auto local = m_worker.IsThreadLocal( thread );
- auto txt = local ? m_worker.GetThreadName( thread ) : m_worker.GetExternalName( thread ).first;
- auto label = txt;
- bool untracked = false;
- if( !local )
- {
- if( m_worker.GetPid() == 0 )
- {
- untracked = strcmp( txt, m_worker.GetCaptureProgram().c_str() ) == 0;
- }
- else
- {
- const auto pid = m_worker.GetPidFromTid( thread );
- untracked = pid == m_worker.GetPid();
- if( untracked )
- {
- label = txt = m_worker.GetExternalName( thread ).second;
- }
- else
- {
- const auto ttxt = m_worker.GetExternalName( thread ).second;
- if( strcmp( ttxt, "???" ) != 0 && strcmp( ttxt, txt ) != 0 )
- {
- snprintf( buf, 256, "%s (%s)", txt, ttxt );
- label = buf;
- }
- }
- }
- }
- _local = local;
- _untracked = untracked;
- program = txt;
- return label;
-}
-
int View::DrawCpuData( int offset, double pxns, const ImVec2& wpos, bool hover, float yMin, float yMax )
{
auto cpuData = m_worker.GetCpuData();