thanks for the interest in Trace Compass. It's possible to an existing
state
system and query the content. See below a example on how to use the kernel
state
system. It reads and prints the
state
system start and end time, gets the quarks for the exec names and does a single query. It does not do what you'd like to achieve but I hope it gets you started.
------------------------------------------------------------------------------------
// Load the proper modules
loadModule("/TraceCompass/Trace")
loadModule("/TraceCompass/Analysis")
// Get the active trace
var trace = getActiveTrace()
// Get an analysis
var analysis = getTraceAnalysis(trace, "org.eclipse.tracecompass.analysis.os.linux.kernel")
// Get the analysis's
state
system so we can fill it, false indicates to create a new
state
system even if one already exists
var ss = analysis.getStateSystem();
// Get start and end time
var start = ss.getStartTime();
var end = ss.getCurrentEndTime();
print("start: " + start)
print("end: " + end)
// Get the Exec_name quarks
var quarks = ss.getQuarks(-1, "Threads", "*", "Exec_name")
print (quarks.get(0))
// Get interval of first quark at trace start time
var interval = ss.querySingleState(start, quarks.get(0))
print (interval)