public abstract class ProfilePrinter extends Object
Modifier | Constructor and Description |
---|---|
protected |
ProfilePrinter(ProfileData profileData) |
protected |
ProfilePrinter(ProfileData profileData,
Invocation topInvocation) |
Modifier and Type | Method and Description |
---|---|
ProfileData |
getProfileData() |
String |
getThreadName() |
protected Invocation |
getTopInvocation() |
protected static IntHashMap<org.jruby.runtime.profile.MethodData> |
methodData(Invocation top) |
String |
methodName(int serial) |
protected static String |
nanoString(long nanoTime) |
static ProfilePrinter |
newPrinter(RubyInstanceConfig.ProfilingMode mode,
ProfileData profileData)
Printer implementation factory for supported profiling modes.
|
protected static void |
pad(PrintStream out,
int size,
String body) |
protected static void |
pad(PrintStream out,
int size,
String body,
boolean front) |
void |
printFooter(PrintStream out) |
void |
printHeader(PrintStream out) |
void |
printProfile(PrintStream out) |
abstract void |
printProfile(PrintStream out,
boolean first) |
void |
printProfile(RubyIO out) |
protected ProfilePrinter(ProfileData profileData)
protected ProfilePrinter(ProfileData profileData, Invocation topInvocation)
public static ProfilePrinter newPrinter(RubyInstanceConfig.ProfilingMode mode, ProfileData profileData)
mode
- the profiling modeprofileData
- runtime
- Ruby.printProfileData(org.jruby.runtime.profile.ProfileData)
public ProfileData getProfileData()
protected Invocation getTopInvocation()
public void printHeader(PrintStream out)
public void printFooter(PrintStream out)
public void printProfile(PrintStream out)
public abstract void printProfile(PrintStream out, boolean first)
public void printProfile(RubyIO out)
public String getThreadName()
public String methodName(int serial)
protected static IntHashMap<org.jruby.runtime.profile.MethodData> methodData(Invocation top)
protected static void pad(PrintStream out, int size, String body)
protected static void pad(PrintStream out, int size, String body, boolean front)
protected static String nanoString(long nanoTime)
Copyright © 2001-2014 JRuby. All Rights Reserved.