Names of the functions `profile` counted at least once, or None when the profile cannot be read.
(profdata, profile)
| 68 | |
| 69 | |
| 70 | def executed_functions(profdata, profile): |
| 71 | """Names of the functions `profile` counted at least once, or None when the |
| 72 | profile cannot be read.""" |
| 73 | proc = subprocess.run([profdata, "show", "--all-functions", "--value-cutoff=1", profile], |
| 74 | capture_output=True, text=True) |
| 75 | if proc.returncode != 0: |
| 76 | return None |
| 77 | names = set() |
| 78 | for line in proc.stdout.splitlines(): |
| 79 | match = FUNCTION_LINE.match(line) |
| 80 | if match: |
| 81 | names.add(match.group("name")) |
| 82 | return names |
| 83 | |
| 84 | |
| 85 | def source_table(llvm_cov, profdata_tool, runner, profile, root, work): |
no test coverage detected