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/tuple_table.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/tuple_table.py')
-rw-r--r-- | parse/tuple_table.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/parse/tuple_table.py b/parse/tuple_table.py index 47fb6b6..320d9dd 100644 --- a/parse/tuple_table.py +++ b/parse/tuple_table.py | |||
@@ -13,6 +13,10 @@ class TupleTable(object): | |||
13 | def get_col_map(self): | 13 | def get_col_map(self): |
14 | return self.col_map | 14 | return self.col_map |
15 | 15 | ||
16 | def __bool__(self): | ||
17 | return bool(self.table) | ||
18 | __nonzero__ = __bool__ | ||
19 | |||
16 | def __getitem__(self, kv): | 20 | def __getitem__(self, kv): |
17 | key = self.col_map.get_key(kv) | 21 | key = self.col_map.get_key(kv) |
18 | return self.table[key] | 22 | return self.table[key] |