src/java.desktop/share/classes/sun/java2d/marlin/RendererStats.java
changeset 48284 fd7fbc929001
parent 47216 71c04702a3d5
child 49496 1ea202af7a97
equal deleted inserted replaced
48283:da1b57b17101 48284:fd7fbc929001
     1 /*
     1 /*
     2  * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    64         = new StatLong("cache.rowAA");
    64         = new StatLong("cache.rowAA");
    65     final StatLong stat_cache_rowAAChunk
    65     final StatLong stat_cache_rowAAChunk
    66         = new StatLong("cache.rowAAChunk");
    66         = new StatLong("cache.rowAAChunk");
    67     final StatLong stat_cache_tiles
    67     final StatLong stat_cache_tiles
    68         = new StatLong("cache.tiles");
    68         = new StatLong("cache.tiles");
    69     final StatLong stat_rdr_poly_stack_curves
       
    70         = new StatLong("renderer.poly.stack.curves");
       
    71     final StatLong stat_rdr_poly_stack_types
       
    72         = new StatLong("renderer.poly.stack.types");
       
    73     final StatLong stat_rdr_addLine
    69     final StatLong stat_rdr_addLine
    74         = new StatLong("renderer.addLine");
    70         = new StatLong("renderer.addLine");
    75     final StatLong stat_rdr_addLine_skip
    71     final StatLong stat_rdr_addLine_skip
    76         = new StatLong("renderer.addLine.skip");
    72         = new StatLong("renderer.addLine.skip");
    77     final StatLong stat_rdr_curveBreak
    73     final StatLong stat_rdr_curveBreak
   104         = new StatLong("renderer.crossings.sorts");
   100         = new StatLong("renderer.crossings.sorts");
   105     final StatLong stat_rdr_crossings_bsearch
   101     final StatLong stat_rdr_crossings_bsearch
   106         = new StatLong("renderer.crossings.bsearch");
   102         = new StatLong("renderer.crossings.bsearch");
   107     final StatLong stat_rdr_crossings_msorts
   103     final StatLong stat_rdr_crossings_msorts
   108         = new StatLong("renderer.crossings.msorts");
   104         = new StatLong("renderer.crossings.msorts");
       
   105     final StatLong stat_str_polystack_curves
       
   106         = new StatLong("stroker.polystack.curves");
       
   107     final StatLong stat_str_polystack_types
       
   108         = new StatLong("stroker.polystack.types");
       
   109     final StatLong stat_cpd_polystack_curves
       
   110         = new StatLong("closedPathDetector.polystack.curves");
       
   111     final StatLong stat_cpd_polystack_types
       
   112         = new StatLong("closedPathDetector.polystack.types");
       
   113     final StatLong stat_pcf_idxstack_indices
       
   114         = new StatLong("pathClipFilter.stack.indices");
   109     // growable arrays
   115     // growable arrays
   110     final StatLong stat_array_dasher_dasher
   116     final StatLong stat_array_dasher_dasher
   111         = new StatLong("array.dasher.dasher.d_float");
   117         = new StatLong("array.dasher.dasher.d_float");
   112     final StatLong stat_array_dasher_firstSegmentsBuffer
   118     final StatLong stat_array_dasher_firstSegmentsBuffer
   113         = new StatLong("array.dasher.firstSegmentsBuffer.d_float");
   119         = new StatLong("array.dasher.firstSegmentsBuffer.d_float");
   114     final StatLong stat_array_stroker_polystack_curves
       
   115         = new StatLong("array.stroker.polystack.curves.d_float");
       
   116     final StatLong stat_array_stroker_polystack_curveTypes
       
   117         = new StatLong("array.stroker.polystack.curveTypes.d_byte");
       
   118     final StatLong stat_array_marlincache_rowAAChunk
   120     final StatLong stat_array_marlincache_rowAAChunk
   119         = new StatLong("array.marlincache.rowAAChunk.resize");
   121         = new StatLong("array.marlincache.rowAAChunk.resize");
   120     final StatLong stat_array_marlincache_touchedTile
   122     final StatLong stat_array_marlincache_touchedTile
   121         = new StatLong("array.marlincache.touchedTile.int");
   123         = new StatLong("array.marlincache.touchedTile.int");
   122     final StatLong stat_array_renderer_alphaline
   124     final StatLong stat_array_renderer_alphaline
   131         = new StatLong("array.renderer.edgeBucketCounts.int");
   133         = new StatLong("array.renderer.edgeBucketCounts.int");
   132     final StatLong stat_array_renderer_edgePtrs
   134     final StatLong stat_array_renderer_edgePtrs
   133         = new StatLong("array.renderer.edgePtrs.int");
   135         = new StatLong("array.renderer.edgePtrs.int");
   134     final StatLong stat_array_renderer_aux_edgePtrs
   136     final StatLong stat_array_renderer_aux_edgePtrs
   135         = new StatLong("array.renderer.aux_edgePtrs.int");
   137         = new StatLong("array.renderer.aux_edgePtrs.int");
       
   138     final StatLong stat_array_str_polystack_curves
       
   139         = new StatLong("array.stroker.polystack.curves.d_float");
       
   140     final StatLong stat_array_str_polystack_types
       
   141         = new StatLong("array.stroker.polystack.curveTypes.d_byte");
       
   142     final StatLong stat_array_cpd_polystack_curves
       
   143         = new StatLong("array.closedPathDetector.polystack.curves.d_float");
       
   144     final StatLong stat_array_cpd_polystack_types
       
   145         = new StatLong("array.closedPathDetector.polystack.curveTypes.d_byte");
       
   146     final StatLong stat_array_pcf_idxstack_indices
       
   147         = new StatLong("array.pathClipFilter.stack.indices.d_int");
   136     // histograms
   148     // histograms
   137     final Histogram hist_rdr_edges_count
   149     final Histogram hist_rdr_edges_count
   138         = new Histogram("renderer.edges.count");
   150         = new Histogram("renderer.edges.count");
   139     final Histogram hist_rdr_poly_stack_curves
       
   140         = new Histogram("renderer.polystack.curves");
       
   141     final Histogram hist_rdr_crossings
   151     final Histogram hist_rdr_crossings
   142         = new Histogram("renderer.crossings");
   152         = new Histogram("renderer.crossings");
   143     final Histogram hist_rdr_crossings_ratio
   153     final Histogram hist_rdr_crossings_ratio
   144         = new Histogram("renderer.crossings.ratio");
   154         = new Histogram("renderer.crossings.ratio");
   145     final Histogram hist_rdr_crossings_adds
   155     final Histogram hist_rdr_crossings_adds
   146         = new Histogram("renderer.crossings.adds");
   156         = new Histogram("renderer.crossings.adds");
   147     final Histogram hist_rdr_crossings_msorts
   157     final Histogram hist_rdr_crossings_msorts
   148         = new Histogram("renderer.crossings.msorts");
   158         = new Histogram("renderer.crossings.msorts");
   149     final Histogram hist_rdr_crossings_msorts_adds
   159     final Histogram hist_rdr_crossings_msorts_adds
   150         = new Histogram("renderer.crossings.msorts.adds");
   160         = new Histogram("renderer.crossings.msorts.adds");
       
   161     final Histogram hist_str_polystack_curves
       
   162         = new Histogram("stroker.polystack.curves");
   151     final Histogram hist_tile_generator_alpha
   163     final Histogram hist_tile_generator_alpha
   152         = new Histogram("tile_generator.alpha");
   164         = new Histogram("tile_generator.alpha");
   153     final Histogram hist_tile_generator_encoding
   165     final Histogram hist_tile_generator_encoding
   154         = new Histogram("tile_generator.encoding");
   166         = new Histogram("tile_generator.encoding");
   155     final Histogram hist_tile_generator_encoding_dist
   167     final Histogram hist_tile_generator_encoding_dist
   156         = new Histogram("tile_generator.encoding.dist");
   168         = new Histogram("tile_generator.encoding.dist");
   157     final Histogram hist_tile_generator_encoding_ratio
   169     final Histogram hist_tile_generator_encoding_ratio
   158         = new Histogram("tile_generator.encoding.ratio");
   170         = new Histogram("tile_generator.encoding.ratio");
   159     final Histogram hist_tile_generator_encoding_runLen
   171     final Histogram hist_tile_generator_encoding_runLen
   160         = new Histogram("tile_generator.encoding.runLen");
   172         = new Histogram("tile_generator.encoding.runLen");
       
   173     final Histogram hist_cpd_polystack_curves
       
   174         = new Histogram("closedPathDetector.polystack.curves");
       
   175     final Histogram hist_pcf_idxstack_indices
       
   176         = new Histogram("pathClipFilter.stack.indices");
   161     // all stats
   177     // all stats
   162     final StatLong[] statistics = new StatLong[]{
   178     final StatLong[] statistics = new StatLong[]{
   163         stat_cache_rowAA,
   179         stat_cache_rowAA,
   164         stat_cache_rowAAChunk,
   180         stat_cache_rowAAChunk,
   165         stat_cache_tiles,
   181         stat_cache_tiles,
   166         stat_rdr_poly_stack_types,
       
   167         stat_rdr_poly_stack_curves,
       
   168         stat_rdr_addLine,
   182         stat_rdr_addLine,
   169         stat_rdr_addLine_skip,
   183         stat_rdr_addLine_skip,
   170         stat_rdr_curveBreak,
   184         stat_rdr_curveBreak,
   171         stat_rdr_curveBreak_dec,
   185         stat_rdr_curveBreak_dec,
   172         stat_rdr_curveBreak_inc,
   186         stat_rdr_curveBreak_inc,
   181         stat_rdr_activeEdges_adds_high,
   195         stat_rdr_activeEdges_adds_high,
   182         stat_rdr_crossings_updates,
   196         stat_rdr_crossings_updates,
   183         stat_rdr_crossings_sorts,
   197         stat_rdr_crossings_sorts,
   184         stat_rdr_crossings_bsearch,
   198         stat_rdr_crossings_bsearch,
   185         stat_rdr_crossings_msorts,
   199         stat_rdr_crossings_msorts,
       
   200         stat_str_polystack_types,
       
   201         stat_str_polystack_curves,
       
   202         stat_cpd_polystack_curves,
       
   203         stat_cpd_polystack_types,
       
   204         stat_pcf_idxstack_indices,
   186         hist_rdr_edges_count,
   205         hist_rdr_edges_count,
   187         hist_rdr_poly_stack_curves,
       
   188         hist_rdr_crossings,
   206         hist_rdr_crossings,
   189         hist_rdr_crossings_ratio,
   207         hist_rdr_crossings_ratio,
   190         hist_rdr_crossings_adds,
   208         hist_rdr_crossings_adds,
   191         hist_rdr_crossings_msorts,
   209         hist_rdr_crossings_msorts,
   192         hist_rdr_crossings_msorts_adds,
   210         hist_rdr_crossings_msorts_adds,
   193         hist_tile_generator_alpha,
   211         hist_tile_generator_alpha,
   194         hist_tile_generator_encoding,
   212         hist_tile_generator_encoding,
   195         hist_tile_generator_encoding_dist,
   213         hist_tile_generator_encoding_dist,
   196         hist_tile_generator_encoding_ratio,
   214         hist_tile_generator_encoding_ratio,
   197         hist_tile_generator_encoding_runLen,
   215         hist_tile_generator_encoding_runLen,
       
   216         hist_str_polystack_curves,
       
   217         hist_cpd_polystack_curves,
       
   218         hist_pcf_idxstack_indices,
   198         stat_array_dasher_dasher,
   219         stat_array_dasher_dasher,
   199         stat_array_dasher_firstSegmentsBuffer,
   220         stat_array_dasher_firstSegmentsBuffer,
   200         stat_array_stroker_polystack_curves,
       
   201         stat_array_stroker_polystack_curveTypes,
       
   202         stat_array_marlincache_rowAAChunk,
   221         stat_array_marlincache_rowAAChunk,
   203         stat_array_marlincache_touchedTile,
   222         stat_array_marlincache_touchedTile,
   204         stat_array_renderer_alphaline,
   223         stat_array_renderer_alphaline,
   205         stat_array_renderer_crossings,
   224         stat_array_renderer_crossings,
   206         stat_array_renderer_aux_crossings,
   225         stat_array_renderer_aux_crossings,
   207         stat_array_renderer_edgeBuckets,
   226         stat_array_renderer_edgeBuckets,
   208         stat_array_renderer_edgeBucketCounts,
   227         stat_array_renderer_edgeBucketCounts,
   209         stat_array_renderer_edgePtrs,
   228         stat_array_renderer_edgePtrs,
   210         stat_array_renderer_aux_edgePtrs
   229         stat_array_renderer_aux_edgePtrs,
       
   230         stat_array_str_polystack_curves,
       
   231         stat_array_str_polystack_types,
       
   232         stat_array_cpd_polystack_curves,
       
   233         stat_array_cpd_polystack_types,
       
   234         stat_array_pcf_idxstack_indices
   211     };
   235     };
   212     // monitors
   236     // monitors
   213     final Monitor mon_pre_getAATileGenerator
   237     final Monitor mon_pre_getAATileGenerator
   214         = new Monitor("MarlinRenderingEngine.getAATileGenerator()");
   238         = new Monitor("MarlinRenderingEngine.getAATileGenerator()");
   215     final Monitor mon_rdr_addLine
   239     final Monitor mon_rdr_addLine