|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.lib.profiler.heap.HeapFactory
public class HeapFactory
This is factory class for creating Heap
from the file in Hprof dump format.
Field Summary | |
---|---|
static long |
DEFAULT_BUFFER
|
Constructor Summary | |
---|---|
HeapFactory()
|
Method Summary | |
---|---|
static boolean |
canBeMemMapped(File heapDump)
|
static Heap |
createFastHeap(File heapDump)
Fast Heap implementation is optimized for batch processing of dump. |
static Heap |
createFastHeap(File heapDump,
long bufferSize)
Fast Heap implementation is optimized for batch processing of dump. |
static Heap |
createHeap(File heapDump)
this factory method creates Heap from a memory dump file in Hprof format. |
static Heap |
createHeap(File heapDump,
int segment)
this factory method creates Heap from a memory dump file in Hprof format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long DEFAULT_BUFFER
Constructor Detail |
---|
public HeapFactory()
Method Detail |
---|
public static Heap createHeap(File heapDump) throws FileNotFoundException, IOException
Heap
from a memory dump file in Hprof format.
heapDump
- file which contains memory dump
Heap
corresponding to the memory dump
passed in heapDump parameter
FileNotFoundException
- if heapDump file does not exist
IOException
- if I/O error occurred while accessing heapDump filepublic static Heap createFastHeap(File heapDump) throws FileNotFoundException, IOException
Heap
implementation is optimized for batch processing of dump.
Unlike normal Heap
it doesn't create/use any temporary files.
FileNotFoundException
IOException
public static Heap createFastHeap(File heapDump, long bufferSize) throws FileNotFoundException, IOException
Heap
implementation is optimized for batch processing of dump.
Unlike normal Heap
it doesn't create/use any temporary files.
bufferSize
- if file can be mapped to memory no buffer would be used, overwise limits memory used for buffering
FileNotFoundException
IOException
public static Heap createHeap(File heapDump, int segment) throws FileNotFoundException, IOException
Heap
from a memory dump file in Hprof format.
If the memory dump file contains more than one dump, parameter segment is used to
select particular dump.
segment
- select corresponding dump from multi-dump fileheapDump
- file which contains memory dump
Heap
corresponding to the memory dump
passed in heapDump parameter
FileNotFoundException
- if heapDump file does not exist
IOException
- if I/O error occurred while accessing heapDump filepublic static boolean canBeMemMapped(File heapDump)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |