#include <lttv/lttv.h>
#include <lttv/tracecontext.h>
#include <lttvwindow/viewer.h>
+#include <lttv/state.h>
#include <lttv/hook.h>
#include "drawing.h"
lttv_hooks_add(after_traceset, after_data_request, &event_request);
lttv_hooks_add(event, draw_event_hook, &event_request);
//Modified by xiangxiu: state update hooks are added by the main window
- //state_add_event_hooks_api(control_flow_data->mw);
+ //lttv_state_add_event_hooks(tsc);
lttv_hooks_add(after_event, draw_after_hook, &event_request);
//lttv_process_traceset_seek_time(tsc, start);
// NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, event, after_event);
//Modified by xiangxiu: state update hooks are removed by the main window
- //state_remove_event_hooks_api(control_flow_data->mw);
+ //lttv_state_remove_event_hooks(tsc);
lttv_hooks_destroy(after_traceset);
lttv_hooks_destroy(event);
#include <ltt/facility.h>
#include <string.h>
-//#include "mw_api.h"
#include "gtktreeprivate.h"
#include "hGuiEventsInsert.xpm"
}
//add hooks for process_traceset
- // context_add_hooks_api(event_viewer_data->mw, NULL, NULL, NULL, NULL, NULL, NULL,
+ // lttv_traceset_context_add_hooks(tsc, NULL, NULL, NULL, NULL, NULL, NULL,
// NULL, NULL, NULL,event_viewer_data->before_event_hooks,NULL);
}
}
}
//remove hooks from context
- // context_remove_hooks_api(event_viewer_data->mw, NULL, NULL, NULL, NULL, NULL, NULL,
+ // lttv_traceset_context_remove_hooks(tsc, NULL, NULL, NULL, NULL, NULL, NULL,
// NULL, NULL, NULL,event_viewer_data->before_event_hooks,NULL);
}
int size;
LttvTracesetContext * tsc = get_traceset_context(event_viewer_data->mw);
- // context_add_hooks_api(event_viewer_data->mw, NULL, NULL, NULL, NULL, NULL, NULL,
- // NULL, NULL, NULL,event_viewer_data->before_event_hooks,NULL);
add_context_hooks(event_viewer_data,tsc);
- process_traceset_api(event_viewer_data->mw, start, end, max_num_events);
+ lttv_process_traceset_seek_time(tsc, start);
+ lttv_process_traceset(tsc, end, max_num_events);
remove_context_hooks(event_viewer_data,tsc);
- // context_remove_hooks_api(event_viewer_data->mw, NULL, NULL, NULL, NULL, NULL, NULL,
- // NULL, NULL, NULL,event_viewer_data->before_event_hooks,NULL);
size = event_viewer_data->raw_trace_data_queue_tmp->length;
*real_num_events = size;
StatisticViewerData* statistic_viewer_data = g_new(StatisticViewerData,1);
statistic_viewer_data->mw = parent_window;
- statistic_viewer_data->stats = get_traceset_stats_api(statistic_viewer_data->mw);
+ statistic_viewer_data->stats = get_traceset_stats(statistic_viewer_data->mw);
statistic_viewer_data->calculate_stats = statistic_insert_traceset_stats((void *)statistic_viewer_data->stats);
reg_update_time_window(statistic_update_time_window,statistic_viewer_data, statistic_viewer_data->mw);
}
}
- //add state and stats hooks
- //state_add_event_hooks_api(statistic_viewer_data->mw); //it will be added in the main window
- stats_add_event_hooks_api(statistic_viewer_data->mw);
+ lttv_stats_add_event_hooks(tsc);
}
}
}
- //remove state and stats hooks
- //state_remove_event_hooks_api(statistic_viewer_data->mw); //it will be done in the main window
- stats_remove_event_hooks_api(statistic_viewer_data->mw);
+ lttv_stats_remove_event_hooks(tsc);
}