Basics of performance profiling for C/C++