Re-structure LTTng sub-project as per the Linux Tools guidelines
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.ui / src / org / eclipse / linuxtools / lttng / ui / views / statistics / evProcessor / StatsTimeCountHandlers.java
index 2fb581e2e37ec0288eb5f66e1c8d2125573bb41f..109c8f7e31590f9e2b4a4de1f9f198e661f899cd 100644 (file)
@@ -9,13 +9,14 @@
  * 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
@@ -157,6 +158,7 @@ class StatsTimeCountHandlers {
        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);
@@ -174,5 +176,20 @@ class StatsTimeCountHandlers {
 
                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();
+       }
 }
This page took 0.024888 seconds and 5 git commands to generate.