- try (BtfTrace trace = new BtfTrace()) {
- trace.initTrace(null, BtfTestTrace.BTF_TEST.getFullPath(), null);
- System.out.println(trace.toString());
- ITmfContext ctx = trace.seekEvent(0);
- ITmfContext ctx1 = trace.seekEvent(10);
- ITmfEvent event = trace.getNext(ctx);
- ITmfEvent compare = null;
- while (event != null) {
- if (event.getRank() == 10) {
- compare = event;
- }
- printEvent(event);
- event = trace.getNext(ctx);
+ BtfTrace trace = new BtfTrace();
+ trace.initTrace(null, BtfTestTrace.BTF_TEST.getFullPath(), null);
+ System.out.println(trace.toString());
+
+ ITmfContext ctx = trace.seekEvent(0);
+ ITmfContext ctx1 = trace.seekEvent(10);
+ ITmfEvent event = trace.getNext(ctx);
+ ITmfEvent compare = null;
+ while (event != null) {
+ if (event.getRank() == 10) {
+ compare = event;