repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[MC,test] Improve nesting macro test
[llvm-project.git]
/
bolt
/
test
/
perf2bolt
/
lit.local.cfg
blob
0fecf913aa98b88fc643c31b1b7bd39b5f3dbbb1
1
import shutil
2
import subprocess
3
4
if shutil.which("perf") is not None and subprocess.run(["perf", "record", "-e", "cycles:u", "-o", "/dev/null", "--", "perf", "--version"], capture_output=True).returncode == 0:
5
config.available_features.add("perf")