bug fixes
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (autobuild, c-cpp) (push) Has been cancelled
Microsoft C++ Code Analysis / Analyze (push) Has been cancelled

This commit is contained in:
Dennis Eichhorn 2025-03-22 23:22:11 +00:00
parent d37d1ebc6c
commit 44c2e9fb05
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -9,6 +9,7 @@
#ifndef COMS_STDLIB_TYPES_H
#define COMS_STDLIB_TYPES_H
#include <stddef.h>
#include <stdint.h>
#if _WIN32