Profiler

Last modified: 12 November 2021

OS: macOS / Linux / WSL

Required tools: Perf on Linux and WSL / DTrace on macOS

Project format: CMake / Gradle

Toolchain: Local / Remote (Linux only) / WSL

With CLion's CPU profiler integration, you can analyze the metrics of performance collected for your application (both kernel and user's code). The profiler is available on Linux and macOS, and the implementation is based on the Perf and DTrace tools respectfully.

Perf and DTrace use sampling at a fixed rate to interrupt the application and collect program counter and stack traces, which are then translated into profiling reports. Such reports can be long and difficult to analyze, so CLion provides visualization for the profiler's output data.