Top Fields Constructors Methods
org.jruby.runtime.profile.builtin

public Class JsonProfilePrinter

extends ProfilePrinter
Class Inheritance
Imports
org.jruby.util.collections.IntHashMap, java.io.PrintStream, java.util.Iterator, .Locale

Field Summary

Modifier and TypeField and Description
private static final Locale
Inherited from org.jruby.runtime.profile.builtin.ProfilePrinter:
PROFILER_PROFILE_METHODPROFILER_PROFILED_CODE_METHOD

Constructor Summary

AccessConstructor and Description
public
pack-priv
JsonProfilePrinter(ProfileData profileData, Invocation topInvocation)

Method Summary

Modifier and TypeMethod and Description
private String
callToJson(int serial, int calls, InvocationSet invocations)

private String
private String
private static String
private String
public void
public void
public void
private static String
private static String
quote(int num)

private static String
toJsonArray(String... values)

private static String
toJsonObject(String... keysAndValues)

Inherited from org.jruby.runtime.profile.builtin.ProfilePrinter:
getProfileDatagetThreadNamegetTopInvocationisProfilerInvocationisThisProfilerInvocationmethodDatamethodNamemethodNamenanoStringnewPrinternewPrinterpadpadprintProfileprintProfile

Field Detail

JSON_LOCALEback to summary
private static final Locale JSON_LOCALE

Constructor Detail

JsonProfilePrinterback to summary
public JsonProfilePrinter(ProfileData profileData)
JsonProfilePrinterback to summary
pack-priv JsonProfilePrinter(ProfileData profileData, Invocation topInvocation)

Method Detail

callToJsonback to summary
private String callToJson(int serial, int calls, InvocationSet invocations)
childCallsToJsonback to summary
private String childCallsToJson(MethodData method)
methodToJsonback to summary
private String methodToJson(MethodData method)
nanosToSecondsStringback to summary
private static String nanosToSecondsString(long nanos)
parentCallsToJsonback to summary
private String parentCallsToJson(MethodData method)
printFooterback to summary
public void printFooter(PrintStream out)

Overrides org.jruby.runtime.profile.builtin.ProfilePrinter.printFooter.

printHeaderback to summary
public void printHeader(PrintStream out)

Overrides org.jruby.runtime.profile.builtin.ProfilePrinter.printHeader.

printProfileback to summary
public void printProfile(PrintStream out, boolean first)

Implements abstract org.jruby.runtime.profile.builtin.ProfilePrinter.printProfile.

quoteback to summary
private static String quote(String str)
quoteback to summary
private static String quote(int num)
toJsonArrayback to summary
private static String toJsonArray(String... values)
toJsonObjectback to summary
private static String toJsonObject(String... keysAndValues)