default:
throw H2O.fail("Bad version for Frames schema: " + version);
}
}
public ProfilerBase fetch(int version, Profiler p) {
JProfile profile = new JProfile(p._depth).execImpl(true);
int i=0;
p._stacktraces = new String[profile.nodes.length][];
p._counts = new int[profile.nodes.length][];
for (JProfile.ProfileSummary s : profile.nodes) {
p._stacktraces[i] = s.profile.stacktraces;