* Contributors:
* Yann N. Dauphin (dhaemon@gmail.com) - Implementation for stats
*******************************************************************************/
+
package org.eclipse.linuxtools.lttng.ui.views.statistics.evProcessor;
-import org.eclipse.linuxtools.lttng.event.LttngEvent;
-import org.eclipse.linuxtools.lttng.state.StateStrings;
-import org.eclipse.linuxtools.lttng.state.StateStrings.Events;
-import org.eclipse.linuxtools.lttng.state.evProcessor.ILttngEventProcessor;
-import org.eclipse.linuxtools.lttng.state.model.LttngTraceState;
+import org.eclipse.linuxtools.lttng.core.event.LttngEvent;
+import org.eclipse.linuxtools.lttng.core.state.StateStrings;
+import org.eclipse.linuxtools.lttng.core.state.StateStrings.Events;
+import org.eclipse.linuxtools.lttng.core.state.evProcessor.ILttngEventProcessor;
+import org.eclipse.linuxtools.lttng.core.state.model.LttngTraceState;
/**
* Process the system call entry event
final ILttngEventProcessor getAfterHandler() {
AbstractStatsEventHandler handler = new StatsModeChangeHandler(null) {
int sched_hash = StateStrings.Events.LTT_EVENT_SCHED_SCHEDULE.getInName().hashCode();
+ @Override
public boolean process(LttngEvent event, LttngTraceState traceState) {
// Step the event counter for any after event
stepCount(event, traceState);
return handler;
}
-
+ /**
+ * <h4>Get the trace end handler</h4>
+ * <p>Allow to do some calculations when the trace is finished.</p>
+ * @return The handler.
+ */
+ ILttngEventProcessor getTracesetEndHandler() {
+ return new StatsTracesetEndHandler();
+ }
+ /**
+ * <h4>Get the process exit handler</h4>
+ * <p> Handles: {@link org.eclipse.linuxtools.lttng.core.state.StateStrings.Events#LTT_EVENT_PROCESS_EXIT}.</p>
+ * @return The handler.
+ */
+ ILttngEventProcessor getProcessExitHandler() {
+ return new StatsProcessExitHandler();
+ }
}