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
std::queue< vtkOpenGLRenderTimer * > TimerPool
std::queue< Frame > ReadyFrames
bool GetLoggingEnabled() override
Overridden to do support check before returning.
OpenGL2 override for vtkRenderTimerLog.
std::vector< OGLEvent > Events
virtual void MarkFrame()
Call to mark the start of a new frame, or the end of an old one.
std::deque< OGLFrame > PendingFrames
static vtkRenderTimerLog * New()
virtual bool IsSupported()
Returns true if stream timings are implemented for the current graphics backend.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Container for a frame's events.
virtual void MarkStartEvent(const std::string &name)
Mark the beginning or end of an event.
virtual void MarkEndEvent()
Mark the beginning or end of an event.
virtual bool FrameReady()
Returns true if there are any frames ready with complete timing info.
virtual void ReleaseGraphicsResources()
Releases any resources allocated on the graphics device.
vtkOpenGLRenderTimer * Timer
virtual Frame PopFirstReadyFrame()
Retrieve the first available frame's timing info.
Container for a single timed event.
Asynchronously measures GPU execution time for a single event.
Asynchronously measures GPU execution times for a series of events.
VTKACCELERATORSVTKM_EXPORT vtkm::cont::Field Convert(vtkDataArray *input, int association)