Logging and diagnostics

Function Returns Description
GetLastScriptEngineExecutionTimeMs() double Returns the wall-clock duration of the most recent script-engine frame execution, in milliseconds.
GetLastScriptEngineExecutionTimeTicks() long Returns the wall-clock duration of the most recent script-engine frame execution, in Stopwatch ticks.
WriteToDesktopLog(message) void Appends a message to the Desktop debug log panel.
ClearDesktopDebugLog() void Clears the Desktop debug log panel.
GetLogEntries(minLogLevel, maxNumLogEntries) string (JSON) Get log lines having a max log level
GetLogEntriesByLogLevel(logLevel, maxNumLogEntries) string (JSON) Get log lines having a specific log level