Go back to fronty page View most popular entries View latest additions Submit tutorials to UnixTutorials.info
UnixTutorials logo
Unix+clones 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.

Comments

Currently there are 0 comment(s) for this tutorial. You can post a comment using the form below.


Your name/nick: Remember this?
Comment:

Allowed HTML tags:

<b>text</b>
<i>text</i>
<u>text</u>
Please solve math question below:

HIC         KBB      
  E    D    2     SLT
R6T   1A4   39C      
Q      E      Q   TD8
T65         JH4      
Website Python Coding Tutorial Solution For Every Bookie Gambling Player.