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

Method _infer_split

tools/fastgrind.py:1236–1247  ·  view source on GitHub ↗
(self, split: str, thread_ids: Sequence[int], function_ids: Sequence[int])

Source from the content-addressed store, hash-verified

1234 return start_tick, end_tick
1235
1236 def _infer_split(self, split: str, thread_ids: Sequence[int], function_ids: Sequence[int]) -> str:
1237 if split != "auto":
1238 return split
1239 if function_ids:
1240 if len(function_ids) > 1 and len(thread_ids) <= 1:
1241 return "function"
1242 if len(function_ids) == 1 and len(thread_ids) <= 1:
1243 return "function"
1244 return "pair"
1245 if len(thread_ids) > 1:
1246 return "thread"
1247 return "total"
1248
1249 def _narrow_thread_ids_by_functions(
1250 self, thread_ids: Sequence[int], function_ids: Sequence[int]

Callers 1

query_seriesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected