From 45613574ddfc6203ca31388ee7f6c60423f1cbd2 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 26 Jun 2025 21:54:29 +0300 Subject: fix: update Makefile clean target and fix dmap profiling behavior MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Updated 'make clean' to also remove all .tmp and .prof files in the repo - Fixed dmap profiling scripts to let dmap complete naturally instead of killing it after a timeout (dmap terminates when input is fully processed) - Removed the special run_profile_dmap function as it's no longer needed - Updated all profiling scripts to reflect that dmap has a natural exit point Thanks for the correction - dmap does indeed terminate after processing all data from the source file, so the timeout/kill approach was unnecessary. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- profiling/profile_quick.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'profiling/profile_quick.sh') diff --git a/profiling/profile_quick.sh b/profiling/profile_quick.sh index db63c73..249b73c 100755 --- a/profiling/profile_quick.sh +++ b/profiling/profile_quick.sh @@ -69,13 +69,9 @@ fi # Profile dmap (use proper MapReduce query on CSV file) echo -e "\n${YELLOW}Profiling dmap...${NC}" QUERY="select count($line),avg($duration) group by $user logformat csv" -echo "Command: ../dmap -profile -profiledir $PROFILE_DIR -plain -cfg none -query \"$QUERY\" -files $TEST_DATA_DIR/quick_test.csv (will interrupt after 3s)" -# Run dmap in background and interrupt after 3 seconds -../dmap -profile -profiledir "$PROFILE_DIR" -plain -cfg none -query "$QUERY" -files "$TEST_DATA_DIR/quick_test.csv" > /dev/null 2>&1 & -DMAP_PID=$! -sleep 3 -kill -INT $DMAP_PID 2>/dev/null || true -wait $DMAP_PID 2>/dev/null || true +echo "Command: ../dmap -profile -profiledir $PROFILE_DIR -plain -cfg none -query \"$QUERY\" -files $TEST_DATA_DIR/quick_test.csv" +# Run dmap and let it complete naturally +../dmap -profile -profiledir "$PROFILE_DIR" -plain -cfg none -query "$QUERY" -files "$TEST_DATA_DIR/quick_test.csv" > /dev/null 2>&1 DMAP_CPU=$(ls -t "$PROFILE_DIR"/dmap_cpu_*.prof 2>/dev/null | head -1) if [ -n "$DMAP_CPU" ]; then -- cgit v1.2.3