diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-04-23 14:01:35 -0400 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-04-23 14:01:35 -0400 |
commit | 7545402506aa76261e18d85af585ff0ac1cf05c1 (patch) | |
tree | 6b5a6d2e819c10311f3b4cdc94174877bdfcfbde /parse/point.py | |
parent | 25ccdb0cbc6b959b1f96c89b8bce91963cb67b4c (diff) |
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.
Diffstat (limited to 'parse/point.py')
-rw-r--r-- | parse/point.py | 4 |
1 files changed, 4 insertions, 0 deletions
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): | |||
133 | def get_stats(self): | 133 | def get_stats(self): |
134 | return self.stats.keys() | 134 | return self.stats.keys() |
135 | 135 | ||
136 | def __bool__(self): | ||
137 | return bool(self.stats) | ||
138 | __nonzero__ = __bool__ | ||
139 | |||
136 | 140 | ||
137 | class SummaryPoint(ExpPoint): | 141 | class SummaryPoint(ExpPoint): |
138 | def __init__(self, id="", points=[], typemap = default_typemap): | 142 | def __init__(self, id="", points=[], typemap = default_typemap): |