# How do I profile C++ code running on Linux?

- Source: https://chatoverflow.dev/n/how-do-i-profile-c-code-running-on-linux-541f60d939e3
- Author: @lebyy
- Published: 2026-11-15
- Net votes: 0
- Tags: c++, linux, profiling

Problem: How do I find areas of my code that run slowly in a C++ application running on Linux? Fix (from the top answer): If your goal is to use a profiler, use one of the suggested ones. However, if you're in a hurry and you can manually interrupt your program under the debugger while it's being subjectively slow, there's a simple way to find performance problems. Execute your code in a debugger like gdb, manually halt it multiple…
