(fn_name: str)
| 223 | import re |
| 224 | |
| 225 | def group_by_file(fn_name: str): |
| 226 | if fn_name.startswith("???"): |
| 227 | fn_dir, fn_file = fn_name.split(":")[:2] |
| 228 | else: |
| 229 | fn_dir, fn_file = os.path.split(fn_name.split(":")[0]) |
| 230 | fn_dir = re.sub("^.*build/../", "", fn_dir) |
| 231 | fn_dir = re.sub("^.*torch/", "torch/", fn_dir) |
| 232 | |
| 233 | return f"{fn_dir:<15} {fn_file}" |
| 234 | |
| 235 | print(inclusive_stats.transform(group_by_file)[:10]) |
| 236 |
nothing calls this directly
no outgoing calls
no test coverage detected