| Package | Description |
|---|---|
| net.obvj.performetrics |
Provides convenient classes for extracting performance metrics of Java code.
|
| net.obvj.performetrics.config |
Provides classes to handle common configuration parameters used by Performetrics.
|
| net.obvj.performetrics.monitors |
Provides classes that can monitor other ones.
|
| net.obvj.performetrics.util.print |
Provides classes for printing stopwatch data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Stopwatch.printDetails(PrintStream printStream,
PrintStyle printStyle)
Prints detailed information about timing sessions in the specified print stream, with a
custom
PrintStyle. |
void |
Stopwatch.printSummary(PrintStream printStream,
PrintStyle printStyle)
Prints summarized elapsed times in the specified print stream, with a custom
PrintStyle. |
static void |
Performetrics.setDefaultPrintStyleForDetails(PrintStyle printStyle)
Defines the default
PrintStyle to be applied by the following operations:
Stopwatch.printDetails(java.io.PrintStream)
MonitoredOperation.printDetails(java.io.PrintStream)
|
static void |
Performetrics.setDefaultPrintStyleForSummary(PrintStyle printStyle)
Defines the default
PrintStyle to be applied by the following operations:
Stopwatch.printSummary(java.io.PrintStream)
MonitoredOperation.printSummary(java.io.PrintStream)
|
| Modifier and Type | Method and Description |
|---|---|
PrintStyle |
Configuration.getPrintStyleForDetails()
Returns the default
PrintStyle to be applied by the following operations:
Stopwatch.printDetails(java.io.PrintStream)
MonitoredOperation.printDetails(java.io.PrintStream)
|
PrintStyle |
Configuration.getPrintStyleForSummary()
Returns the default
PrintStyle to be applied by the following operations:
Stopwatch.printSummary(java.io.PrintStream)
MonitoredOperation.printSummary(java.io.PrintStream)
|
| Modifier and Type | Method and Description |
|---|---|
void |
Configuration.setPrintStyleForDetails(PrintStyle printStyle)
Defines the default
PrintStyle to be applied by the following operations:
Stopwatch.printDetails(java.io.PrintStream)
MonitoredOperation.printDetails(java.io.PrintStream)
|
void |
Configuration.setPrintStyleForSummary(PrintStyle printStyle)
Defines the default
PrintStyle to be applied by the following operations:
Stopwatch.printSummary(java.io.PrintStream)
MonitoredOperation.printSummary(java.io.PrintStream)
|
| Modifier and Type | Method and Description |
|---|---|
void |
MonitoredOperation.printDetails(PrintStream printStream,
PrintStyle printStyle)
Prints detailed information about timing sessions in the specified print stream, with a
custom
PrintStyle. |
void |
MonitoredOperation.printSummary(PrintStream printStream,
PrintStyle printStyle)
Prints summarized elapsed times in the specified print stream, with a custom
PrintStyle. |
| Modifier and Type | Field and Description |
|---|---|
static PrintStyle |
PrintStyle.DETAILED_TABLE_FULL
A string-based style for use with the detailed stopwatch formatter, with horizontal
lines separating each row, and total elapsed time for each counter.
|
static PrintStyle |
PrintStyle.SUMMARIZED_CSV
A string-based style for the summarized stopwatch formatter, which prints data
as CSV (comma-separated values).
|
static PrintStyle |
PrintStyle.SUMMARIZED_CSV_NO_HEADER
A string-based style for the summarized stopwatch formatter, which prints data
as CSV (comma-separated values), without header.
|
static PrintStyle |
PrintStyle.SUMMARIZED_TABLE_FULL
A string-based style for the summarized stopwatch formatter, which prints data
in tabular format, with horizontal lines separating each row.
|
static PrintStyle |
PrintStyle.SUMMARIZED_TABLE_NO_HEADER
A string-based style for the summarized stopwatch formatter, which prints data
in tabular format without header.
|
| Modifier and Type | Method and Description |
|---|---|
PrintStyle |
PrintStyleBuilder.build()
Builds the PrintStyle.
|
| Modifier and Type | Method and Description |
|---|---|
abstract String |
PrintFormat.format(Stopwatch stopwatch,
PrintStyle style)
Generates a string with formatted stopwatch data and custom style.
|
static void |
PrintUtils.printDetails(Stopwatch stopwatch,
PrintStream printStream,
PrintStyle printStyle)
Prints detailed information about timing sessions from the given stopwatch in the
specified print stream, with a custom
PrintStyle. |
static void |
PrintUtils.printSummary(Stopwatch stopwatch,
PrintStream printStream,
PrintStyle printStyle)
Prints summarized elapsed times from the given stopwatch in the specified print stream,
with a custom
PrintStyle. |
| Constructor and Description |
|---|
PrintStyleBuilder(PrintStyle baseStyle)
Creates a new PrintStyle builder with the same attributes of the specified base
PrintStyle.
|
Copyright © 2021. All rights reserved.