From 7545402506aa76261e18d85af585ff0ac1cf05c1 Mon Sep 17 00:00:00 2001 From: Jonathan Herman Date: Tue, 23 Apr 2013 14:01:35 -0400 Subject: Improved accuracy of sched_trace measurement parsing. * Measurements from tasks missing > 20% of their scheduling records are ignored. This is configurable in config/config.py. * Measurements which only have zero values are ignored. * If either of these 2 situations are encountered print out a message the first time using the common.log_once() method. See parse_exps.py for how this is used with multiple threads. * Measurements from a task's last job are ignored. * Miss ratio is calculated only as a fraction of the number of jobs whose matching release and completion records were found, not just release. --- parse/point.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'parse/point.py') diff --git a/parse/point.py b/parse/point.py index ac47c70..b1d9d53 100644 --- a/parse/point.py +++ b/parse/point.py @@ -133,6 +133,10 @@ class ExpPoint(object): def get_stats(self): return self.stats.keys() + def __bool__(self): + return bool(self.stats) + __nonzero__ = __bool__ + class SummaryPoint(ExpPoint): def __init__(self, id="", points=[], typemap = default_typemap): -- cgit v1.2.2