ss: Add utility method to increment an attribute by a value
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core / src / org / eclipse / tracecompass / tmf / core / event / ITmfLostEvent.java
CommitLineData
534c96ce 1/*******************************************************************************
ed902a2b 2 * Copyright (c) 2012, 2014 Ericsson
534c96ce
FC
3 *
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
8 *
9 * Contributors:
10 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
12
2bdf0193 13package org.eclipse.tracecompass.tmf.core.event;
534c96ce 14
2bdf0193 15import org.eclipse.tracecompass.tmf.core.timestamp.TmfTimeRange;
3bd46eef 16
534c96ce
FC
17/**
18 * The generic lost event structure in TMF.
19 *
20 * In some demanding situations, tracers can be overwhelmed and have a hard time
21 * keeping up with the flow of events to record. Usually, even if a tracer can't
22 * keep up, it can at least record the number of events that it lost.
23 *
24 * This interface provides the different components (e.g. views) with a mean to
25 * identify and highlight such events.
26 *
27 * This interface extends ITmfEvent by adding the number of lost events for a
28 * 'problematic' time range.
29 *
30 * @see TmfLostEvent
31 *
32 * @author Francois Chouinard
534c96ce
FC
33 */
34public interface ITmfLostEvent extends ITmfEvent {
35
36 // ------------------------------------------------------------------------
37 // Getters
38 // ------------------------------------------------------------------------
39
40 /**
41 * @return the 'problem' time range
42 */
57a2a5ca 43 TmfTimeRange getTimeRange();
534c96ce
FC
44
45 /**
46 * @return the number of lost events in the time range
47 */
57a2a5ca 48 long getNbLostEvents();
534c96ce
FC
49
50}
This page took 0.080097 seconds and 5 git commands to generate.