forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
35
Kha/Backends/Kinc-hxcpp/khacpp/include/hx/Telemetry.h
Normal file
35
Kha/Backends/Kinc-hxcpp/khacpp/include/hx/Telemetry.h
Normal file
@ -0,0 +1,35 @@
|
||||
#ifndef HX_TELEMETRY_H
|
||||
#define HX_TELEMETRY_H
|
||||
|
||||
#define HX_TELEMETRY_VERSION 1
|
||||
|
||||
#include <hxcpp.h>
|
||||
#include <vector>
|
||||
|
||||
struct TelemetryFrame
|
||||
{
|
||||
// microseconds, always valid
|
||||
int gctime;
|
||||
int gcoverhead;
|
||||
|
||||
// Valid only if profiler is enabled
|
||||
std::vector<int> *samples;
|
||||
std::vector<const char*> *names;
|
||||
|
||||
// Valid only if allocations (and profiler) are enabled
|
||||
std::vector<int> *allocation_data;
|
||||
std::vector<int> *stacks;
|
||||
};
|
||||
|
||||
// --- Telemetry -----------------------------------------------------------------
|
||||
|
||||
int __hxcpp_hxt_start_telemetry(bool profiler, bool allocations);
|
||||
void __hxcpp_hxt_stash_telemetry();
|
||||
TelemetryFrame* __hxcpp_hxt_dump_telemetry(int thread_num);
|
||||
void __hxcpp_hxt_ignore_allocs(int delta);
|
||||
|
||||
// expose these from GCInternal
|
||||
int __hxcpp_gc_reserved_bytes();
|
||||
int __hxcpp_gc_used_bytes();
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user