The documentation for net/http/pprof explains how to create a 30-second CPU profiling session and analyze the outcome.
This allows me to initiate one or more HTTP requests and see the resulting CPU utilization of my web application.
I see a route for generating a heap profile, but since the profiling doesn't occur over something like a 30-second window, I'm unsure conceptually how this interacts with my web application.
How can I "coordinate" the heap profiler so that it corresponds with one or more HTTP requests?