(self)
| 546 | |
| 547 | @property |
| 548 | def profile(self) -> QueryProfile: |
| 549 | value = self._params.get( |
| 550 | 'profile', None |
| 551 | ) |
| 552 | |
| 553 | if value is None: |
| 554 | return QueryProfile.OFF |
| 555 | if isinstance(value, str): |
| 556 | if value == 'off': |
| 557 | return QueryProfile.OFF |
| 558 | elif value == 'phases': |
| 559 | return QueryProfile.PHASES |
| 560 | else: |
| 561 | return QueryProfile.TIMINGS |
| 562 | |
| 563 | @profile.setter |
| 564 | def profile(self, value # type: Union[QueryProfile, str] |