ResourcesEntry entry = (ResourcesEntry) event.getEntry();
ITmfStateSystem ss = entry.getTrace().getStateSystem(CtfKernelTrace.STATE_ID);
long time = event.getTime();
- while (time < event.getTime() + event.getDuration()) {
- try {
+ try {
+ while (time < event.getTime() + event.getDuration()) {
int cpuQuark = entry.getQuark();
int currentThreadQuark = ss.getQuarkRelative(cpuQuark, Attributes.CURRENT_THREAD);
ITmfStateInterval tidInterval = ss.querySingleState(time, currentThreadQuark);
gc.drawLine(x, bounds.y + 1, x, bounds.y + bounds.height - 2);
}
}
- } catch (AttributeNotFoundException e) {
- e.printStackTrace();
- } catch (TimeRangeException e) {
- e.printStackTrace();
- } catch (StateValueTypeException e) {
- e.printStackTrace();
- } catch (StateSystemDisposedException e) {
- /* Ignored */
}
+ } catch (AttributeNotFoundException e) {
+ e.printStackTrace();
+ } catch (TimeRangeException e) {
+ e.printStackTrace();
+ } catch (StateValueTypeException e) {
+ e.printStackTrace();
+ } catch (StateSystemDisposedException e) {
+ /* Ignored */
}
}