From ef524bb0f6ca035c6ecd9309813792c30a2d8c04 Mon Sep 17 00:00:00 2001 From: ManDude <7569514+ManDude@users.noreply.github.com> Date: Sat, 16 Apr 2022 21:28:31 +0100 Subject: [PATCH] add timer to decompiler --- decompiler/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/decompiler/main.cpp b/decompiler/main.cpp index bede66b8a0..99b49c73ec 100644 --- a/decompiler/main.cpp +++ b/decompiler/main.cpp @@ -11,8 +11,11 @@ #include "decompiler/data/TextureDB.h" #include "common/util/os.h" #include "common/util/diff.h" +#include "common/util/Timer.h" int main(int argc, char** argv) { + Timer decomp_timer; + fmt::print("[Mem] Top of main: {} MB\n", get_peak_rss() / (1024 * 1024)); using namespace decompiler; if (!file_util::setup_project_path(std::nullopt)) { @@ -216,6 +219,6 @@ int main(int argc, char** argv) { process_streamed_audio(config.audio_dir_file_name, config.streamed_audio_file_names); } - lg::info("Disassembly has completed successfully."); + lg::info("Decompiler has finished successfully in {:.2f} seconds.", decomp_timer.getSeconds()); return 0; }