public static class RenderBenchmarkCollector.CapturingBenchmark extends RenderBenchmarkCollector
RenderBenchmarkCollector.CapturingBenchmark, RenderBenchmarkCollector.LoggingBenchmark
Modifier and Type | Field and Description |
---|---|
protected long |
timeFinished |
protected long |
timeGenerateDone |
protected long |
timeSortingDone |
protected long |
timeStart |
Constructor and Description |
---|
CapturingBenchmark() |
Modifier and Type | Method and Description |
---|---|
long |
getDrawTime()
Get the draw time
|
long |
getGenerateTime()
Get the time needed for generating the styles
|
long |
getSortTime()
Get the time needed for computing the draw order
|
void |
renderDone()
Notified when the render method is done.
|
boolean |
renderDraw(java.util.List<StyledMapRenderer.StyleRecord> allStyleElems)
Notified when the renderer method starts drawing
|
boolean |
renderSort()
Notified when the renderer method starts sorting the styles
|
void |
renderStart(double circum)
Notified when the renderer method starts preparing the data
|
defaultBenchmarkSupplier
protected long timeStart
protected long timeGenerateDone
protected long timeSortingDone
protected long timeFinished
public CapturingBenchmark()
public void renderStart(double circum)
RenderBenchmarkCollector
renderStart
in class RenderBenchmarkCollector
circum
- The current circum of the view.public boolean renderSort()
RenderBenchmarkCollector
renderSort
in class RenderBenchmarkCollector
true
if the renderer should continue to renderpublic boolean renderDraw(java.util.List<StyledMapRenderer.StyleRecord> allStyleElems)
RenderBenchmarkCollector
renderDraw
in class RenderBenchmarkCollector
allStyleElems
- All the elements that are painted.true
if the renderer should continue to renderpublic long getGenerateTime()
public long getSortTime()
public void renderDone()
RenderBenchmarkCollector
renderDone
in class RenderBenchmarkCollector
public long getDrawTime()