renoir::IProfileMarkersTracer
Object that handled profiling messages. On platforms where Renoir does not use native performance markers, these callbacks are used to tell the user code when profiling is started/stopped and what messages are emitted.
#include <CoherentRenderingLibrary.h>
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| IProfileMarkersTracer() | |
| virtual | ~IProfileMarkersTracer() |
| virtual void | BeginTraceEvent(const char * systemName, const char * markerName) =0 Start a scoped profiling marker. |
| virtual void | BeginTraceEventWithString(const char * systemName, const char * markerName, const char * valueName, const char * value) =0 Start a scoped profiling marker with a string data attached to it. |
| virtual void | BeginTraceEventWithInt(const char * systemName, const char * markerName, const char * valueName, int value) =0 Start a scoped profiling marker with a integer data attached to it. |
| virtual void | EndTraceEvent(const char * systemName, const char * markerName) =0 End a scoped profiling marker. |
| virtual void | BeginTraceEventAsync(const char * systemName, const char * markerName, void * id) =0 Start a profiling event that can be started and ended on different threads. |
| virtual void | EndTraceEventAsync(const char * systemName, const char * markerName, void * id) =0 End a profiling event that can be started and ended on different threads. |
| virtual void | InstantTraceEvent(const char * systemName, const char * markerName) =0 Emit a simple event that does not have starting and beginning point. |
| virtual void | InstantTraceEventWithInt(const char * systemName, const char * markerName, const char * valueName, int value) =0 Emit a simple event that does not have starting and beginning point and has some integer data attached to it. |
| virtual void | UpdateCounter(const char * name, int value) =0 Update a profilng counter with a value. Most of the time, those are different memory counters for various subsystems of Cohtml. |
Public Functions Documentation
Section titled “Public Functions Documentation”function IProfileMarkersTracer
Section titled “function IProfileMarkersTracer”IProfileMarkersTracer()function ~IProfileMarkersTracer
Section titled “function ~IProfileMarkersTracer”virtual ~IProfileMarkersTracer()function BeginTraceEvent
Section titled “function BeginTraceEvent”virtual void BeginTraceEvent( const char * systemName, const char * markerName) =0Start a scoped profiling marker.
Parameters:
- systemName Name of the Cohtml’s subsystem from where the profiling event is emitted
- markerName The name of the marker that is started
function BeginTraceEventWithString
Section titled “function BeginTraceEventWithString”virtual void BeginTraceEventWithString( const char * systemName, const char * markerName, const char * valueName, const char * value) =0Start a scoped profiling marker with a string data attached to it.
Parameters:
- systemName Name of the Cohtml’s subsystem from where the profiling event is emitted
- markerName The name of the marker that is started
- valueName Name of the string variable for the event
- value The value of the string variable
function BeginTraceEventWithInt
Section titled “function BeginTraceEventWithInt”virtual void BeginTraceEventWithInt( const char * systemName, const char * markerName, const char * valueName, int value) =0Start a scoped profiling marker with a integer data attached to it.
Parameters:
- systemName Name of the Cohtml’s subsystem from where the profiling event is emitted
- markerName The name of the marker that is started
- valueName Name of the integer variable for the event
- value The value of the integer variable
function EndTraceEvent
Section titled “function EndTraceEvent”virtual void EndTraceEvent( const char * systemName, const char * markerName) =0End a scoped profiling marker.
Parameters:
- systemName Name of the Cohtml’s subsystem from where the profiling event is emitted
- markerName The name of the marker that is started
function BeginTraceEventAsync
Section titled “function BeginTraceEventAsync”virtual void BeginTraceEventAsync( const char * systemName, const char * markerName, void * id) =0Start a profiling event that can be started and ended on different threads.
Parameters:
- systemName Name of the Cohtml’s subsystem from where the profiling event is emitted
- markerName The name of the marker that is started
- id Unique pointer that can be used to identify the event
function EndTraceEventAsync
Section titled “function EndTraceEventAsync”virtual void EndTraceEventAsync( const char * systemName, const char * markerName, void * id) =0End a profiling event that can be started and ended on different threads.
Parameters:
- systemName Name of the Cohtml’s subsystem from where the profiling event is emitted
- markerName The name of the marker that is started
- id Unique pointer that can be used to identify the event
function InstantTraceEvent
Section titled “function InstantTraceEvent”virtual void InstantTraceEvent( const char * systemName, const char * markerName) =0Emit a simple event that does not have starting and beginning point.
Parameters:
- systemName Name of the Cohtml’s subsystem from where the event is emitted
- markerName The name of the marker that is emitted
function InstantTraceEventWithInt
Section titled “function InstantTraceEventWithInt”virtual void InstantTraceEventWithInt( const char * systemName, const char * markerName, const char * valueName, int value) =0Emit a simple event that does not have starting and beginning point and has some integer data attached to it.
Parameters:
- systemName Name of the Cohtml’s subsystem from where the event is emitted
- markerName The name of the marker that is emitted
- valueName Name of the integer variable for the event
- value The value of the integer variable
function UpdateCounter
Section titled “function UpdateCounter”virtual void UpdateCounter( const char * name, int value) =0Update a profilng counter with a value. Most of the time, those are different memory counters for various subsystems of Cohtml.
Parameters:
- name The name of the counter
- value The new value of the counter
© 2026 Coherent Labs. All rights reserved.