[][src]Trait webrender::ProfilerHooks

pub trait ProfilerHooks: Send + Sync {
    fn begin_marker(&self, label: &CStr);
fn end_marker(&self, label: &CStr); }

Defines the interface for hooking up an external profiler to WR.

Required methods

fn begin_marker(&self, label: &CStr)

Called at the beginning of a profile scope. The label must be a C string (null terminated).

fn end_marker(&self, label: &CStr)

Called at the end of a profile scope. The label must be a C string (null terminated).

Loading content...

Implementors

Loading content...