shoo
diff --git a/tests/bench/build/run_bench.sh b/tests/bench/build/run_bench.sh index 7fbcc2a..9b0297c 100644 --- a/tests/bench/build/run_bench.sh +++ b/tests/bench/build/run_bench.sh
@@ -30,3 +30,19 @@ lakeprof record -- \ "$TEST_DIR/measure.py" -t build -d -a -- \ make -C "$BUILD_NEXT" -j"$(nproc)" make_stdlib LAKE_EXTRA_ARGS="+Init:olean +Std:olean +Lean:olean +Lake:olean +LakeMain:olean +LeanIR:olean +Leanc:olean +LeanChecker:olean" + + + +echo +echo ">" +echo "> Analyzing lakeprof data..." +echo ">" + +# Lakeprof must be executed in the src dir because it obtains some metadata by +# calling lake in its current working directory. +mv lakeprof.log "$SRC_DIR" +pushd "$SRC_DIR" +lakeprof report -prc > lakeprof_report.txt +lakeprof report -pj | jq '{metric: "build/lakeprof/longest build path//wall-clock", value: .[-1][2], unit: "s"}' -c >> "$OUT" +lakeprof report -rj | jq '{metric: "build/lakeprof/longest rebuild path//wall-clock", value: .[-1][2], unit: "s"}' -c >> "$OUT" +popd