-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfast_analysis.sh
More file actions
executable file
·50 lines (44 loc) · 1.26 KB
/
fast_analysis.sh
File metadata and controls
executable file
·50 lines (44 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
# Fast code2flow analysis for large projects
echo "🚀 Fast Code2Flow Analysis"
echo "=========================="
# Set environment variables for performance
export OMP_NUM_THREADS=4
export NUMBA_NUM_THREADS=4
export PYTHONPATH="${PYTHONPATH}:$(pwd)"
# Fast analysis with optimizations
echo "1️⃣ Quick analysis (spring layout, limited depth)"
time code2flow ../src/nlp2cmd/ \
-v \
-o ./output_quick \
--layout spring \
--max-depth 2 \
--max-nodes 1000 \
--exclude "*test*" \
--exclude "*__pycache__*"
echo ""
echo "2️⃣ Ultra-fast analysis (dot layout, minimal depth)"
time code2flow ../src/nlp2cmd/ \
-v \
-o ./output_ultra \
--layout dot \
--max-depth 1 \
--max-nodes 500
echo ""
echo "3️⃣ Module-by-module analysis"
for module in adapters automation llm generation pipeline_runner web_schema; do
if [ -d "../src/nlp2cmd/$module" ]; then
echo "📦 Analyzing $module..."
time code2flow "../src/nlp2cmd/$module" \
-v \
-o "./output_modules/$module" \
--layout dot \
--max-depth 2
fi
done
echo ""
echo "✅ Analysis complete!"
echo "Check output directories:"
echo " - ./output_quick/"
echo " - ./output_ultra/"
echo " - ./output_modules/"