Complete mapping of all new v0.3.0 features with cross-references.
π Feature Location Map
CLI Module (cli.py)
File: callflow_tracer/cli.py (850 lines)
Main Class: CallflowCLI
Commands:
| Command | Handler | Guide | Lines |
|βββ|βββ|ββ-|ββ-|
| trace | _handle_trace() | CLI_GUIDE.md | 40 |
| flamegraph | _handle_flamegraph() | CLI_GUIDE.md | 25 |
| profile | _handle_profile() | CLI_GUIDE.md | 70 |
| memory-leak | _handle_memory_leak() | CLI_GUIDE.md | 35 |
| compare | _handle_compare() | CLI_GUIDE.md | 30 |
| export | _handle_export() | CLI_GUIDE.md | 25 |
| info | _handle_info() | CLI_GUIDE.md | 45 |
| quality | _handle_quality() | CLI_GUIDE.md + CODE_QUALITY_GUIDE.md | 55 |
| predict | _handle_predict() | CLI_GUIDE.md + PREDICTIVE_ANALYSIS_GUIDE.md | 60 |
| churn | _handle_churn() | CLI_GUIDE.md + CODE_CHURN_GUIDE.md | 45 |
Code Quality Module (code_quality.py)
File: callflow_tracer/code_quality.py (633 lines)
Guide: CODE_QUALITY_GUIDE.md
Dataclasses:
| Class | Purpose | Lines |
|ββ-|βββ|ββ-|
| ComplexityMetrics | Cyclomatic/cognitive complexity | 20 |
| MaintainabilityMetrics | Maintainability index | 25 |
| TechnicalDebtIndicator | Technical debt scoring | 15 |
| QualityTrend | Quality trend tracking | 12 |
Analyzer Classes:
| Class | Purpose | Methods | Lines |
|ββ-|βββ|βββ|ββ-|
| ComplexityAnalyzer | Analyze complexity | 9 | 130 |
| MaintainabilityAnalyzer | Analyze maintainability | 8 | 165 |
| TechnicalDebtAnalyzer | Identify debt | 1 | 75 |
| QualityTrendAnalyzer | Track trends | 6 | 105 |
Key Functions:
analyze_codebase(directory, file_pattern)- Analyze entire codebase
CLI Integration:
- Command:
quality - Handler:
_handle_quality()incli.py - Output: HTML/JSON reports
Predictive Analysis Module (predictive_analysis.py)
File: callflow_tracer/predictive_analysis.py (627 lines)
Guide: PREDICTIVE_ANALYSIS_GUIDE.md
Dataclasses:
| Class | Purpose | Lines |
|ββ-|βββ|ββ-|
| PerformancePrediction | Performance predictions | 12 |
| CapacityPrediction | Capacity forecasts | 12 |
| ScalabilityAnalysis | Scalability analysis | 10 |
| ResourceForecast | Resource forecasts | 12 |
Analyzer Classes:
| Class | Purpose | Methods | Lines |
|ββ-|βββ|βββ|ββ-|
| PerformancePredictor | Predict issues | 8 | 155 |
| CapacityPlanner | Plan capacity | 5 | 95 |
| ScalabilityAnalyzer | Analyze scalability | 8 | 140 |
| ResourceForecaster | Forecast resources | 4 | 100 |
Key Functions:
generate_predictive_report(trace_history, current_trace)- Generate report
CLI Integration:
- Command:
predict - Handler:
_handle_predict()incli.py - Output: HTML/JSON reports
Code Churn Module (code_churn.py)
File: callflow_tracer/code_churn.py (382 lines)
Guide: CODE_CHURN_GUIDE.md
Dataclasses:
| Class | Purpose | Lines |
|ββ-|βββ|ββ-|
| ChurnMetrics | Churn metrics | 15 |
| ChurnCorrelation | Churn correlation | 12 |
Analyzer Classes:
| Class | Purpose | Methods | Lines |
|ββ-|βββ|βββ|ββ-|
| CodeChurnAnalyzer | Analyze churn | 8 | 165 |
| ChurnCorrelationAnalyzer | Correlate metrics | 7 | 135 |
Key Functions:
generate_churn_report(repo_path, days, complexity_metrics, performance_data)- Generate report
CLI Integration:
- Command:
churn - Handler:
_handle_churn()incli.py - Output: HTML/JSON reports
Requirements: Git repository with history
Integrations Module (integrations/)
Directory: callflow_tracer/integrations/
Guide: INTEGRATIONS_GUIDE.md
Integration Modules:
Flask Integration
- File:
flask_integration.py(2,586 bytes) - Setup Function:
setup_flask_tracing(app, output_dir, auto_open, include_args) - Features: Request tracing, endpoint profiling
- Async Support: No
- Example: INTEGRATIONS_GUIDE.md#example-1-flask-with-tracing
FastAPI Integration
- File:
fastapi_integration.py(2,105 bytes) - Setup Function:
setup_fastapi_tracing(app, output_dir, auto_open, include_args) - Features: Async support, endpoint profiling
- Async Support: Yes
- Example: INTEGRATIONS_GUIDE.md#example-2-fastapi-with-async
Django Integration
- File:
django_integration.py(2,586 bytes) - Setup Function: Middleware-based
- Features: View tracing, DB monitoring
- Async Support: Partial
- Example: INTEGRATIONS_GUIDE.md#example-3-django-with-middleware
SQLAlchemy Integration
- File:
sqlalchemy_integration.py(1,725 bytes) - Setup Function:
setup_sqlalchemy_tracing(engine, log_queries, slow_query_threshold, include_params) - Features: Query tracing, performance monitoring
- Async Support: Yes
- Example: INTEGRATIONS_GUIDE.md#example-4-sqlalchemy-integration
psycopg2 Integration
- File:
psycopg2_integration.py(3,744 bytes) - Setup Function:
setup_psycopg2_tracing(log_queries, slow_query_threshold, include_params) - Features: Query tracing, connection monitoring
- Async Support: No
- Example: INTEGRATIONS_GUIDE.md#example-5-psycopg2-integration
π Documentation Cross-Reference
By Feature
CLI
- Primary Guide: CLI_GUIDE.md
- Release Notes: v0_3_0_RELEASE_NOTES.md
- Index: NEW_FEATURES_INDEX.md
- Main Index: index.md
Code Quality
- Primary Guide: CODE_QUALITY_GUIDE.md
- CLI Command:
quality - Python API:
analyze_codebase() - Release Notes: v0_3_0_RELEASE_NOTES.md
- Index: NEW_FEATURES_INDEX.md
Predictive Analysis
- Primary Guide: PREDICTIVE_ANALYSIS_GUIDE.md
- CLI Command:
predict - Python API:
PerformancePredictor,CapacityPlanner,ScalabilityAnalyzer,ResourceForecaster - Release Notes: v0_3_0_RELEASE_NOTES.md
- Index: NEW_FEATURES_INDEX.md
Code Churn
- Primary Guide: CODE_CHURN_GUIDE.md
- CLI Command:
churn - Python API:
generate_churn_report() - Release Notes: v0_3_0_RELEASE_NOTES.md
- Index: NEW_FEATURES_INDEX.md
Integrations
- Primary Guide: INTEGRATIONS_GUIDE.md
- Frameworks: Flask, FastAPI, Django, SQLAlchemy, psycopg2
- Release Notes: v0_3_0_RELEASE_NOTES.md
- Index: NEW_FEATURES_INDEX.md
π Feature Matrix
By Use Case
| Use Case | Feature | CLI | Python API | Guide |
|---|---|---|---|---|
| Find quality issues | Code Quality | quality |
analyze_codebase() |
CODE_QUALITY_GUIDE.md |
| Identify hotspots | Code Churn | churn |
generate_churn_report() |
CODE_CHURN_GUIDE.md |
| Predict problems | Predictive | predict |
PerformancePredictor |
PREDICTIVE_ANALYSIS_GUIDE.md |
| Trace web requests | Integrations | N/A | setup_*_tracing() |
INTEGRATIONS_GUIDE.md |
| Monitor database | Integrations | N/A | setup_*_tracing() |
INTEGRATIONS_GUIDE.md |
By Framework
| Framework | Integration | Setup | Guide |
|---|---|---|---|
| Flask | flask_integration.py |
setup_flask_tracing() |
INTEGRATIONS_GUIDE.md |
| FastAPI | fastapi_integration.py |
setup_fastapi_tracing() |
INTEGRATIONS_GUIDE.md |
| Django | django_integration.py |
Middleware | INTEGRATIONS_GUIDE.md |
| SQLAlchemy | sqlalchemy_integration.py |
setup_sqlalchemy_tracing() |
INTEGRATIONS_GUIDE.md |
| psycopg2 | psycopg2_integration.py |
setup_psycopg2_tracing() |
INTEGRATIONS_GUIDE.md |
π― Quick Navigation
I want toβ¦
Use CLI
β CLI_GUIDE.md
Analyze code quality
Predict performance issues
β PREDICTIVE_ANALYSIS_GUIDE.md
Find high-risk files
Integrate with my framework
See all new features
Read release notes
π Feature Statistics
Code Metrics
- Total New Modules: 9
- Total New Classes: 20+
- Total New Functions: 50+
- Total New Lines: 3,200+
Documentation
- Total New Guides: 6
- Total New Lines: 1,000+
- Total Documentation: 7,000+ lines
Module Sizes
cli.py: 850 linescode_quality.py: 633 linespredictive_analysis.py: 627 linescode_churn.py: 382 linesintegrations/: 5 modules, ~12,000 bytes
π Integration Points
CLI β Analysis Modules
cli.py
βββ quality command β code_quality.py
βββ predict command β predictive_analysis.py
βββ churn command β code_churn.py
CLI β Framework Integrations
cli.py
βββ trace/profile commands β integrations/*
Python API β Analysis Modules
code_quality.py β analyze_codebase()
predictive_analysis.py β generate_predictive_report()
code_churn.py β generate_churn_report()
Python API β Framework Integrations
integrations/
βββ flask_integration.py β setup_flask_tracing()
βββ fastapi_integration.py β setup_fastapi_tracing()
βββ django_integration.py β middleware
βββ sqlalchemy_integration.py β setup_sqlalchemy_tracing()
βββ psycopg2_integration.py β setup_psycopg2_tracing()
π Documentation Structure
docs/
βββ index.md (main index, updated)
βββ NEW_FEATURES_INDEX.md (new features overview)
βββ v0_3_0_RELEASE_NOTES.md (release notes)
βββ FEATURE_MAPPING.md (this file)
βββ CLI_GUIDE.md (CLI reference)
βββ CODE_QUALITY_GUIDE.md (quality analysis)
βββ PREDICTIVE_ANALYSIS_GUIDE.md (predictions)
βββ CODE_CHURN_GUIDE.md (churn analysis)
βββ INTEGRATIONS_GUIDE.md (framework integrations)
π Getting Started Paths
Path 1: CLI User
- Read CLI_GUIDE.md
- Try
callflow-tracer quality - Try
callflow-tracer churn - Try
callflow-tracer predict
Path 2: Python Developer
- Read NEW_FEATURES_INDEX.md
- Read CODE_QUALITY_GUIDE.md
- Use
analyze_codebase() - Integrate with your code
Path 3: Web Framework User
- Read INTEGRATIONS_GUIDE.md
- Choose your framework
- Call
setup_*_tracing() - Traces generated automatically
Path 4: Comprehensive Analysis
- Read NEW_FEATURES_INDEX.md
- Read all 6 guides
- Combine multiple analyses
- Generate comprehensive reports
π Support Resources
Documentation
- NEW_FEATURES_INDEX.md - Start here
- v0_3_0_RELEASE_NOTES.md - Whatβs new
- FEATURE_MAPPING.md - This file
Guides
- CLI_GUIDE.md
- CODE_QUALITY_GUIDE.md
- PREDICTIVE_ANALYSIS_GUIDE.md
- CODE_CHURN_GUIDE.md
- INTEGRATIONS_GUIDE.md
Main Documentation
- index.md - Main documentation index
Feature Mapping Guide - v0.3.0 Last Updated: 2025-01-15