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 _______________________________________________ help-gnu-utils mailing list help-gnu-utils@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-utils