From f7e26acfb96b22504efee266e8cd3d869ef082e7 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 16 Oct 2024 00:22:06 +0200 Subject: [PATCH] Additional kernel frame check. --- profiler/src/profiler/TracyView_Callstack.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiler/src/profiler/TracyView_Callstack.cpp b/profiler/src/profiler/TracyView_Callstack.cpp index 4125f198..1f656add 100644 --- a/profiler/src/profiler/TracyView_Callstack.cpp +++ b/profiler/src/profiler/TracyView_Callstack.cpp @@ -12,7 +12,7 @@ namespace tracy static bool IsFrameExternal( const char* filename, const char* image ) { - if( strncmp( filename, "/usr/", 5 ) == 0 || strncmp( filename, "/lib/", 5 ) == 0 || strcmp( filename, "[unknown]" ) == 0 ) return true; + if( strncmp( filename, "/usr/", 5 ) == 0 || strncmp( filename, "/lib/", 5 ) == 0 || strcmp( filename, "[unknown]" ) == 0 || strcmp( filename, "" ) == 0 ) return true; if( strncmp( filename, "C:\\Program Files\\", 17 ) == 0 || strncmp( filename, "d:\\a01\\_work\\", 13 ) == 0 ) return true; if( !image ) return false; return strncmp( image, "/usr/", 5 ) == 0 || strncmp( image, "/lib/", 5 ) == 0 || strncmp( image, "/lib64/", 7 ) == 0 || strcmp( image, "" ) == 0;