Aussie AI
Linux C++ Profilers
-
Book Excerpt from "Generative AI in C++"
-
by David Spuler, Ph.D.
Linux C++ Profilers
When improving a program’s performance, it is useful to know where the speed bottlenecks are. There is a saying that 90% of the time is spent in 10% of the code. Hence, any speed improvement should aim to speed up the functions that are most frequently used. The programmer can often tell where the program is spending most of its time (e.g. where one function is called by all others), but it is useful to have a software tool to analyze exactly where the program is spending its time.
Most implementations of C++
come with a software tool called a “profiler” which is used to examine the performance of
the program.
There are also a variety of commercial C++ performance profiling tools available to purchase.
The most commonly used free profilers on Linux are prof
, pixie
and gprof
.
• Next: • Up: Table of Contents |
The new AI programming book by Aussie AI co-founders:
Get your copy from Amazon: Generative AI in C++ |