public class RenderingStats extends Object
render
method is invoked a new
RenderingStats
object is created that can then be accessed by
the current RenderingStrategy
to notify start/end times of memory
allocation, IO, and rendering time.Constructor and Description |
---|
RenderingStats(Renderer context,
PlaneDef plane)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
endIO(int c)
Notifies the end of pixels data retrieval for the specified wavelength
(channel).
|
void |
endMalloc()
Notifies the end of the allocation of an RGB memory buffers for the
rendering process.
|
void |
endRendering()
Notifies the end of the trasnformation of the raw pixels data.
|
String |
getStats()
Returns a stats report ready to be written to the log file.
|
void |
startIO(int c)
Notifies the start of pixels data retrieval for the specified wavelength
(channel).
|
void |
startMalloc()
Notifies the start of the allocation of an RGB memory buffer for the
rendering process.
|
void |
startRendering()
Notifies the start of the trasnformation of the raw pixels data.
|
void |
stop()
Notifies this object that the rendering process has finished.
|
public RenderingStats(Renderer context, PlaneDef plane)
render
method
took to execute. The Renderer
takes care of creating this object
right before the rendering process starts and then calls the
stop
method just after the rendering process ends.context
- The object whose render
method is being timed.
Assumed not to be null
.plane
- Defines the plane that the render
is
processing. Assumed not to be null
.public void startMalloc()
endMalloc()
public void endMalloc()
startMalloc()
public void startIO(int c)
c
- The wavelength (channel) index.endIO(int)
public void endIO(int c)
c
- The wavelength (channel) index.startIO(int)
public void startRendering()
endRendering()
public void endRendering()
startRendering()
public void stop()
render
method took to execute. The getStats
method can now
be invoked to retrieve the stats report.public String getStats()
render
method took place. This method only provides a meaningful report if it is
called after the stop
method.
Version: 5.1.2-ice35-b45
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.