ss: Replace AttributeNotFoundException with IOOBE for quark parameters
[deliverable/tracecompass.git] / lttng / org.eclipse.tracecompass.lttng2.kernel.core.tests / perf / org / eclipse / tracecompass / lttng2 / kernel / core / tests / perf / analysis / tid / TidAnalysisUsageBenchmark.java
index 012f343cedf0db353b88a8bad7fe0b6876de891c..fac86915dbbf263e65b915a14c3e84bca332a6a9 100644 (file)
@@ -24,7 +24,6 @@ import org.eclipse.tracecompass.analysis.os.linux.core.tid.TidAnalysisModule;
 import org.eclipse.tracecompass.lttng2.kernel.core.tests.perf.analysis.kernel.KernelAnalysisBenchmark;
 import org.eclipse.tracecompass.lttng2.kernel.core.trace.LttngKernelTrace;
 import org.eclipse.tracecompass.statesystem.core.ITmfStateSystem;
-import org.eclipse.tracecompass.statesystem.core.exceptions.AttributeNotFoundException;
 import org.eclipse.tracecompass.testtraces.ctf.CtfTestTrace;
 import org.eclipse.tracecompass.tmf.core.exceptions.TmfAnalysisException;
 import org.eclipse.tracecompass.tmf.core.exceptions.TmfTraceException;
@@ -135,13 +134,8 @@ public class TidAnalysisUsageBenchmark {
 
         /* Get the number of CPUs */
         int cpuCount = -1;
-        try {
-            @NonNull
-            List<@NonNull Integer> cpus = ss.getSubAttributes(ITmfStateSystem.ROOT_ATTRIBUTE, false);
-            cpuCount = cpus.size();
-        } catch (AttributeNotFoundException e) {
-            fail(e.getMessage());
-        }
+        @NonNull List<@NonNull Integer> cpus = ss.getSubAttributes(ITmfStateSystem.ROOT_ATTRIBUTE, false);
+        cpuCount = cpus.size();
         if (cpuCount < 1) {
             fail("Impossible to get the number of CPUs");
         }
This page took 0.023615 seconds and 5 git commands to generate.