Performance Profiling
When to use
Use when notebooks run slowly or memory spikes occur.
Inputs
- •Notebook path
- •Target cells or sections
Steps
- •Time each target cell or section.
- •Capture peak memory usage if available.
- •Identify hotspots and annotate causes.
- •Propose focused optimizations.
Outputs
- •Timing/memory report
- •Ranked hotspots
Failure conditions
- •Runtime or memory exceeds defined limits