 |
Optimizing C/C++ programs using the GProf profiler |
Post date: May 24, 2005, 18:05 Category: Views: 2337 Comments: 0 |
Tutorial quote: One of the most important things to keep in mind while optimizing an application is: optimize where it counts. It is no use to spend hours optimizing a piece of code that usually runs for only 0.04 seconds anyway.
GProf provides a surprisingly easy way to profile your C/C++ application and spot the interesting pieces right away. A small case study shows how GProf was used to reduce the running time of a real-world application from over 3 minutes to under 5 seconds, by identifying 2 data structures as important and optimizing those.
Historically, the program goes back as far as 1982, when it was introduced on the the SIGPLAN Symposium on Compiler Construction. It is now a standard tool available on virtually all flavors of UNIX. |
CommentsCurrently there are 0 comment(s) for this tutorial. You can post a comment using the form below.
|
|