help-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gprof information


From: Christian Christmann
Subject: gprof information
Date: Fri, 04 Aug 2006 17:02:28 +0200
User-agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.)

Hi,

I started profiling my C++ programs with gprof. The programs
consist of several libraries where STL containers are heavily
used.

The flat profile of an analysed program begins with the
following entries:
Each sample counts as 0.01 seconds.
  %   cumulative   self              self     total
 time   seconds   seconds    calls   s/call   s/call  name
 32.05      3.25     3.25     1037     0.00     0.00  
std::_List_iterator_base::_List_iterator_base(std::_List_node_base*)
 15.48      4.82     1.57        1     1.57     1.57  
std::_List_iterator_base::operator==(std::_List_iterator_base const&) const
 15.09      6.35     1.53       44     0.03     0.03  
std::_List_iterator_base::_M_incr()
 13.51      7.72     1.37      279     0.00     0.00  
std::_List_iterator_base::operator!=(std::_List_iterator_base const&) const
  9.67      8.70     0.98        1     0.98     0.98  
std::operator|(std::_Ios_Openmode, std::_Ios_Openmode)
  4.49      9.16     0.46    51618     0.00     0.00  
std::_Rb_tree_base_iterator::_Rb_tree_base_iterator()

This indicates that most of the execution time is spent
using STL list iterators. However, I still could not
figure out exactly which iterators (and in which functions)
are meant by that. Are there any options to specify gprof's
output in order to get to know which STL iterators are
meant in detail?

Thank you.
Chris


reply via email to

[Prev in Thread] Current Thread [Next in Thread]