aboutsummaryrefslogtreecommitdiffstats
path: root/parse/enum.py
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2012-09-27 19:03:22 -0400
committerJonathan Herman <hermanjl@cs.unc.edu>2012-09-27 19:03:22 -0400
commit7c09ec981c6e06af2e62d67a609eb53728267954 (patch)
tree76a93db7cadc452ac70eabbd52fdd87ed5fd54c4 /parse/enum.py
parent5554e053e9f3d5f7987d3f1d889802b211af8eab (diff)
Added script to parse directory data, create CSVs for every chagned value.
This change also makes SchedTrace and OverheadTrace events configurable.
Diffstat (limited to 'parse/enum.py')
-rw-r--r--parse/enum.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/parse/enum.py b/parse/enum.py
new file mode 100644
index 0000000..bf35d01
--- /dev/null
+++ b/parse/enum.py
@@ -0,0 +1,7 @@
1class Enum(frozenset):
2 def __getattr__(self, name):
3 if name in self:
4 return name
5 raise AttributeError
6
7