gnu.gcj.util

Class GCInfo


public class GCInfo
extends Object

Method Summary

static void
dump(String name)
Dump a description of the heap state.
static void
enumerate(String namePrefix)
Create a heap dump.
static void
setOOMDump(String namePrefix)
Cause a heap dump if out-of-memory condition occurs.

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Details

dump

public static void dump(String name)
Dump a description of the heap state.
Parameters:
Throws:
SecurityException - if there is a SecurityManager installed and UtilPermission("dumpHeap") is not granted.

enumerate

public static void enumerate(String namePrefix)
Create a heap dump.
Parameters:
namePrefix - The filename prefix for the dump files.
Throws:
SecurityException - if there is a SecurityManager installed and UtilPermission("dumpHeap") is not granted.

setOOMDump

public static void setOOMDump(String namePrefix)
Cause a heap dump if out-of-memory condition occurs.
Parameters:
namePrefix - The filename prefix for the dump files. If null no dumps are created.
Throws:
SecurityException - if there is a SecurityManager installed and UtilPermission("dumpHeap") is not granted.

GCInfo.java -- Support for creating heap dumps. Copyright (C) 2007 Free Software Foundation This file is part of libgcj. This software is copyrighted work licensed under the terms of the Libgcj License. Please consult the file "LIBGCJ_LICENSE" for details.