An unofficial, read-only Hacker News reader.

Worshipping at the altar of Brendan Gregg (opens external site)

241 points by kqr 5 days ago | fzakaria.com | 47 comments on HN

View full thread · View on Hacker News

Comment thread (3)

  1. I struggle with measuring performance. I cannot run such tools in prod envs. Not even in dev envs, only locally. This is because only platform engs have prod access.

    But everything usually looks fine on local env, and can’t really replicate the intricacies of prod locally. How do you guys do it?

    Replies (2)
    1. They should still be able to provide you with traces from prod even if you can't directly access the systems. Most of perf work is analyzing, not collecting.
    2. You can collect profiles from your production environment using some sort of continuous profiler, like Grafana Alloy or the OTel profiler. We actually built https://github.com/yandex/perforator specifically to profile everything we can reach.

      This thing also greatly helps when exploring unfamiliar codebases. You can just open a flame graph in a few clicks and see what the program actually does.