1 /*******************************************************************************
2 * Copyright (c) 2009 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 * Yann N. Dauphin (dhaemon@gmail.com) - Implementation for stats
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.lttng
.ui
.views
.statistics
.evProcessor
;
15 import org
.eclipse
.linuxtools
.lttng
.event
.LttngEvent
;
16 import org
.eclipse
.linuxtools
.lttng
.state
.StateStrings
.Events
;
17 import org
.eclipse
.linuxtools
.lttng
.state
.model
.LttngTraceState
;
18 import org
.eclipse
.linuxtools
.lttng
.ui
.views
.statistics
.model
.StatisticsData
;
20 class StatsModeEndHandler
extends AbstractStatsEventHandler
{
22 public StatsModeEndHandler(Events eventType
) {
27 * @see org.eclipse.linuxtools.lttng.state.evProcessor.IEventProcessing#process(org.eclipse.linuxtools.lttng.event.LttngEvent, org.eclipse.linuxtools.lttng.state.model.LttngTraceState)
30 public boolean process(LttngEvent event
, LttngTraceState traceState
) {
31 StatisticsData tree
= getStatisticsTree(traceState
);
32 tree
.increase(event
, traceState
, StatisticsData
.Values
.CPU_TIME
| StatisticsData
.Values
.ELAPSED_TIME
| StatisticsData
.Values
.CUMULATIVE_CPU_TIME
);