From 80cb61b175c746e92fbabb658684a50a41b23660 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Thu, 12 Oct 2023 22:37:07 +0800 Subject: [PATCH] ... --- run_profile.sh | 6 +++--- run_tests.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/run_profile.sh b/run_profile.sh index 33b1cdcb..49e46d82 100644 --- a/run_profile.sh +++ b/run_profile.sh @@ -1,7 +1,7 @@ python3 prebuild.py SRC=$(find src/ -name "*.cpp") -clang++ -pg -O1 -std=c++17 -stdlib=libc++ -Wfatal-errors -o main $SRC -Iinclude -ldl -time ./main benchmarks/fib.py +clang++ -pg -O1 -std=c++17 -stdlib=libc++ -Wfatal-errors -o main $SRC src2/main.cpp -Iinclude +time ./main benchmarks/primes.py mv benchmarks/gmon.out . -gprof pocketpy gmon.out > gprof.txt +gprof main gmon.out > gprof.txt rm gmon.out diff --git a/run_tests.sh b/run_tests.sh index 2b964aa8..d2a4a74f 100644 --- a/run_tests.sh +++ b/run_tests.sh @@ -1,6 +1,6 @@ python3 prebuild.py SRC=$(find src/ -name "*.cpp") -clang++ -std=c++17 --coverage -O1 -stdlib=libc++ -Wfatal-errors -o main src2/main.cpp $SRC -Iinclude -ldl +clang++ -std=c++17 --coverage -O1 -stdlib=libc++ -Wfatal-errors -o main src2/main.cpp $SRC -Iinclude python3 scripts/run_tests.py # if prev error exit