File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
src/executor/wall_time/perf Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -172,11 +172,16 @@ impl PerfRunner {
172172 // Output the perf data to the profile folder
173173 let perf_data_file_path = self . get_perf_file_path ( profile_folder) ;
174174
175- let raw_command = format ! (
176- "set -o pipefail && {} | cat > {}" ,
177- & cmd_builder. as_command_line( ) ,
178- perf_data_file_path. to_string_lossy( )
179- ) ;
175+ let raw_command = if self . output_pipedata {
176+ format ! (
177+ "set -o pipefail && {} | cat > {}" ,
178+ & cmd_builder. as_command_line( ) ,
179+ perf_data_file_path. to_string_lossy( )
180+ )
181+ } else {
182+ cmd_builder. as_command_line ( )
183+ } ;
184+
180185 let mut wrapped_builder = CommandBuilder :: new ( "bash" ) ;
181186 wrapped_builder. args ( [ "-c" , & raw_command] ) ;
182187
You can’t perform that action at this time.
0 commit comments