Profiler profiler = cpu.getProfiler();
if (profiler == null) {
context.err.println("No profiler found.");
return 1;
}
profiler.printStackTrace(context.out);
return 0;
}
});
ch.registerCommand("stackprof", new BasicCommand("Start stack profiler", "") {