-
-
- //lttv_process_traceset_seek_time(tsc, start);
- //lttv_traceset_context_add_hooks(
- //lttv_process_traceset
- //lttv_traceset_context_remove_hooks
+ EventRequest event_request; // Variable freed at the end of the function.
+ event_request.Control_Flow_Data = control_flow_data;
+ event_request.time_begin = start;
+ event_request.time_end = end;
+
+ LttvHooks *event = lttv_hooks_new();
+ lttv_hooks_add(event, draw_event_hook, &event_request);
+
+ lttv_process_traceset_seek_time(tsc, start);
+ lttv_traceset_context_add_hooks(tsc,
+ NULL, NULL, NULL, NULL, NULL, NULL,
+ NULL, NULL, NULL, event, NULL);
+ lttv_process_traceset(tsc, end, G_MAXULONG);
+ lttv_traceset_context_remove_hooks(tsc, NULL, NULL, NULL, NULL, NULL, NULL,
+ NULL, NULL, NULL, event, NULL);
+
+ lttv_hooks_destroy(event);