|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectomeis.providers.re.RenderingStats
public class RenderingStats
Exposes methods to time the various steps in the rendering process and
provides a stats report. Every time the
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 Summary | |
---|---|
RenderingStats(Renderer context,
PlaneDef plane)
Creates a new instance. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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
.Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta-4.1.1-r5927-b91
Copyright © 2009 The University of Dundee. All Rights Reserved.