From 44c2e9fb050bcebe84aad6e0248a90e4919655a3 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 22 Mar 2025 23:22:11 +0000 Subject: [PATCH] bug fixes --- log/PerformanceProfiler.h | 3 +-- stdlib/Types.h | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/log/PerformanceProfiler.h b/log/PerformanceProfiler.h index 3d32706..41ba6a0 100755 --- a/log/PerformanceProfiler.h +++ b/log/PerformanceProfiler.h @@ -95,6 +95,7 @@ struct PerformanceProfiler { return; } + this->is_active = true; this->_id = id; atomic_increment_acquire_release(&_perf_stats[id].counter); @@ -198,8 +199,6 @@ void performance_profiler_end(int32 id) noexcept perf->self_cycle = perf->total_cycle; } -// This would allow us to go ham in a lot of functions (e.g. file reading) - #if LOG_LEVEL > 1 // Only these function can properly handle self-time calculation // Use these whenever you want to profile an entire function diff --git a/stdlib/Types.h b/stdlib/Types.h index 3bf7808..d340665 100755 --- a/stdlib/Types.h +++ b/stdlib/Types.h @@ -9,6 +9,7 @@ #ifndef COMS_STDLIB_TYPES_H #define COMS_STDLIB_TYPES_H +#include #include #if _WIN32