mirror of
https://github.com/Karaka-Management/cOMS.git
synced 2026-01-10 19:08:39 +00:00
bug fixes
This commit is contained in:
parent
d37d1ebc6c
commit
44c2e9fb05
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
#ifndef COMS_STDLIB_TYPES_H
|
||||
#define COMS_STDLIB_TYPES_H
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#if _WIN32
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user