mirror of
https://github.com/Karaka-Management/cOMS.git
synced 2026-01-11 11:18:40 +00:00
37 lines
716 B
C
37 lines
716 B
C
/**
|
|
* Jingga
|
|
*
|
|
* @copyright Jingga
|
|
* @license OMS License 2.0
|
|
* @version 1.0.0
|
|
* @link https://jingga.app
|
|
*/
|
|
#ifndef TOS_LOG_DEBUG_H
|
|
#define TOS_LOG_DEBUG_H
|
|
|
|
#include "../stdlib/Types.h"
|
|
#include "DebugMemory.h"
|
|
#include "Log.h"
|
|
#include "TimingStat.h"
|
|
|
|
struct DebugContainer {
|
|
DebugMemoryContainer dmc;
|
|
|
|
// Used for logging timings for different sections
|
|
TimingStat* perf_stats;
|
|
|
|
// Required to calculate the "fps"
|
|
uint64 performance_count_frequency;
|
|
|
|
// Used to log memory access (read, write)
|
|
LogMemory log_memory;
|
|
|
|
// Used to log general int values (e.g. counter for draw calls etc.)
|
|
int32* counter;
|
|
|
|
#if _WIN32
|
|
HANDLE log_fp;
|
|
#endif
|
|
};
|
|
|
|
#endif |