Package org.eclipse.mat.jruby.resolver
Class RubyStacktraceDumper
java.lang.Object
org.eclipse.mat.jruby.resolver.RubyStacktraceDumper
- All Implemented Interfaces:
IRequestDetailsResolver
Utilities for extracting Ruby stack traces from Java processes.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
complement
(ISnapshot snapshot, IThreadInfo thread, int[] javaLocals, int thisJavaLocal, IProgressListener listener) Add extra detailsgetAllStackTraces
(ISnapshot model) Extracts the Ruby stack trace for all active Ruby threads in the given heap dump.
-
Field Details
-
RUBY_RUNNABLE_CLASS
- See Also:
-
THREAD_CONTEXT_CLASS
- See Also:
-
-
Constructor Details
-
RubyStacktraceDumper
public RubyStacktraceDumper()
-
-
Method Details
-
complement
public void complement(ISnapshot snapshot, IThreadInfo thread, int[] javaLocals, int thisJavaLocal, IProgressListener listener) throws SnapshotException Description copied from interface:IRequestDetailsResolver
Add extra details- Specified by:
complement
in interfaceIRequestDetailsResolver
- Parameters:
snapshot
- the whole dumpthread
- the thread processing the requestjavaLocals
- all the local variables, as idsthisJavaLocal
- this particular object, as an idlistener
- to show progress and log errors- Throws:
SnapshotException
-
getAllStackTraces
public Map<String,RubyStacktraceDumper.FrameModel[]> getAllStackTraces(ISnapshot model) throws SnapshotException Extracts the Ruby stack trace for all active Ruby threads in the given heap dump.- Throws:
SnapshotException
-