SwappyTracer

#include <swappy_common.h>

Collection of callbacks to be called each frame to trace execution.

Summary

Injection of these is optional.

Public attributes

postSwapBuffers
Callback called after calling the function to queue the frame to the composer.
postWait
Callback called after wait to queue the frame to the composer is done.
preSwapBuffers
Callback called before calling the function to queue the frame to the composer.
preWait
Callback called before waiting to queue the frame to the composer.
startFrame
Callback called at the start of a frame.
swapIntervalChanged
Callback called when the swap interval was changed.
userData
void *
Pointer to some arbitrary data that will be passed as the first argument of callbacks.

Public attributes

postSwapBuffers

SwappyPostSwapBuffersCallback SwappyTracer::postSwapBuffers

Callback called after calling the function to queue the frame to the composer.

postWait

SwappyWaitCallback SwappyTracer::postWait

Callback called after wait to queue the frame to the composer is done.

preSwapBuffers

SwappyPreSwapBuffersCallback SwappyTracer::preSwapBuffers

Callback called before calling the function to queue the frame to the composer.

preWait

SwappyWaitCallback SwappyTracer::preWait

Callback called before waiting to queue the frame to the composer.

startFrame

SwappyStartFrameCallback SwappyTracer::startFrame

Callback called at the start of a frame.

swapIntervalChanged

SwappySwapIntervalChangedCallback SwappyTracer::swapIntervalChanged

Callback called when the swap interval was changed.

userData

void * SwappyTracer::userData

Pointer to some arbitrary data that will be passed as the first argument of callbacks.