forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
19
Kha/Backends/Kinc-hxcpp/khacpp/test/telemetry/TestBasic.hx
Normal file
19
Kha/Backends/Kinc-hxcpp/khacpp/test/telemetry/TestBasic.hx
Normal file
@ -0,0 +1,19 @@
|
||||
class TestBasic extends haxe.unit.TestCase
|
||||
{
|
||||
public function new() super();
|
||||
|
||||
function testStartTelemetry(string:String)
|
||||
{
|
||||
var thread_id:Int = startTelemetry(true, true);
|
||||
assertTrue(thread_id>=0);
|
||||
}
|
||||
|
||||
function startTelemetry(with_profiler:Bool=true,
|
||||
with_allocations:Bool=true):Int
|
||||
{
|
||||
// Compile will fail without -D HXCPP_TELEMETRY
|
||||
return untyped __global__.__hxcpp_hxt_start_telemetry(with_profiler,
|
||||
with_allocations);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user