org.jruby.runtime.profile.ProfilingService will be used for all profiling methods
which are shipped with jruby.
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ProfiledMethods |
| Access | Constructor and Description |
|---|---|
| public |
| profiledMethods | back to summary |
|---|---|
| private final ProfiledMethods profiledMethods | |
| BuiltinProfilingService | back to summary |
|---|---|
| public BuiltinProfilingService(Ruby runtime) | |
| addProfiledMethod | back to summary |
|---|---|
| public void addProfiledMethod(String id, DynamicMethod method) Implements org. Doc from org. Add a named method to the profiling service to be monitored.
| |
| newMethodEnhancer | back to summary |
|---|---|
| public BuiltinProfilingService. Implements org.
| |
| newProfileCollection | back to summary |
|---|---|
| public ProfileData newProfileCollection(ThreadContext context) Implements org.
| |
| newProfileReporter | back to summary |
|---|---|
| public BuiltinProfilingService. Implements org.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public DynamicMethod | enhance(String
the name of the given delegate id, DynamicMethod the method to enhance delegate)Implements org. Will be called with a method which should be enhanced. |
| DefaultMethodEnhancer | back to summary |
|---|---|
| private DefaultMethodEnhancer() | |
| enhance | back to summary |
|---|---|
| public DynamicMethod enhance(String id, DynamicMethod delegate) Implements org. Doc from org. Will be called with a method which should be enhanced. e.g. with information or callback invocations required by the profiling. In most cases you don't want to profile all methods, just the methods of your own code. So you can add a simple filter here
if( isMyCode( delegate ) ) {
return new ProfilingDynamicMethod( delegate );
} else {
return delegate;
}
| |
| Modifier and Type | Field and Description |
|---|---|
| private final ThreadContext |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private RubyInstanceConfig | |
| private Ruby | |
| public void | report(ProfileCollection
the profile information to report. print to file, system out, send ot a profile server, ... collector)Implements org. At the end of each |
| context | back to summary |
|---|---|
| private final ThreadContext context | |
| DefaultProfileReporter | back to summary |
|---|---|
| public DefaultProfileReporter(ThreadContext context) | |
| getConfig | back to summary |
|---|---|
| private RubyInstanceConfig getConfig() | |
| getRuntime | back to summary |
|---|---|
| private Ruby getRuntime() | |
| report | back to summary |
|---|---|
| public void report(ProfileCollection collector) Implements org. Doc from org. At the end of each
| |