StatisticReport

enum StatisticReport : Enum<StatisticReport>

The statistic reports requested of the compiler:

  • L2Operations ~ The most time-intensive level-two operations

  • DynamicLookups ~ The most time-intensive dynamic method lookups.

  • Primitives ~ The primitives that are the most time-intensive to run overall.

  • PrimitiveReturnTypeChecks ~ The primitives that take the most time checking return types.

  • NonprimitiveReturnTypeChecks ~ Returns from non-primitives that had to check the return type.

Author

Leslie Schultz

Mark van Gulik

Parameters

title

The title of the statistic report.

Entries

Link copied to clipboard
ALLOCATIONS_BY_DESCRIPTOR_CLASS("Allocations by initial descriptor", BYTES)

The estimated number of bytes allocated for descriptors with the given class name.

Link copied to clipboard
DESERIALIZE("Deserialization", NANOSECONDS)

Time spent deserializing, by SerializerOperation.

Link copied to clipboard
SERIALIZE_WRITE("Serialization writing", NANOSECONDS)

Time spent serializing, by SerializerOperation.

Link copied to clipboard
SERIALIZE_TRACE("Serialization tracing", NANOSECONDS)

Time spent serializing, by SerializerOperation.

Link copied to clipboard
WORKBENCH_TRANSCRIPT("Workbench transcript", NANOSECONDS)

Time spent updating text in workbench transcript.

Link copied to clipboard
TOP_LEVEL_STATEMENTS("Top Level Statements By Module (CPU time)", NANOSECONDS)

Outermost statements of modules that are loaded.

Link copied to clipboard
NON_PRIMITIVE_RETURNEE_TYPE_CHECKS("Non-primitive Returnee Type Checks", NANOSECONDS)

Non-primitive Return Type Checks report, organized by the raw function being returned into. This collects contextual timings for non-primitive returns that had to check the type of the return result.

Link copied to clipboard
NON_PRIMITIVE_RETURNER_TYPE_CHECKS("Non-primitive Returner Type Checks", NANOSECONDS)

Non-primitive Return Type Checks report, organized by the returning raw function name. This collects contextual timings for non-primitive returns that had to check the type of the return result.

Link copied to clipboard
PRIMITIVE_RETURNER_TYPE_CHECKS("Primitive Return Type Checks", NANOSECONDS)

The Primitive Return Type Checks report.

Link copied to clipboard
DYNAMIC_LOOKUP("Dynamic Lookup", NANOSECONDS)

A report of how long and deep dynamic lookups are.

Link copied to clipboard
PRIMITIVES("Primitives", NANOSECONDS)

The Primitives report.

Link copied to clipboard
REIFICATIONS("Java stack reifications", NANOSECONDS)

Reifications of the Java stack. See StackReifier.

Link copied to clipboard
FINAL_JVM_TRANSLATION_TIME("Final JVM Translation time", NANOSECONDS)

A breakdown of final generation phases of L2->JVM.

Link copied to clipboard
L2_TRANSLATION_VALUES("L2 Translation values", DIMENSIONLESS_INTEGRAL)

Dimensionless values related to L2Chunk creation.

Link copied to clipboard
L1_NAIVE_TRANSLATION_TIME("L1 -> L2 Naive translation by nybblecode", NANOSECONDS)

A breakdown of the time spent in L2 optimization phases.

Link copied to clipboard
L2_OPTIMIZATION_TIME("L2 Translation time", NANOSECONDS)

A breakdown of the time spent in L2 optimization phases.

Link copied to clipboard
EXPANDING_PARSING_INSTRUCTIONS("Expanding Parsing Operations", NANOSECONDS)

Statistics for expanding ParsingOperations.

Link copied to clipboard
TYPE_CHECKING_FOR_PARSER("Parser Type Check", NANOSECONDS)

Statistics for type checking while parsing.

Link copied to clipboard
RUNNING_PARSING_INSTRUCTIONS("Running Parsing Operations", NANOSECONDS)

Statistics for executing parsing instructions.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun clear()

Clear all my Statistics.

Link copied to clipboard
fun registerStatistic(statistic: Statistic): Boolean

Register a Statistic with this StatisticReport. This happens when the statistic is first created, as part of its constructor. Access to the List of statistics is synchronized on the list, to ensure atomic access among registrations and between registrations and enumeration of the list.

Link copied to clipboard
fun sortedPairs(): MutableList<Pair<String, PerInterpreterStatistic>>

Collect the aggregates of my statistics, filter out the ones with zero counts, then sort descending by their sums. Maintain names with the aggregated statistics as Pairs.

Properties

Link copied to clipboard
val name: String
Link copied to clipboard
val ordinal: Int
Link copied to clipboard
val title: String

The title of the StatisticReport.

Link copied to clipboard
val unit: ReportingUnit

The units which the contained reports use.