Class JsonProfilePrinter
java.lang.Object
org.jruby.runtime.profile.builtin.ProfilePrinter
org.jruby.runtime.profile.builtin.JsonProfilePrinter
-
Field Summary
FieldsFields inherited from class org.jruby.runtime.profile.builtin.ProfilePrinter
PROFILER_PROFILE_METHOD, PROFILER_PROFILED_CODE_METHOD -
Constructor Summary
ConstructorsConstructorDescriptionJsonProfilePrinter(ProfileData profileData) JsonProfilePrinter(ProfileData profileData, Invocation topInvocation) -
Method Summary
Modifier and TypeMethodDescriptionprivate StringcallToJson(int serial, int calls, InvocationSet invocations) private StringchildCallsToJson(MethodData method) private StringmethodToJson(MethodData method) private static StringnanosToSecondsString(long nanos) private StringparentCallsToJson(MethodData method) voidprintFooter(PrintStream out) voidprintHeader(PrintStream out) voidprintProfile(PrintStream out, boolean first) private static Stringquote(int num) private static Stringprivate static StringtoJsonArray(String... values) private static StringtoJsonObject(String... keysAndValues) Methods inherited from class org.jruby.runtime.profile.builtin.ProfilePrinter
getProfileData, getThreadName, getTopInvocation, isProfilerInvocation, isThisProfilerInvocation, methodData, methodName, methodName, nanoString, newPrinter, newPrinter, pad, pad, printProfile, printProfile
-
Field Details
-
JSON_LOCALE
-
-
Constructor Details
-
JsonProfilePrinter
-
JsonProfilePrinter
JsonProfilePrinter(ProfileData profileData, Invocation topInvocation)
-
-
Method Details
-
printHeader
- Overrides:
printHeaderin classProfilePrinter
-
printProfile
- Specified by:
printProfilein classProfilePrinter
-
methodToJson
-
parentCallsToJson
-
childCallsToJson
-
callToJson
-
nanosToSecondsString
-
quote
-
quote
-
toJsonArray
-
toJsonObject
-