Class RenderBenchmarkCollector
java.lang.Object
org.openstreetmap.josm.data.osm.visitor.paint.RenderBenchmarkCollector
- Direct Known Subclasses:
RenderBenchmarkCollector.CapturingBenchmark
This class is notified of the various stages of a render pass.
- Since:
- 10697
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA benchmark implementation that captures the timesstatic classA special version of the benchmark class that logs the output to stderr. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Supplier<RenderBenchmarkCollector>A supplier that gets the default benchmark class.static longvoidNotified when the render method is done.booleanrenderDraw(List<StyledMapRenderer.StyleRecord> allStyleElems) Notified when the renderer method starts drawingbooleanNotified when the renderer method starts sorting the stylesvoidrenderStart(double circum) Notified when the renderer method starts preparing the data
-
Constructor Details
-
RenderBenchmarkCollector
public RenderBenchmarkCollector()
-
-
Method Details
-
renderStart
Notified when the renderer method starts preparing the data- Parameters:
circum- The current circum of the view.
-
renderSort
Notified when the renderer method starts sorting the styles- Returns:
trueif the renderer should continue to render
-
renderDraw
Notified when the renderer method starts drawing- Parameters:
allStyleElems- All the elements that are painted. Unsorted- Returns:
trueif the renderer should continue to render
-
renderDone
Notified when the render method is done. -
getCurrentTimeMilliseconds
-
defaultBenchmarkSupplier
A supplier that gets the default benchmark class.- Returns:
- A supplier that returns a nop or a logging benchmark.
-