From 1f908137c176cdd3eea7699cc3c75920c2cf9b9a Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Wed, 16 Jul 2025 13:56:54 -0400 Subject: [WARP] Stop showing the time it took to match if it is under a second Just added noise to the logs, probably should do this for rtti as well --- plugins/warp/src/plugin/workflow.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'plugins/warp/src/plugin') diff --git a/plugins/warp/src/plugin/workflow.rs b/plugins/warp/src/plugin/workflow.rs index c2f82bd9..04e14a16 100644 --- a/plugins/warp/src/plugin/workflow.rs +++ b/plugins/warp/src/plugin/workflow.rs @@ -155,7 +155,11 @@ pub fn run_matcher(view: &BinaryView) { log::info!("Matcher was cancelled by user, you may run it again by running the 'Run Matcher' command."); } - log::info!("Function matching took {:?}", start.elapsed()); + // It is noisy to show this every time, so we only show it in cases where a user can reasonably perceive. + let elapsed = start.elapsed(); + if elapsed > std::time::Duration::from_secs(1) { + log::info!("Function matching took {:?}", elapsed); + } background_task.finish(); // Now we want to trigger re-analysis. -- cgit v1.3.1