mirror of
https://github.com/Karaka-Management/cOMS.git
synced 2026-02-15 09:58:40 +00:00
bug fixes
This commit is contained in:
parent
d37d1ebc6c
commit
44c2e9fb05
|
|
@ -95,6 +95,7 @@ struct PerformanceProfiler {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this->is_active = true;
|
||||||
this->_id = id;
|
this->_id = id;
|
||||||
atomic_increment_acquire_release(&_perf_stats[id].counter);
|
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;
|
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
|
#if LOG_LEVEL > 1
|
||||||
// Only these function can properly handle self-time calculation
|
// Only these function can properly handle self-time calculation
|
||||||
// Use these whenever you want to profile an entire function
|
// Use these whenever you want to profile an entire function
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@
|
||||||
#ifndef COMS_STDLIB_TYPES_H
|
#ifndef COMS_STDLIB_TYPES_H
|
||||||
#define COMS_STDLIB_TYPES_H
|
#define COMS_STDLIB_TYPES_H
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#if _WIN32
|
#if _WIN32
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user