1 /*******************************************************************************
2 * Copyright (c) 2010 Ericsson
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Francois Godin (copelnug@gmail.com) - Initial design and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.lttng
.ui
.views
.statistics
.evProcessor
;
15 import org
.eclipse
.linuxtools
.lttng
.core
.event
.LttngEvent
;
16 import org
.eclipse
.linuxtools
.lttng
.core
.state
.StateStrings
.Events
;
17 import org
.eclipse
.linuxtools
.lttng
.core
.state
.model
.LttngTraceState
;
18 import org
.eclipse
.linuxtools
.lttng
.ui
.views
.statistics
.model
.StatisticsData
;
21 * <h4>Handler for process exit event statistics</h4>
23 public class StatsProcessExitHandler
extends AbstractStatsEventHandler
{
25 * <h4>Constructor</h4>
27 * Define the LTT_EVENT_PROCESS_EXIT type.
30 public StatsProcessExitHandler() {
31 super(Events
.LTT_EVENT_PROCESS_EXIT
);
35 * @see org.eclipse.linuxtools.lttng.state.evProcessor.ILttngEventProcessor#process(org.eclipse.linuxtools.lttng.event.LttngEvent, org.eclipse.linuxtools.lttng.state.model.LttngTraceState)
38 public boolean process(LttngEvent event
, LttngTraceState traceState
) {
39 StatisticsData tree
= getStatisticsTree(traceState
);
40 tree
.process_exit(event
, traceState
);