File tree Expand file tree Collapse file tree 6 files changed +15
-5
lines changed
Expand file tree Collapse file tree 6 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,13 @@ debug_log() {
1111debug_log " Called with arguments: $* "
1212debug_log " Number of arguments: $# "
1313
14+
15+ # Currently only walltime is supported
16+ if [ " ${CODSPEED_RUNNER_MODE:- } " != " walltime" ]; then
17+ echo " WARNING: Go benchmarks can only be run with walltime"
18+ exit 1
19+ fi
20+
1421# Find the real go binary, so that we don't end up in infinite recursion
1522REAL_GO=$( which -a go | grep -v " $( realpath " $0 " ) " | head -1)
1623if [ -z " $REAL_GO " ]; then
File renamed without changes.
Original file line number Diff line number Diff line change 11pub mod env;
22pub mod get_bench_command;
3+ pub mod introspected_golang;
34pub mod profile_folder;
45pub mod run_command_with_log_pipe;
56pub mod setup;
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ use crate::prelude::*;
22use crate :: run:: runner:: RunnerMode ;
33use crate :: run:: runner:: helpers:: env:: get_base_injected_env;
44use crate :: run:: runner:: helpers:: get_bench_command:: get_bench_command;
5+ use crate :: run:: runner:: helpers:: introspected_golang;
56use crate :: run:: runner:: helpers:: run_command_with_log_pipe:: run_command_with_log_pipe;
67use crate :: run:: runner:: valgrind:: helpers:: ignored_objects_path:: get_objects_path_to_ignore;
78use crate :: run:: runner:: valgrind:: helpers:: introspected_nodejs:: setup_introspected_nodejs;
@@ -90,11 +91,13 @@ pub async fn measure(
9091 . env (
9192 "PATH" ,
9293 format ! (
93- "{}:{}" ,
94+ "{}:{}:{} " ,
9495 setup_introspected_nodejs( )
9596 . map_err( |e| anyhow!( "failed to setup NodeJS introspection. {}" , e) ) ?
96- . to_str( )
97- . unwrap( ) ,
97+ . to_string_lossy( ) ,
98+ introspected_golang:: setup_introspected_go( )
99+ . map_err( |e| anyhow!( "failed to setup Go introspection. {}" , e) ) ?
100+ . to_string_lossy( ) ,
98101 env:: var( "PATH" ) . unwrap_or_default( ) ,
99102 ) ,
100103 ) ;
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ use crate::run::instruments::mongo_tracer::MongoTracer;
55use crate :: run:: runner:: executor:: Executor ;
66use crate :: run:: runner:: helpers:: env:: { get_base_injected_env, is_codspeed_debug_enabled} ;
77use crate :: run:: runner:: helpers:: get_bench_command:: get_bench_command;
8+ use crate :: run:: runner:: helpers:: introspected_golang:: setup_introspected_go;
89use crate :: run:: runner:: helpers:: run_command_with_log_pipe:: run_command_with_log_pipe;
9- use crate :: run:: runner:: wall_time:: introspected_golang:: setup_introspected_go;
1010use crate :: run:: runner:: { ExecutorName , RunData } ;
1111use crate :: run:: { check_system:: SystemInfo , config:: Config } ;
1212use async_trait:: async_trait;
Original file line number Diff line number Diff line change 11pub mod executor;
2- pub mod introspected_golang;
32pub mod perf;
You can’t perform that action at this time.
0 commit comments