| Package | Description |
|---|---|
| net.obvj.performetrics |
Provides convenient classes for extracting performance metrics of Java code.
|
| net.obvj.performetrics.util.print |
Provides classes for printing stopwatch data.
|
| Modifier and Type | Method and Description |
|---|---|
static Stopwatch |
Stopwatch.createStarted()
Provides a started stopwatch with default counter types, for convenience.
|
static Stopwatch |
Stopwatch.createStarted(Counter.Type... types)
Provides a started stopwatch with specific counter types, for convenience.
|
| 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)
Prints detailed information about timing sessions from the given stopwatch in the
specified print stream.
|
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)
Prints summarized elapsed times from the given stopwatch in the specified print stream.
|
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)
Returns a string containing a formatted summary from the given stopwatch.
|
static String |
PrintUtils.summaryToString(Stopwatch stopwatch,
PrintStyle printStyle)
Returns a string containing a formatted summary from the given stopwatch, with a custom
PrintStyle. |
Copyright © 2021. All rights reserved.