Package org.openjdk.jmh.results.format
Class JSONResultFormat
java.lang.Object
org.openjdk.jmh.results.format.JSONResultFormat
- All Implemented Interfaces:
ResultFormat
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate String
emit
(double d) private String
emit
(double[] ds) private String
emitParams
(BenchmarkParams params) private String
emitPercentiles
(Statistics stats) private String
getRawData
(RunResult runResult, boolean histogram) private String
printMultiple
(Collection<String> elements, String leftBracket, String rightBracket) private static void
printStringArray
(PrintWriter pw, Collection<String> col) (package private) static String
(package private) static String
Escaping for a JSON string.void
writeOut
(Collection<RunResult> results)
-
Field Details
-
PRINT_RAW_DATA
private static final boolean PRINT_RAW_DATA -
out
-
-
Constructor Details
-
JSONResultFormat
-
-
Method Details
-
writeOut
- Specified by:
writeOut
in interfaceResultFormat
-
getRawData
-
emitParams
-
emitPercentiles
-
emit
-
emit
-
toJsonString
Escaping for a JSON string. Does the typical escaping of double quotes and backslash. Also escapes characters that are handled by the tidying process, so that every ASCII character makes it correctly into the JSON output. Control characters are filtered. -
tidy
-
printMultiple
-
printStringArray
-