Search in sources :

Example 11 with InputOutputAnalysisModule

use of org.eclipse.tracecompass.internal.analysis.os.linux.core.inputoutput.InputOutputAnalysisModule in project tracecompass by tracecompass.

the class InputOutputStateProviderTest method testStateProviderIntervalData.

/**
 * Test the intervals built by the state provider
 */
@Test
public void testStateProviderIntervalData() {
    InputOutputAnalysisModule module = setUp(fTestCase.getTraceFileName());
    assertNotNull(module);
    TmfTestHelper.executeAnalysis(module);
    ITmfStateSystem ss = module.getStateSystem();
    assertNotNull(ss);
    StateSystemTestUtils.testIntervals(ss, fTestCase.getTestIntervals());
}
Also used : InputOutputAnalysisModule(org.eclipse.tracecompass.internal.analysis.os.linux.core.inputoutput.InputOutputAnalysisModule) ITmfStateSystem(org.eclipse.tracecompass.statesystem.core.ITmfStateSystem) Test(org.junit.Test)

Aggregations

InputOutputAnalysisModule (org.eclipse.tracecompass.internal.analysis.os.linux.core.inputoutput.InputOutputAnalysisModule)11 NonNull (org.eclipse.jdt.annotation.NonNull)6 Test (org.junit.Test)6 Disk (org.eclipse.tracecompass.internal.analysis.os.linux.core.inputoutput.Disk)3 ITmfStateSystem (org.eclipse.tracecompass.statesystem.core.ITmfStateSystem)2 ITmfTrace (org.eclipse.tracecompass.tmf.core.trace.ITmfTrace)2 IPath (org.eclipse.core.runtime.IPath)1 IStatus (org.eclipse.core.runtime.IStatus)1 KernelAnalysisModule (org.eclipse.tracecompass.analysis.os.linux.core.kernel.KernelAnalysisModule)1 PunctualInfo (org.eclipse.tracecompass.analysis.os.linux.core.tests.stubs.LinuxTestCase.PunctualInfo)1 DiskInfo (org.eclipse.tracecompass.analysis.os.linux.core.tests.stubs.inputoutput.IoTestCase.DiskInfo)1 SectorCountInfo (org.eclipse.tracecompass.analysis.os.linux.core.tests.stubs.inputoutput.IoTestCase.SectorCountInfo)1 TmfXmlKernelTraceStub (org.eclipse.tracecompass.analysis.os.linux.core.tests.stubs.trace.TmfXmlKernelTraceStub)1 DisksIODataProvider (org.eclipse.tracecompass.internal.analysis.os.linux.core.inputoutput.DisksIODataProvider)1 TmfTraceException (org.eclipse.tracecompass.tmf.core.exceptions.TmfTraceException)1 TmfTraceOpenedSignal (org.eclipse.tracecompass.tmf.core.signal.TmfTraceOpenedSignal)1 TmfTrace (org.eclipse.tracecompass.tmf.core.trace.TmfTrace)1