Skip to content

Type Alias: TXR_ProfilerType ​

ts
type TXR_ProfilerType = 
  | typeof PROFILER_TYPE_NONE
  | typeof PROFILER_TYPE_HOOK
  | typeof PROFILER_TYPE_SAMPLING;

Lua profiler mode accepted by profiler.start().

Source ​

C++ enum CScriptProfilerType

Remarks ​

Hook mode records Lua call/return events. Sampling mode uses the LuaJIT profiler. PROFILER_TYPE_NONE is exposed for status reporting and does not start profiling.