comparison src/share/vm/services/heapDumper.hpp @ 615:c6c601a0f2d6

6797870: Add -XX:+{HeapDump,PrintClassHistogram}{Before,After}FullGC Summary: Call newly created CollectedHeap::dump_{pre,post}_full_gc before and after every stop-world full collection cycle on GenCollectedHeap and ParallelScavengeHeap. (Support for G1CollectedHeap forthcoming under CR 6810861.) Small modifications to existing heap dumping and class histogram implementation, especially to allow multiple on-the-fly histos/dumps by the VM thread during a single safepoint. Reviewed-by: jmasa, alanb, mchung
author ysr
date Mon, 02 Mar 2009 16:37:04 -0800
parents a61af66fc99e
children c18cbe5936b8
comparison
equal deleted inserted replaced
598:1fa16c3565be 615:c6c601a0f2d6
51 // internal timer. 51 // internal timer.
52 elapsedTimer* timer() { return &_t; } 52 elapsedTimer* timer() { return &_t; }
53 53
54 public: 54 public:
55 HeapDumper(bool gc_before_heap_dump) : 55 HeapDumper(bool gc_before_heap_dump) :
56 _gc_before_heap_dump(gc_before_heap_dump), _error(NULL), _print_to_tty(false) { } 56 _gc_before_heap_dump(gc_before_heap_dump), _error(NULL), _print_to_tty(false) { }
57 HeapDumper(bool gc_before_heap_dump, bool print_to_tty) : 57 HeapDumper(bool gc_before_heap_dump, bool print_to_tty) :
58 _gc_before_heap_dump(gc_before_heap_dump), _error(NULL), _print_to_tty(print_to_tty) { } 58 _gc_before_heap_dump(gc_before_heap_dump), _error(NULL), _print_to_tty(print_to_tty) { }
59 59
60 ~HeapDumper(); 60 ~HeapDumper();
61 61