Linux Perf Examples

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • pmu-tools

    Intel PMU profiling tools

  • Toplev is a godsend (thank you Andi Kleen!). If you work with perf you'll love this.

    https://github.com/andikleen/pmu-tools

  • FlameGraph

    Stack trace visualizer

  • > [...] how Perf compares to vendor tools like vTune [...] ?

    Regarding the hardware events that Perf can capture on x86, it has pretty much all of them. So it should be equivalent to vTune for all practical purposes.

    The big difference is in the UI -- or absence thereof. Perf is a low-level tool and its output is mostly text files. There is a curses-based TUI for perf-report (and even gtk version, but it is essentially the same as the TUI, just using GTK2 widgets), but that's about it.

    By contrast, vTune comes with a heavy (electron-based?) GUI and is quite helpful in guiding beginners, with many graphs and explanations.

    Of course, one can (and is expected to) complement Perf with an assortment of tools that process its output for visualization. For example, the flamegraph [1] and heat map [2] tools described in the article. But also KDAB hotspot [3] or HPerf for a vTune-style perf-report.

    [1] https://github.com/brendangregg/FlameGraph

    [2] https://github.com/brendangregg/HeatMap

    [3] https://github.com/KDAB/hotspot

    [4] https://www.poirrier.ca/hperf/

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • HeatMap

    Heat map generation tools (by brendangregg)

  • > [...] how Perf compares to vendor tools like vTune [...] ?

    Regarding the hardware events that Perf can capture on x86, it has pretty much all of them. So it should be equivalent to vTune for all practical purposes.

    The big difference is in the UI -- or absence thereof. Perf is a low-level tool and its output is mostly text files. There is a curses-based TUI for perf-report (and even gtk version, but it is essentially the same as the TUI, just using GTK2 widgets), but that's about it.

    By contrast, vTune comes with a heavy (electron-based?) GUI and is quite helpful in guiding beginners, with many graphs and explanations.

    Of course, one can (and is expected to) complement Perf with an assortment of tools that process its output for visualization. For example, the flamegraph [1] and heat map [2] tools described in the article. But also KDAB hotspot [3] or HPerf for a vTune-style perf-report.

    [1] https://github.com/brendangregg/FlameGraph

    [2] https://github.com/brendangregg/HeatMap

    [3] https://github.com/KDAB/hotspot

    [4] https://www.poirrier.ca/hperf/

  • hotspot

    The Linux perf GUI for performance analysis.

  • > [...] how Perf compares to vendor tools like vTune [...] ?

    Regarding the hardware events that Perf can capture on x86, it has pretty much all of them. So it should be equivalent to vTune for all practical purposes.

    The big difference is in the UI -- or absence thereof. Perf is a low-level tool and its output is mostly text files. There is a curses-based TUI for perf-report (and even gtk version, but it is essentially the same as the TUI, just using GTK2 widgets), but that's about it.

    By contrast, vTune comes with a heavy (electron-based?) GUI and is quite helpful in guiding beginners, with many graphs and explanations.

    Of course, one can (and is expected to) complement Perf with an assortment of tools that process its output for visualization. For example, the flamegraph [1] and heat map [2] tools described in the article. But also KDAB hotspot [3] or HPerf for a vTune-style perf-report.

    [1] https://github.com/brendangregg/FlameGraph

    [2] https://github.com/brendangregg/HeatMap

    [3] https://github.com/KDAB/hotspot

    [4] https://www.poirrier.ca/hperf/

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts