From 6866d3ead77f441d89160eaf23a8252aae83fffa Mon Sep 17 00:00:00 2001 From: ghidra1 Date: Mon, 7 Aug 2023 12:13:00 -0400 Subject: [PATCH] GP-3717 store analysis task times only if unsaved changes exist --- .../ghidra/app/plugin/core/analysis/AutoAnalysisManager.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/analysis/AutoAnalysisManager.java b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/analysis/AutoAnalysisManager.java index add58bad86..18433615b3 100644 --- a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/analysis/AutoAnalysisManager.java +++ b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/analysis/AutoAnalysisManager.java @@ -1319,6 +1319,10 @@ public class AutoAnalysisManager implements DomainObjectListener, DomainObjectCl return; } + if (!p.isChanged()) { + return; // avoid storing task times if no other unsaved change exists + } + StoredAnalyzerTimes times = StoredAnalyzerTimes.getStoredAnalyzerTimes(program); String taskNames[] = getTimedTasks();