Go to the documentation of this file.
16 #ifndef vtkOpenGLRenderTimerLog_h
17 #define vtkOpenGLRenderTimerLog_h
20 #include "vtkRenderingOpenGL2Module.h"
86 vtkSetMacro(MinTimerPoolSize,
size_t)
87 vtkGetMacro(MinTimerPoolSize,
size_t)
114 void ReleaseOGLFrame(
OGLFrame &frame);
115 void ReleaseOGLEvent(
OGLEvent &event);
117 void TrimTimerPool();
119 void CheckPendingFrames();
123 void ForceCloseFrame(
OGLFrame &frame);
124 void ForceCloseEvent(
OGLEvent &event);
131 #endif // vtkOpenGLRenderTimerLog_h
std::vector< OGLEvent > Events
OpenGL2 override for vtkRenderTimerLog.
virtual void MarkFrame()
Call to mark the start of a new frame, or the end of an old one.
std::queue< vtkOpenGLRenderTimer * > TimerPool
vtkOpenGLRenderTimer * Timer
VTKACCELERATORSVTKM_EXPORT vtkm::cont::Field Convert(vtkDataArray *input, int association)
Asynchronously measures GPU execution time for a single event.
std::vector< OGLEvent > Events
bool GetLoggingEnabled() override
Overridden to do support check before returning.
static vtkRenderTimerLog * New()
std::deque< OGLFrame > PendingFrames
virtual bool IsSupported()
Returns true if stream timings are implemented for the current graphics backend.
a simple class to control print indentation
virtual void MarkEndEvent()
Mark the beginning or end of an event.
virtual void ReleaseGraphicsResources()
Releases any resources allocated on the graphics device.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void MarkStartEvent(const std::string &name)
Mark the beginning or end of an event.
Container for a frame's events.
Asynchronously measures GPU execution times for a series of events.
virtual Frame PopFirstReadyFrame()
Retrieve the first available frame's timing info.
virtual bool FrameReady()
Returns true if there are any frames ready with complete timing info.
Container for a single timed event.
std::queue< Frame > ReadyFrames