Package org.eclipse.mat.jruby.resolver
Class RubyStacktraceDumper
- java.lang.Object
-
- org.eclipse.mat.jruby.resolver.RubyStacktraceDumper
-
- All Implemented Interfaces:
IRequestDetailsResolver
public class RubyStacktraceDumper extends Object implements IRequestDetailsResolver
Utilities for extracting Ruby stack traces from Java processes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RubyStacktraceDumper.FrameModel
-
Field Summary
Fields Modifier and Type Field Description static String
RUBY_RUNNABLE_CLASS
static String
THREAD_CONTEXT_CLASS
-
Constructor Summary
Constructors Constructor Description RubyStacktraceDumper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
complement(ISnapshot snapshot, IThreadInfo thread, int[] javaLocals, int thisJavaLocal, IProgressListener listener)
Add extra detailsMap<String,RubyStacktraceDumper.FrameModel[]>
getAllStackTraces(ISnapshot model)
Extracts the Ruby stack trace for all active Ruby threads in the given heap dump.
-
-
-
Field Detail
-
RUBY_RUNNABLE_CLASS
public static final String RUBY_RUNNABLE_CLASS
- See Also:
- Constant Field Values
-
THREAD_CONTEXT_CLASS
public static final String THREAD_CONTEXT_CLASS
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
-