| 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 detailed stopwatch
formatter. |
static void |
Performetrics.setDefaultPrintStyleForSummary(PrintStyle printStyle)
Defines the default
PrintStyle to be applied by the summarized stopwatch
formatter. |
| Modifier and Type | Method and Description |
|---|---|
PrintStyle |
Configuration.getPrintStyleForDetails()
Returns the default
PrintStyle for the detailed stopwatch formatter. |
PrintStyle |
Configuration.getPrintStyleForSummary()
Returns the default
PrintStyle for the summarized stopwatch formatter. |
| Modifier and Type | Method and Description |
|---|---|
void |
Configuration.setPrintStyleForDetails(PrintStyle printStyle)
Defines the default
PrintStyle for the detailed stopwatch formatter. |
void |
Configuration.setPrintStyleForSummary(PrintStyle printStyle)
Defines the default
PrintStyle for the summarized stopwatch formatter. |
| 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_CSV
A string-based style for the detailed stopwatch formatter, which prints data
as CSV (comma-separated values).
|
static PrintStyle |
PrintStyle.DETAILED_CSV_ISO_8601
A string-based style for the detailed stopwatch formatter, which prints data as
CSV (comma-separated values), with elapsed times expressed using the ISO-8601 duration
format.
|
static PrintStyle |
PrintStyle.DETAILED_CSV_ISO_8601_NO_HEADER
A string-based style for the detailed stopwatch formatter, which prints data as
CSV (comma-separated values), with elapsed times expressed using the ISO-8601 duration
format and no header.
|
static PrintStyle |
PrintStyle.DETAILED_CSV_NO_HEADER
A string-based style for the detailed stopwatch formatter, which prints data
as CSV (comma-separated values), without header.
|
static PrintStyle |
PrintStyle.DETAILED_TABLE_FULL
A string-based style for the detailed stopwatch formatter, with horizontal lines
separating each row, and total elapsed time for each counter.
|
static PrintStyle |
PrintStyle.DETAILED_XML
A string-based style for the detailed stopwatch formatter, which prints data in
XML format.
|
static PrintStyle |
PrintStyle.DETAILED_XML_ISO_8601
A string-based style for the detailed stopwatch formatter, which prints data as
XML with elapsed times expressed using the ISO-8601 duration format.
|
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_ISO_8601
A string-based style for the summarized stopwatch formatter, which prints data
as CSV (comma-separated values), with elapsed times expressed using the ISO-8601
duration format.
|
static PrintStyle |
PrintStyle.SUMMARIZED_CSV_ISO_8601_NO_HEADER
A string-based style for the summarized stopwatch formatter, which prints data
as CSV (comma-separated values), with elapsed times expressed using the ISO-8601
duration format and no header.
|
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.
|
static PrintStyle |
PrintStyle.SUMMARIZED_XML
A string-based style for the summarized stopwatch formatter, which prints data
in XML format.
|
static PrintStyle |
PrintStyle.SUMMARIZED_XML_ISO_8601
A string-based style for the summarized stopwatch formatter, which prints data
as XML with elapsed times expressed using the ISO-8601 duration format.
|
| Modifier and Type | Method and Description |
|---|---|
PrintStyle |
PrintStyleBuilder.build()
Builds the PrintStyle.
|
| Modifier and Type | Method and Description |
|---|---|
static PrintStyleBuilder |
PrintStyle.builder(PrintStyle source)
Returns a PrintStyle builder with the same attributes of an existing PrintStyle.
|
void |
PrintFormat.checkCompatibility(PrintStyle printStyle)
Checks if a given
PrintStyle is compatible with this PrintFormat. |
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. |
static String |
PrintUtils.summaryToString(Stopwatch stopwatch,
PrintStyle printStyle)
Returns a string containing a formatted summary from the given stopwatch, with a custom
PrintStyle. |
| Constructor and Description |
|---|
PrintStyleBuilder(PrintStyle source)
Creates a new PrintStyle builder with the same attributes of an existing PrintStyle.
|
Copyright © 2022. All rights reserved.