public class Utils extends Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static void |
dumpHeap(String fileName,
boolean live)
Dumps process heap.
|
static void |
dumpHeapToTmp(String... args)
Dumps process heap to a file in temp directoty.
|
static String |
toStringBinary(byte[] b,
int off,
int len)
Outputs some bytes as hex w/printable characters prints.
|
public static void dumpHeapToTmp(String... args)
args
- Strings to use to build a file name (dump_arg0_arg1_....).public static void dumpHeap(String fileName, boolean live)
fileName
- File name to use.live
- Whether to only dump live objects.public static String toStringBinary(byte[] b, int off, int len)
b
- Bytes.off
- Offset.len
- Length.Copyright © 2016 The Apache Software Foundation. All rights reserved.