Tools and techniques for measuring worker CPU time?

I’d like to get a better understanding of CPU time consumption for my worker - it supports a variety of API end points and CPU time varies significantly.

What tools or techniques would you recommend for measuring this?

I’m aware of Chrome profiling, but it’s so flaky it hangs constantly. Is there a better way? Can the data be captured or reported at the request level anywhere in the Cloudflare platform?