 |
VTK
9.0.1
|
Go to the documentation of this file.
16 #ifndef vtkOpenGLRenderTimerLog_h
17 #define vtkOpenGLRenderTimerLog_h
20 #include "vtkRenderingOpenGL2Module.h"
91 vtkSetMacro(MinTimerPoolSize,
size_t);
92 vtkGetMacro(MinTimerPoolSize,
size_t);
119 void ReleaseOGLFrame(
OGLFrame& frame);
120 void ReleaseOGLEvent(
OGLEvent& event);
122 void TrimTimerPool();
124 void CheckPendingFrames();
128 void ForceCloseFrame(
OGLFrame& frame);
129 void ForceCloseEvent(
OGLEvent& event);
136 #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