Method
_infer_split
(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] |
Tested by
no test coverage detected