Sign in
llvm
/
llvm-project
/
613ec4c24c145eb20ef1967a714d74c9cf403da5
/
.
/
bolt
/
test
/
perf2bolt
/
lit.local.cfg
blob: 0fecf913aa98b88fc643c31b1b7bd39b5f3dbbb1 [
file
]
import
shutil
import
subprocess
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
:
config
.
available_features
.
add
(
"perf"
)