Struct chakracore::runtime::Runtime
[−]
[src]
pub struct Runtime { /* fields omitted */ }
An isolated instance of a runtime.
Methods
impl Runtime
[src]
fn new() -> Result<Runtime>
Creates a new runtime.
fn builder() -> Builder
Returns a runtime builder.
fn collect(&self) -> Result<()>
Performs a full garbage collection.
fn run_idle_tasks(&mut self) -> Result<bool>
Runs any idle tasks that are in the queue. The returned duration is the least amount of time that should pass until this function is called again. This call will fail if the runtime was created without idle processing enabled.
Returns whether any processing was done or not.
fn get_memory_usage(&self) -> usize
Returns the runtime's memory usage
fn as_raw(&self) -> JsRuntimeHandle
Returns the underlying raw pointer behind this runtime.