MCPcopy Create free account
hub / github.com/adny-code/fastgrind / _normalize_function_ids

Method _normalize_function_ids

tools/fastgrind.py:1220–1226  ·  view source on GitHub ↗
(self, function_ids: Sequence[int] | None)

Source from the content-addressed store, hash-verified

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()

Callers 1

query_seriesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected