Files
hakmem/view_perf_analysis.sh

61 lines
1.3 KiB
Bash
Raw Normal View History

#!/bin/bash
# Quick access to performance analysis files
echo "=========================================="
echo "HAKMEM Performance Analysis Files"
echo "=========================================="
echo ""
case "${1:-menu}" in
menu)
echo "Usage: ./view_perf_analysis.sh [option]"
echo ""
echo "Options:"
echo " index - View file index and navigation guide"
echo " summary - View executive summary (1 page)"
echo " full - View full detailed analysis"
echo " compare - View before/after comparison"
echo " steps - View optimization implementation guide"
echo " report - View raw perf report"
echo " all - List all analysis files"
echo ""
;;
index)
cat PERF_ANALYSIS_INDEX.md
;;
summary)
cat PERF_SUMMARY.txt
;;
full)
cat PERF_POST_GETENV_ANALYSIS.md
;;
compare)
cat BOTTLENECK_COMPARISON.txt
;;
steps)
cat OPTIMIZATION_NEXT_STEPS.md
;;
report)
cat perf_post_getenv_report.txt
;;
all)
echo "Analysis Documents:"
ls -lh PERF_*.md PERF_*.txt BOTTLENECK_*.txt OPTIMIZATION_*.md 2>/dev/null
echo ""
echo "Raw Perf Data:"
ls -lh perf_post_getenv* 2>/dev/null
;;
*)
echo "Unknown option: $1"
echo "Run without arguments to see menu."
;;
esac