2 ms·
One thing I've found that I've found super helpful for this is converting profiling results to Markdown and feeding it back into the agent in a loop. I've done
by michaelmior 6mo ago
One thing I've found that I've found super helpful for this is converting profiling results to Markdown and feeding it back into the agent in a loop. I've done it with a bit of manual orchestration, but it could probably be automated pretty well. Specifically, pprof-rs[0] and pprof-to-md[1] have worked pretty well for me, YMMV.
[0] https://github.com/tikv/pprof-rs https://github.com/tikv/pprof-rs
[1] https://github.com/platformatic/pprof-to-md https://github.com/platformatic/pprof-to-md
- saagarjha 6mo agoYes but the problem is that the agent reads the profile and doesn't seem to really understand how to improve things. For example, it will see "cycles are spent in GC" and make up a bunch of reasons why that might be happening.