@@ -63,16 +63,17 @@ profile_with_perf() {
6363 ./build-profile/bin/mg_benchmarks
6464
6565 # Generate reports
66- perf report -i perf.data --stdio > perf-report.txt
67- perf annotate -i perf.data --stdio > perf-annotate.txt
66+ mkdir -p .ignored
67+ perf report -i perf.data --stdio > .ignored/perf-report.txt
68+ perf annotate -i perf.data --stdio > .ignored/perf-annotate.txt
6869
6970 # Generate flame graph if available
7071 if command -v flamegraph > /dev/null 2>&1 ; then
71- perf script -i perf.data | flamegraph > flamegraph.svg
72- echo " [INFO] Flame graph generated: flamegraph.svg"
72+ perf script -i perf.data | flamegraph > .ignored/ flamegraph.svg
73+ echo " [INFO] Flame graph generated: .ignored/ flamegraph.svg"
7374 fi
7475
75- echo " [INFO] Perf reports generated: perf-report.txt, perf-annotate.txt"
76+ echo " [INFO] Perf reports generated: .ignored/ perf-report.txt, .ignored/ perf-annotate.txt"
7677}
7778
7879# Memory profiling with Valgrind
@@ -111,9 +112,10 @@ profile_with_gprof() {
111112 ./build-profile/bin/mg_benchmarks
112113
113114 # Generate profile report
114- gprof ./build-profile/bin/mg_benchmarks gmon.out > gprof-report.txt
115+ mkdir -p .ignored
116+ gprof ./build-profile/bin/mg_benchmarks gmon.out > .ignored/gprof-report.txt
115117
116- echo " [INFO] gprof report generated: gprof-report.txt"
118+ echo " [INFO] gprof report generated: .ignored/ gprof-report.txt"
117119}
118120
119121# Benchmark timing analysis
@@ -136,8 +138,9 @@ benchmark_timing() {
136138 done
137139
138140 # Calculate statistics
139- echo " Timing Results (Real User System MaxRSS):" > timing-analysis.txt
140- cat " $times_file " >> timing-analysis.txt
141+ mkdir -p .ignored
142+ echo " Timing Results (Real User System MaxRSS):" > .ignored/timing-analysis.txt
143+ cat " $times_file " >> .ignored/timing-analysis.txt
141144
142145 # Calculate averages (basic awk processing)
143146 awk ' {
@@ -146,12 +149,12 @@ benchmark_timing() {
146149 printf "Averages over %d runs:\n", count
147150 printf "Real: %.3fs, User: %.3fs, System: %.3fs, Peak Memory: %.0fKB\n",
148151 real/count, user/count, sys/count, mem/count
149- }' " $times_file " >> timing-analysis.txt
152+ }' " $times_file " >> .ignored/ timing-analysis.txt
150153
151154 # Clean up temporary file
152155 rm -f " $times_file "
153156
154- echo " [INFO] Timing analysis saved to: timing-analysis.txt"
157+ echo " [INFO] Timing analysis saved to: .ignored/ timing-analysis.txt"
155158}
156159
157160# Profile-Guided Optimization
@@ -186,9 +189,10 @@ run_pgo() {
186189 ./build-profile/bin/mg_benchmarks
187190 echo " === With PGO ==="
188191 ./build-pgo-use/bin/mg_benchmarks
189- } > pgo-comparison.txt
192+ mkdir -p .ignored
193+ } > .ignored/pgo-comparison.txt
190194
191- echo " [INFO] PGO comparison saved to: pgo-comparison.txt"
195+ echo " [INFO] PGO comparison saved to: .ignored/ pgo-comparison.txt"
192196}
193197
194198# Fuzzing with address sanitizer
0 commit comments