mirror of
https://github.com/corda/corda.git
synced 2025-01-08 14:03:06 +00:00
6a5116e7a7
The proper way to do this is to implement a subset of JVMTI, but this will do the job for now.
12 lines
278 B
Java
12 lines
278 B
Java
public class Hello {
|
|
public static void main(String[] args) {
|
|
System.out.println("hello, world!");
|
|
try {
|
|
Runtime.class.getMethod("dumpHeap", String.class)
|
|
.invoke(null, "/tmp/heap.bin");
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
}
|