Commit | Line | Data |
---|---|---|
4a74f111 | 1 | /******************************************************************************* |
ed902a2b | 2 | * Copyright (c) 2014, 2015 École Polytechnique de Montréal |
4a74f111 MG |
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 | * Mohamad Gebai - Initial API and implementation | |
620f884c | 11 | * Patrick Tasse - Fix experiment name |
4a74f111 MG |
12 | *******************************************************************************/ |
13 | ||
14 | package org.eclipse.tracecompass.internal.lttng2.kernel.core.analysis.vm.trace; | |
15 | ||
16 | import java.util.Collections; | |
17 | import java.util.Set; | |
18 | ||
19 | import org.eclipse.tracecompass.tmf.core.trace.ITmfTrace; | |
20 | import org.eclipse.tracecompass.tmf.core.trace.experiment.TmfExperiment; | |
21 | import org.eclipse.tracecompass.tmf.ctf.core.event.CtfTmfEvent; | |
22 | ||
23 | /** | |
24 | * Experiment class containing traces from physical machine and the virtual | |
25 | * guests running on them. | |
26 | * | |
27 | * @author Mohamad Gebai | |
28 | */ | |
29 | public class VirtualMachineExperiment extends TmfExperiment { | |
30 | ||
31 | /** | |
32 | * Default constructor. Needed by the extension point. | |
33 | */ | |
4a74f111 | 34 | public VirtualMachineExperiment() { |
aa353506 | 35 | this("", Collections.EMPTY_SET); //$NON-NLS-1$ |
4a74f111 MG |
36 | } |
37 | ||
38 | /** | |
39 | * Constructor with traces and id | |
40 | * | |
41 | * @param id | |
42 | * The ID of this experiment | |
43 | * @param traces | |
44 | * The set of traces that are part of this experiment | |
45 | */ | |
46 | public VirtualMachineExperiment(String id, Set<ITmfTrace> traces) { | |
47 | super(CtfTmfEvent.class, id, traces.toArray(new ITmfTrace[traces.size()]), TmfExperiment.DEFAULT_INDEX_PAGE_SIZE, null); | |
48 | } | |
49 | ||
50 | } |