From e4cbb88e1d2b21c37653433383ca4c85a3911d12 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sat, 18 May 2024 15:35:15 +0800 Subject: [PATCH] Update run_profile.sh --- run_profile.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/run_profile.sh b/run_profile.sh index f0ba16b0..68316f8b 100644 --- a/run_profile.sh +++ b/run_profile.sh @@ -1,7 +1,6 @@ python prebuild.py SRC=$(find src/ -name "*.cpp") -clang++ -pg -O1 -std=c++17 -stdlib=libc++ -frtti -Wfatal-errors -o main $SRC src2/main.cpp -Iinclude -time ./main benchmarks/fib.py -mv benchmarks/gmon.out . +g++ -pg -Og -std=c++17 -frtti -Wfatal-errors -o main $SRC src2/main.cpp -Iinclude +./main benchmarks/fib.py gprof main gmon.out > gprof.txt rm gmon.out