(profile, key)
| 50 | |
| 51 | |
| 52 | def getCounterValues(profile, key): |
| 53 | # This matches lines like these: |
| 54 | # NumTupleCacheHits: 1 (1) |
| 55 | # TupleCacheBytesWritten: 123.00 B (123) |
| 56 | # The regex extracts the value inside the parenthesis to get a simple numeric value |
| 57 | # rather than a pretty print of the same value. |
| 58 | counter_str_list = re.findall(r"{0}{1}: .* \((.*)\)".format(NODE_INDENT, key), profile) |
| 59 | return [int(v) for v in counter_str_list] |
| 60 | |
| 61 | |
| 62 | def assertCounterOrder(profile, key, vals): |
no test coverage detected