diff options
| author | Mason Reed <mason@vector35.com> | 2025-07-16 13:56:54 -0400 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-07-17 06:20:20 -0400 |
| commit | 1f908137c176cdd3eea7699cc3c75920c2cf9b9a (patch) | |
| tree | 9831d5a2472ebae8d79d139c0af1f2a641596fe5 /plugins/warp/src/plugin | |
| parent | eb444881e7c83d4bf97e4456fd08a3587d8e012c (diff) | |
[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
Diffstat (limited to 'plugins/warp/src/plugin')
| -rw-r--r-- | plugins/warp/src/plugin/workflow.rs | 6 |
1 files changed, 5 insertions, 1 deletions
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. |
