Class RenderBenchmarkCollector

java.lang.Object
org.openstreetmap.josm.data.osm.visitor.paint.RenderBenchmarkCollector
Direct Known Subclasses:
RenderBenchmarkCollector.CapturingBenchmark

public class RenderBenchmarkCollector extends Object
This class is notified of the various stages of a render pass.
Since:
10697
  • Constructor Details

  • Method Details

    • renderStart

      public void renderStart(double circum)
      Notified when the renderer method starts preparing the data
      Parameters:
      circum - The current circum of the view.
    • renderSort

      public boolean renderSort()
      Notified when the renderer method starts sorting the styles
      Returns:
      true if the renderer should continue to render
    • renderDraw

      public boolean renderDraw(List<StyledMapRenderer.StyleRecord> allStyleElems)
      Notified when the renderer method starts drawing
      Parameters:
      allStyleElems - All the elements that are painted. Unsorted
      Returns:
      true if the renderer should continue to render
    • renderDone

      public void renderDone()
      Notified when the render method is done.
    • getCurrentTimeMilliseconds

      public static long getCurrentTimeMilliseconds()
    • defaultBenchmarkSupplier

      A supplier that gets the default benchmark class.
      Returns:
      A supplier that returns a nop or a logging benchmark.