Class RenderBenchmarkCollector.LoggingBenchmark
- java.lang.Object
-
- org.openstreetmap.josm.data.osm.visitor.paint.RenderBenchmarkCollector
-
- org.openstreetmap.josm.data.osm.visitor.paint.RenderBenchmarkCollector.CapturingBenchmark
-
- org.openstreetmap.josm.data.osm.visitor.paint.RenderBenchmarkCollector.LoggingBenchmark
-
- Enclosing class:
- RenderBenchmarkCollector
public static class RenderBenchmarkCollector.LoggingBenchmark extends RenderBenchmarkCollector.CapturingBenchmark
A special version of the benchmark class that logs the output to stderr.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstreetmap.josm.data.osm.visitor.paint.RenderBenchmarkCollector
RenderBenchmarkCollector.CapturingBenchmark, RenderBenchmarkCollector.LoggingBenchmark
-
-
Field Summary
Fields Modifier and Type Field Description private doublecircumprivate static java.io.PrintStreamoutStream-
Fields inherited from class org.openstreetmap.josm.data.osm.visitor.paint.RenderBenchmarkCollector.CapturingBenchmark
timeFinished, timeGenerateDone, timeSortingDone, timeStart
-
-
Constructor Summary
Constructors Constructor Description LoggingBenchmark()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrenderDone()Notified when the render method is done.booleanrenderDraw(java.util.List<StyledMapRenderer.StyleRecord> allStyleElems)Notified when the renderer method starts drawingvoidrenderStart(double circum)Notified when the renderer method starts preparing the data-
Methods inherited from class org.openstreetmap.josm.data.osm.visitor.paint.RenderBenchmarkCollector.CapturingBenchmark
getDrawTime, getGenerateTime, getSortTime, renderSort
-
Methods inherited from class org.openstreetmap.josm.data.osm.visitor.paint.RenderBenchmarkCollector
defaultBenchmarkSupplier, getCurrentTimeMilliseconds
-
-
-
-
Constructor Detail
-
LoggingBenchmark
public LoggingBenchmark()
-
-
Method Detail
-
renderStart
public void renderStart(double circum)
Description copied from class:RenderBenchmarkCollectorNotified when the renderer method starts preparing the data- Overrides:
renderStartin classRenderBenchmarkCollector.CapturingBenchmark- Parameters:
circum- The current circum of the view.
-
renderDraw
public boolean renderDraw(java.util.List<StyledMapRenderer.StyleRecord> allStyleElems)
Description copied from class:RenderBenchmarkCollectorNotified when the renderer method starts drawing- Overrides:
renderDrawin classRenderBenchmarkCollector.CapturingBenchmark- Parameters:
allStyleElems- All the elements that are painted. Unsorted- Returns:
trueif the renderer should continue to render
-
renderDone
public void renderDone()
Description copied from class:RenderBenchmarkCollectorNotified when the render method is done.- Overrides:
renderDonein classRenderBenchmarkCollector.CapturingBenchmark
-
-