🎯 IMPLEMENTATION PLAN: Performance Profiling (08_09)¶
📍 UBICACIÓN¶
Carpeta: 4 - INTEGRATION/08_PLUGINS/08_09_performance_profiling/
🤖 PROMPT INICIAL¶
"Estoy en
08_09_performance_profiling. Implementaré profiling de performance. Leo IMPLEMENTATION_PLAN.md."
📊 FASES (5 prompts, 15-20h)¶
FASE 1: CPU Estimation (3-4h)¶
Tareas:
1. 08_09_00_cpu_estimation/
2. StaticCostAnalyzer.hpp/.cpp
3. OperationCounter.hpp/.cpp
4. CPUBudgetTracker.hpp/.cpp
5. Tests
Checklist: - [ ] Static cost analysis - [ ] Operation counting preciso - [ ] CPU budget tracking
FASE 2: Memory Prediction (3-4h)¶
Tareas:
1. 08_09_01_memory_prediction/
2. StackUsageCalculator.hpp/.cpp
3. HeapAllocationDetector.hpp/.cpp
4. MemoryLayoutOptimizer.hpp/.cpp
5. Tests
Checklist: - [ ] Stack usage calculado - [ ] Heap allocations detectadas - [ ] Memory layout optimizado
FASE 3: Hotspot Identification (3-4h)¶
Tareas:
1. 08_09_02_hotspot_identification/
2. ProfileGuidedOptimizer.hpp/.cpp
3. BottleneckDetector.hpp/.cpp
4. CallGraphAnalyzer.hpp/.cpp
5. Tests + Tracy integration
Checklist: - [ ] PGO funciona - [ ] Bottlenecks detectados - [ ] Call graph análisis
FASE 4: Bottleneck Warnings (3-4h)¶
Tareas:
1. 08_09_03_bottleneck_warnings/
2. RTSafetyViolationDetector.hpp/.cpp
3. LockContentionAnalyzer.hpp/.cpp
4. CacheMissPredictor.hpp/.cpp
5. Tests
Checklist: - [ ] RT violations detectadas - [ ] Lock contention medido - [ ] Cache misses predichos
FASE 5: Suggestions (3-4h)¶
Tareas:
1. 08_09_04_suggestions/
2. AlgorithmicImprovements.hpp/.cpp
3. DataStructureRecommender.hpp/.cpp
4. ParallelizationOpportunities.hpp/.cpp
5. Tests + Docs
Checklist: - [ ] Algorithmic improvements sugeridas - [ ] Data structures recomendadas - [ ] Parallelization opportunities
🎯 CRITERIOS¶
- CPU estimation ±15% real
- Memory prediction ±10%
- Hotspots identificados correctamente
- Suggestions accionables
📦 DEPENDENCIAS¶
Depende: 08_02 (DSP Integration)
💾 COMMITS¶
git commit -m "feat(08_09): add CPU estimation"
git commit -m "feat(08_09): add memory prediction"
git commit -m "feat(08_09): add hotspot identification"
git commit -m "feat(08_09): add bottleneck warnings"
git commit -m "feat(08_09): add optimization suggestions"
Estado: 📝 LISTO | Estimación: 15-20h