From 24cd73e366452f8e4020907b55e170534143585e Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 23 Feb 2020 18:23:53 +0100 Subject: [PATCH] Fix linux tracing with long pids. --- client/TracySysTrace.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/TracySysTrace.cpp b/client/TracySysTrace.cpp index 3e76e8cb..1133e1a5 100644 --- a/client/TracySysTrace.cpp +++ b/client/TracySysTrace.cpp @@ -663,9 +663,10 @@ ssize_t getline(char **buf, size_t *bufsiz, FILE *fp) static void HandleTraceLine( const char* line ) { - line += 24; + line += 23; + while( *line != '[' ) line++; + line++; const auto cpu = (uint8_t)ReadNumber( line ); - line++; // ']' while( *line == ' ' ) line++;