< prev index next >
src/hotspot/share/services/heapDumper.hpp
Print this page
rev 58893 : 8237354: Add option to jcmd to write a gzipped heap dump
Reviewed-by:
*** 1,7 ****
/*
! * Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2005, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 53,63 ****
HeapDumper(bool gc_before_heap_dump, bool oome) :
_error(NULL), _gc_before_heap_dump(gc_before_heap_dump), _oome(oome) { }
// string representation of error
char* error() const { return _error; }
! void set_error(char* error);
// internal timer.
elapsedTimer* timer() { return &_t; }
static void dump_heap(bool oome);
--- 53,63 ----
HeapDumper(bool gc_before_heap_dump, bool oome) :
_error(NULL), _gc_before_heap_dump(gc_before_heap_dump), _oome(oome) { }
// string representation of error
char* error() const { return _error; }
! void set_error(char const* error);
// internal timer.
elapsedTimer* timer() { return &_t; }
static void dump_heap(bool oome);
*** 68,78 ****
~HeapDumper();
// dumps the heap to the specified file, returns 0 if success.
// additional info is written to out if not NULL.
! int dump(const char* path, outputStream* out = NULL);
// returns error message (resource allocated), or NULL if no error
char* error_as_C_string() const;
static void dump_heap() NOT_SERVICES_RETURN;
--- 68,79 ----
~HeapDumper();
// dumps the heap to the specified file, returns 0 if success.
// additional info is written to out if not NULL.
! // compression >= 0 creates a gzipped file with the given compression level.
! int dump(const char* path, outputStream* out = NULL, int compression = -1);
// returns error message (resource allocated), or NULL if no error
char* error_as_C_string() const;
static void dump_heap() NOT_SERVICES_RETURN;
< prev index next >