From 48dd025e76dae2007df7cc3e11b1fbd263eba475 Mon Sep 17 00:00:00 2001 From: sorgom <110917257+sorgom@users.noreply.github.com> Date: Thu, 14 Nov 2024 11:29:07 +0100 Subject: [PATCH 1/3] tracing --- include/SOM/TraceMacros.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/SOM/TraceMacros.h b/include/SOM/TraceMacros.h index a89284c..fea79c7 100644 --- a/include/SOM/TraceMacros.h +++ b/include/SOM/TraceMacros.h @@ -21,11 +21,13 @@ struct T_Trace inline T_Trace(const char* section): mSection(section), mStart(std::chrono::steady_clock::now()) - {} + { + TRACE(">> " << section) + } inline ~T_Trace() { const _TracePoint end = std::chrono::steady_clock::now(); - TRACE('[' << std::setw(5) << std::chrono::duration_cast(end - mStart).count() << "] " << mSection); + TRACE("<< [" << std::setw(5) << std::chrono::duration_cast(end - mStart).count() << "] " << mSection); } }; struct F_Trace From f882b4ebfdf9c6ed2ca40eca2e576acba3877507 Mon Sep 17 00:00:00 2001 From: sorgom <110917257+sorgom@users.noreply.github.com> Date: Sun, 17 Nov 2024 14:31:13 +0100 Subject: [PATCH 2/3] fix: file name output --- src/fio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fio.cpp b/src/fio.cpp index a45598f..7f31810 100644 --- a/src/fio.cpp +++ b/src/fio.cpp @@ -26,7 +26,7 @@ bool open(std::ofstream& os, const std::filesystem::path& file, std::ios_base::o const bool ok = os.good(); if (ok) { - TRACE("-> " << file) + TRACE("-> " << file.string()) } else { From 0b48e32c904908ca93578883abacad8057768a6c Mon Sep 17 00:00:00 2001 From: sorgom <110917257+sorgom@users.noreply.github.com> Date: Mon, 18 Nov 2024 12:10:21 +0100 Subject: [PATCH 3/3] premake5 --- make/premake5.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make/premake5.lua b/make/premake5.lua index 52b4940..ca85915 100644 --- a/make/premake5.lua +++ b/make/premake5.lua @@ -11,7 +11,7 @@ workspace 'somcpp' configurations { 'ci', 'trace_on', 'trace_all' } language 'C++' targetdir '../build' - objdir '../build/%{_TARGET_OS}/%{cfg.name}' + objdir '../build/%{_TARGET_OS}' defines { 'NDEBUG' } optimize 'Size'