engine

Interact with our engine class

Compile Script

engine.compileScript(string: path = "none", string: code);

Path is not required and is none by default, but if you pass in a path to a script it will grab the scripts content and compile that

Evaluate

engine.evaluateScript(string: script);

Collect Garbage

engine.collectGarbage(bool: exhaustive);

True for a slower collection, false for a faster collection

Interrupt

engine.interruptScript();

Cancel Interrupt

engine.cancelInterrupt();

Start Profile Sample

engine.startProfile(string: name, int: ms, int: flags = 0);

0.) No CPU profile 1.) Automatic CPU sample collection

End Profile

Collect Profile

Last updated