We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
perf
1 parent 48b61ef commit d36c159Copy full SHA for d36c159
src/perf_capabilities.ml
@@ -103,8 +103,8 @@ let detect_exn () =
103
let%bind perf_version_proc =
104
Process.create_exn ~prog:Env_vars.perf_path ~args:[ "--version" ] ()
105
in
106
- let%map version_string = Reader.contents (Process.stdout perf_version_proc) in
107
- let version = Version.of_perf_version_string_exn version_string in
+ let%map { stdout; _ } = Process.collect_output_and_wait perf_version_proc in
+ let version = Version.of_perf_version_string_exn stdout in
108
let set_if bool flag cap = cap + if bool then flag else empty in
109
empty
110
|> set_if (supports_configurable_psb_period ()) configurable_psb_period
0 commit comments