1 /*******************************************************************************
2 * Copyright (c) 2012 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 * Alexandre Montplaisir - Initial API
11 ******************************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.core
.statistics
;
17 import org
.eclipse
.linuxtools
.tmf
.core
.event
.ITmfTimestamp
;
20 * Provider for statistics, which is assigned to a trace. This can be used to
21 * populate views like the Statistics View or the Histogram.
23 * @author Alexandre Montplaisir
26 public interface ITmfStatistics
{
29 * Return the total number of events in the trace.
31 * @return The total number of events
33 public long getEventsTotal();
36 * Return a Map of the total events in the trace, per event type. The event
37 * type should come from ITmfEvent.getType().getName().
39 * @return The map of <event_type, count>, for the whole trace
41 public Map
<String
, Long
> getEventTypesTotal();
44 * Retrieve the number of events in the trace in a given time interval.
47 * Start time of the time range
49 * End time of the time range
50 * @return The number of events found
52 public long getEventsInRange(ITmfTimestamp start
, ITmfTimestamp end
);
55 * Retrieve the number of events in the trace, per event type, in a given
59 * Start time of the time range
61 * End time of the time range
62 * @return The map of <event_type, count>, for the given time range
64 public Map
<String
, Long
> getEventTypesInRange(ITmfTimestamp start
,
This page took 0.032569 seconds and 6 git commands to generate.