package org.eclipse.tracecompass.tmf.core.callstack;
+import static org.eclipse.tracecompass.common.core.NonNullUtils.checkNotNull;
+
+import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.osgi.util.NLS;
import org.eclipse.tracecompass.internal.tmf.core.Activator;
+import org.eclipse.tracecompass.statesystem.core.ITmfStateSystemBuilder;
import org.eclipse.tracecompass.statesystem.core.exceptions.AttributeNotFoundException;
import org.eclipse.tracecompass.statesystem.core.exceptions.StateValueTypeException;
import org.eclipse.tracecompass.statesystem.core.exceptions.TimeRangeException;
public static final String UNDEFINED = "UNDEFINED"; //$NON-NLS-1$
/** CallStack state system ID */
- private static final String ID = "org.eclipse.linuxtools.tmf.callstack"; //$NON-NLS-1$
+ private static final @NonNull String ID = "org.eclipse.linuxtools.tmf.callstack"; //$NON-NLS-1$
/** Dummy function name for when no function is expected */
private static final String NO_FUNCTION = "no function"; //$NON-NLS-1$
* @param trace
* The trace for which we build this state system
*/
- public CallStackStateProvider(ITmfTrace trace) {
+ public CallStackStateProvider(@NonNull ITmfTrace trace) {
super(trace, ITmfEvent.class, ID);
}
if (!considerEvent(event)) {
return;
}
+
+ ITmfStateSystemBuilder ss = checkNotNull(getStateSystemBuilder());
+
try {
/* Check if the event is a function entry */
String functionEntryName = functionEntry(event);