(int pid, boolean orderByName, long minSize)
| 29 | private static HeapProcessor heapProcessor; |
| 30 | |
| 31 | public static void runHeapVisitor(int pid, boolean orderByName, long minSize) { |
| 32 | ObjectHeap heap = VM.getVM().getObjectHeap(); |
| 33 | heapProcessor = new HeapProcessor(orderByName, minSize); |
| 34 | |
| 35 | tty.println("Iterating over heap. This may take a while..."); |
| 36 | tty.println("Geting live regions..."); |
| 37 | |
| 38 | heap.iterate(heapProcessor.visitor); |
| 39 | |
| 40 | heapProcessor.printResult(); |
| 41 | heapProcessor = null; |
| 42 | } |
| 43 | |
| 44 | public static class HeapProcessor { |
| 45 | HeapHistogramVisitor visitor = new HeapHistogramVisitor(); |
no test coverage detected