tc = self->parent.traces[i];
tcs = (LttvTraceState *)tc;
tcs->save_interval = 100000;
- tcs->recompute_state_in_seek = false;
- tcs->saved_state_ready = false;
+ tcs->recompute_state_in_seek = TRUE;
+ tcs->saved_state_ready = FALSE;
fill_name_tables(tcs);
nb_control = ltt_trace_control_tracefile_number(tc->t);
/* restore the closest earlier saved state */
if(min_pos != -1) lttv_state_restore(tcs, closest_tree);
- /* there is no earlier saved state, restart at T0 */
- else {
- restore_init_state(tcs);
- lttv_process_trace_seek_time(&(tcs->parent), ltt_time_zero);
- }
-
+ }
/* There is no saved state yet we want to have it. Restart at T0 */
else {
restore_init_state(tcs);
lttv_process_trace_seek_time(&(tcs->parent), ltt_time_zero);
}
-
+ }
/* We want to seek quickly without restoring/updating the state */
else {
restore_init_state(tcs);
LttEvent *e;
e = tfc->e;
+ LttTime evtime = ltt_event_time(e);
+ TimeWindow *time_window =
+ guicontrolflow_get_time_window(control_flow_data);
+
+ LttTime end_time = ltt_time_add(time_window->start_time,
+ time_window->time_width);
+ //if(time < time_beg || time > time_end) return;
+ if(ltt_time_compare(evtime, time_window->start_time) == -1
+ || ltt_time_compare(evtime, end_time) == 1)
+ return;
+
if(strcmp(ltt_eventtype_name(ltt_event_eventtype(e)),"schedchange") == 0)
{
g_critical("schedchange!");
time,
width,
&x);
-
- assert(x <= width);
+ //assert(x <= width);
/* draw what represents the event for outgoing process. */
LttEvent *e;
e = tfc->e;
+ LttTime evtime = ltt_event_time(e);
+ TimeWindow *time_window =
+ guicontrolflow_get_time_window(control_flow_data);
+
+ LttTime end_time = ltt_time_add(time_window->start_time,
+ time_window->time_width);
+ //if(time < time_beg || time > time_end) return;
+ if(ltt_time_compare(evtime, time_window->start_time) == -1
+ || ltt_time_compare(evtime, end_time) == 1)
+ return;
+
+
if(strcmp(ltt_eventtype_name(ltt_event_eventtype(e)),"schedchange") == 0)
{
g_critical("schedchange!");