Monthly Archives: May 2012

3 posts

Checkout a specific commit in GIT

Many people may want to get a specific version of you working copy to lookup the detail information on it. So, how to? The way is simple: “git checkout commit [ — filename or directory]” Then you will find you in a special branch named “no branch”, you can add/modify […]

Profile with callgrind

SUMMARY There are still three articles about introducing the way to analyse a program. But today, I’ll show you another member: callgrind. It’s a tool which belongs to valgrind. WHY Sometimes maybe you encounter the issue as same as me: I don’t want to re-compile the program and the oprofile cannot work […]

Profile with gperftools

SUMMARY From the last two articles(profile with gprof, profile with oprofile), you may know some experiences of profile with C/C++ program. So let’s take a look at a new tool from google, called “gperftools“, full name is “Google performance tools”. What are the differences? We know gprof and oprofile, but why gperftools? […]