Find expensive functions or memory allocations in deployed code and come up with ways to fix them.
Start with the
production profiling guide to understand how
Workers and Durable Objects profiling works.
Where possible, use the
CLI to capture profiles. If the user requests
, inspect the installed version's command help and schema where available.
If
isn't available, consider prompting the user whether they would like to install it.
The profiling API will return a pprof file which you can analyze directly, or using appropriate tools like Go's
utility.
Propose the smallest code change supported by the capture which resolves the issues identified.