| 1218 | return _detail_metric_name(self._primary_metric(selected_metrics)) |
| 1219 | |
| 1220 | def _normalize_function_ids(self, function_ids: Sequence[int] | None) -> tuple[int, ...]: |
| 1221 | if not function_ids: |
| 1222 | return tuple() |
| 1223 | max_function_id = len(self.reader.function_names) - 1 |
| 1224 | return tuple( |
| 1225 | sorted({int(function_id) for function_id in function_ids if 1 <= int(function_id) <= max_function_id}) |
| 1226 | ) |
| 1227 | |
| 1228 | def _normalize_window(self, start_ms: int | None, end_ms: int | None) -> tuple[int, int]: |
| 1229 | default_start, default_end = self.default_window() |