}
private void openStackFrame() {
if (jw == null) {
jw = openFrame("Stack Monitor");
StackMonitor sm = new StackMonitor(cpu);
DataSourceSampler dss = new DataSourceSampler(cpu);
TimeSeries ts = new TimeSeries("Max Stack", Millisecond.class);
ts.setMaximumItemCount(200);
addTimeSeries(ts);
dss.addDataSource(sm.getMaxSource(), ts);
ts = new TimeSeries("Stack", Millisecond.class);
ts.setMaximumItemCount(200);
addTimeSeries(ts);
dss.addDataSource(sm.getSource(), ts);
}
}