From 8a301428416a8e59b9a13c0645e83bd0e041644a Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Wed, 17 Jul 2024 00:25:06 -0400 Subject: [PATCH] profile: Unset image in ExclusiveProfileResult if we didn't find a symbol. Fixes unknown hit counters. --- src/bin/debug/profile/BasicProfileResult.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/debug/profile/BasicProfileResult.cpp b/src/bin/debug/profile/BasicProfileResult.cpp index e7573412e0..f6da6342c5 100644 --- a/src/bin/debug/profile/BasicProfileResult.cpp +++ b/src/bin/debug/profile/BasicProfileResult.cpp @@ -348,6 +348,7 @@ ExclusiveProfileResult::AddSamples(ImageProfileResultContainer* container, break; if (firstImage == NULL) firstImage = image; + image = NULL; } }