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 double
circum
private static java.io.PrintStream
outStream
-
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 void
renderDone()
Notified when the render method is done.boolean
renderDraw(java.util.List<StyledMapRenderer.StyleRecord> allStyleElems)
Notified when the renderer method starts drawingvoid
renderStart(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:RenderBenchmarkCollector
Notified when the renderer method starts preparing the data- Overrides:
renderStart
in classRenderBenchmarkCollector.CapturingBenchmark
- Parameters:
circum
- The current circum of the view.
-
renderDraw
public boolean renderDraw(java.util.List<StyledMapRenderer.StyleRecord> allStyleElems)
Description copied from class:RenderBenchmarkCollector
Notified when the renderer method starts drawing- Overrides:
renderDraw
in classRenderBenchmarkCollector.CapturingBenchmark
- Parameters:
allStyleElems
- All the elements that are painted. Unsorted- Returns:
true
if the renderer should continue to render
-
renderDone
public void renderDone()
Description copied from class:RenderBenchmarkCollector
Notified when the render method is done.- Overrides:
renderDone
in classRenderBenchmarkCollector.CapturingBenchmark
-
-