Sat, 08 Mar 2014 13:55:46 +0200
added LICENSE and README.md files
350 | 1 | import gdb |
2 | ||
3 | class gge_utils_PerformanceTimerPrinter: | |
4 | def __init__(self, val): | |
5 | self.val=val | |
6 | ||
7 | def to_string(self): | |
8 | return self.val['passed'] | |
9 | ||
10 | ||
11 | ||
12 | def lookup_type(val): | |
13 | if str(val.type) == 'gge::utils::PerformanceTimer': | |
14 | return gge_utils_PerformanceTimerPrinter(val) | |
15 | ||
16 | return None | |
17 | ||
18 | ||
19 | gdb.pretty_printers.append(lookup_type) |