Profiling
Domain: Agentic Coding
π― Motivation
Measuring where a program spends time and memory. The agent profiles to find optimization targets.
π Concrete Example
Profile output: βfunction A: 2.5s (50%), function B: 1.5s (30%), function C: 0.5s (10%). Optimize A first - it is the bottleneck.β Data-driven optimization.
π Analogy
A time-and-motion study - you watch workers and time each task. βMaking coffee takes 5 minutes; filing takes 1 minute.β Optimize the slow tasks. Profiling times code functions.