Skip to content
SiteEmail

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>

Name
IProfileMarkersTracer()
virtual~IProfileMarkersTracer()
virtual voidBeginTraceEvent(const char * systemName, const char * markerName) =0
Start a scoped profiling marker.
virtual voidBeginTraceEventWithString(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 voidBeginTraceEventWithInt(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 voidEndTraceEvent(const char * systemName, const char * markerName) =0
End a scoped profiling marker.
virtual voidBeginTraceEventAsync(const char * systemName, const char * markerName, void * id) =0
Start a profiling event that can be started and ended on different threads.
virtual voidEndTraceEventAsync(const char * systemName, const char * markerName, void * id) =0
End a profiling event that can be started and ended on different threads.
virtual voidInstantTraceEvent(const char * systemName, const char * markerName) =0
Emit a simple event that does not have starting and beginning point.
virtual voidInstantTraceEventWithInt(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 voidUpdateCounter(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.
IProfileMarkersTracer()
virtual ~IProfileMarkersTracer()
virtual void BeginTraceEvent(
const char * systemName,
const char * markerName
) =0

Start 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
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.

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
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.

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
virtual void EndTraceEvent(
const char * systemName,
const char * markerName
) =0

End 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
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.

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
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.

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
virtual void InstantTraceEvent(
const char * systemName,
const char * markerName
) =0

Emit 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
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.

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
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.

Parameters:

  • name The name of the counter
  • value The new value of the counter