-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Add test secript for scale data
- Loading branch information
Showing
3 changed files
with
63 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,6 +56,8 @@ OBJS := \ | |
aclint.o \ | ||
$(OBJS_EXTRA) | ||
|
||
LDFLAGS := -pg | ||
|
||
deps := $(OBJS:%.o=.%.o.d) | ||
|
||
$(BIN): $(OBJS) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Create a directory to store logs (optional) | ||
mkdir -p logs | ||
|
||
for N in $(seq 1 32); do | ||
echo "=============================================" | ||
echo "Starting experiment with SMP=$N" | ||
echo "=============================================" | ||
|
||
# 1) Clean | ||
make clean | ||
|
||
# 2) Build and run checks with SMP=N, capturing emulator output | ||
# The 'tee' command copies output to the terminal AND a log file | ||
echo "Building and running 'make check SMP=$N'..." | ||
make check SMP=$N 2>&1 | tee "logs/emulator_SMP_${N}.log" | ||
|
||
# 3) After the emulator run, record gprof output | ||
# We assume 'gprof ./semu' uses data from 'gmon.out' | ||
echo "Running gprof for SMP=$N..." | ||
gprof ./semu > "logs/gprof_SMP_${N}.log" 2>&1 | ||
|
||
echo "Done with SMP=$N. Logs saved:" | ||
echo " - logs/emulator_SMP_${N}.log" | ||
echo " - logs/gprof_SMP_${N}.log" | ||
echo | ||
done | ||
|
||
echo "All experiments complete!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters