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-10-27 00:22:24 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-10-27 00:23:07 +0300
commitd523c728ead6ca9f3796f35ca05612c53dcfb7a6 (patch)
tree1b1a07f9a514031dfb8352e783d1d6bf3b14664a
parent86f88714aecb691df960467a6ede69ed9bdaf8d9 (diff)
Do not display unknown PIDs.
-rw-r--r--profiler/src/main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp
index 59a647c7..0c8ef61e 100644
--- a/profiler/src/main.cpp
+++ b/profiler/src/main.cpp
@@ -765,7 +765,10 @@ static void DrawContents()
}
tracy::TextFocused( "IP:", v.second.address.c_str() );
tracy::TextFocused( "Port:", portstr );
- tracy::TextFocused( "PID:", tracy::RealToString( v.second.pid ) );
+ if( v.second.pid != 0 )
+ {
+ tracy::TextFocused( "PID:", tracy::RealToString( v.second.pid ) );
+ }
ImGui::EndTooltip();
}
if( v.second.port != port )