import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jdt.annotation.Nullable;
-import org.eclipse.tracecompass.analysis.os.linux.core.latency.SystemCallLatencyAnalysis;
import org.eclipse.tracecompass.analysis.os.linux.core.latency.SystemCall;
+import org.eclipse.tracecompass.analysis.os.linux.core.latency.SystemCallLatencyAnalysis;
import org.eclipse.tracecompass.segmentstore.core.ISegment;
import org.eclipse.tracecompass.segmentstore.core.ISegmentStore;
import org.eclipse.tracecompass.tmf.core.analysis.IAnalysisModule;
private @Nullable SystemCallLatencyAnalysis fLatencyModule;
- private @Nullable LatencyStatistics fTotalStats;
+ private @Nullable SegmentStoreStatistics fTotalStats;
- private @Nullable Map<String, LatencyStatistics> fPerSyscallStats;
+ private @Nullable Map<String, SegmentStoreStatistics> fPerSyscallStats;
@Override
protected Iterable<IAnalysisModule> getDependentAnalyses() {
}
private boolean calculateTotalManual(ISegmentStore<ISegment> store, IProgressMonitor monitor) {
- LatencyStatistics total = new LatencyStatistics();
+ SegmentStoreStatistics total = new SegmentStoreStatistics();
Iterator<ISegment> iter = store.iterator();
while (iter.hasNext()) {
if (monitor.isCanceled()) {
}
private boolean calculateTotalPerSyscall(ISegmentStore<ISegment> store, IProgressMonitor monitor) {
- Map<String, LatencyStatistics> perSyscallStats = new HashMap<>();
+ Map<String, SegmentStoreStatistics> perSyscallStats = new HashMap<>();
Iterator<ISegment> iter = store.iterator();
while (iter.hasNext()) {
ISegment segment = iter.next();
if (segment instanceof SystemCall) {
SystemCall syscall = (SystemCall) segment;
- LatencyStatistics values = perSyscallStats.get(syscall.getName());
+ SegmentStoreStatistics values = perSyscallStats.get(syscall.getName());
if (values == null) {
- values = new LatencyStatistics();
+ values = new SegmentStoreStatistics();
}
values.update(segment);
perSyscallStats.put(syscall.getName(), values);
*
* @return the total statistics
*/
- public @Nullable LatencyStatistics getTotalStats() {
+ public @Nullable SegmentStoreStatistics getTotalStats() {
return fTotalStats;
}
*
* @return the per syscall statistics
*/
- public @Nullable Map<String, LatencyStatistics> getPerSyscallStats() {
+ public @Nullable Map<String, SegmentStoreStatistics> getPerSyscallStats() {
return fPerSyscallStats;
}