Find event time point in a line from the runtime profile timeline.
(line)
| 94 | |
| 95 | @staticmethod |
| 96 | def __find_time(line): |
| 97 | """Find event time point in a line from the runtime profile timeline.""" |
| 98 | # Given line "- Rows available: 3s311ms (2s300ms)", this function returns "3s311ms" |
| 99 | match = re.search(r': (.*) \(', line) |
| 100 | if match is None: |
| 101 | assert False, "Failed to find time in runtime profile" |
| 102 | return match.group(1) |
no test coverage detected