Parses the fields in a node timeline label.
(self, label)
| 420 | return flow_id |
| 421 | |
| 422 | def _parse_op_label(self, label): |
| 423 | """Parses the fields in a node timeline label.""" |
| 424 | # Expects labels of the form: name = op(arg, arg, ...). |
| 425 | match = re.match(r'(.*) = (.*)\((.*)\)', label) |
| 426 | if match is None: |
| 427 | return 'unknown', 'unknown', [] |
| 428 | nn, op, inputs = match.groups() |
| 429 | if not inputs: |
| 430 | inputs = [] |
| 431 | else: |
| 432 | inputs = inputs.split(', ') |
| 433 | return nn, op, inputs |
| 434 | |
| 435 | def _assign_lanes(self, device_only): |
| 436 | """Assigns non-overlapping lanes for the activities on each device.""" |
no test coverage detected