Flat profile: Each sample counts as 0.01 seconds. % cumulative self self total time seconds seconds calls ms/call ms/call name 25.00 0.04 0.04 47006 0.00 0.00 boost::filesystem::basic_path::operator/=(char const*) 18.75 0.07 0.03 1433645 0.00 0.00 boost::filesystem::basic_path::m_append(char) 12.50 0.09 0.02 40009 0.00 0.00 boost::enable_if >, boost::filesystem::basic_path::string_type>::type boost::filesystem::extension >(boost::filesystem::basic_path const&) 12.50 0.11 0.02 40009 0.00 0.00 std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::find(std::string const&) 12.50 0.13 0.02 1 20.00 159.99 finder(boost::filesystem::basic_path const&, std::map, std::allocator > >&, bool) 6.25 0.14 0.01 82348 0.00 0.00 std::string::size_type boost::filesystem::detail::leaf_pos(std::string const&, std::string::size_type) 6.25 0.15 0.01 40009 0.00 0.00 boost::filesystem::basic_path::leaf() const 6.25 0.16 0.01 2331 0.00 0.01 boost::filesystem::basic_directory_iterator >::m_init(boost::filesystem::basic_path const&) 0.00 0.16 0.00 82348 0.00 0.00 boost::filesystem::basic_directory_entry >::status() const 0.00 0.16 0.00 44670 0.00 0.00 boost::filesystem::basic_path::m_append_separator_if_needed() 0.00 0.16 0.00 44670 0.00 0.00 boost::filesystem::basic_directory_iterator >::increment() 0.00 0.16 0.00 42339 0.00 0.00 boost::filesystem::basic_path::remove_leaf() 0.00 0.16 0.00 38403 0.00 0.00 boost::filesystem::basic_path::file_string() const 0.00 0.16 0.00 36066 0.00 0.00 boost::enable_if >, unsigned long long>::type boost::filesystem::file_size >(boost::filesystem::basic_path const&) 0.00 0.16 0.00 2331 0.00 0.01 boost::filesystem::basic_directory_iterator >::basic_directory_iterator(boost::filesystem::basic_path const&) 0.00 0.16 0.00 2331 0.00 0.00 boost::detail::sp_counted_base::destroy() 0.00 0.16 0.00 2331 0.00 0.00 boost::detail::sp_counted_impl_p > >::dispose() 0.00 0.16 0.00 2331 0.00 0.00 boost::detail::sp_counted_impl_p > >::~sp_counted_impl_p() 0.00 0.16 0.00 2331 0.00 0.00 boost::detail::sp_enable_shared_from_this(boost::detail::shared_count const&, ...) 0.00 0.16 0.00 4 0.00 0.00 boost::enable_if >, bool>::type boost::filesystem::is_directory >(boost::filesystem::basic_path const&) 0.00 0.16 0.00 3 0.00 0.00 std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::insert_unique(std::pair const&) 0.00 0.16 0.00 3 0.00 0.00 std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::_M_insert(std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::pair const&) 0.00 0.16 0.00 2 0.00 0.00 boost::enable_if >, boost::filesystem::file_status>::type boost::filesystem::status >(boost::filesystem::basic_path const&) 0.00 0.16 0.00 1 0.00 0.00 global constructors keyed to _Z6finderRKN5boost10filesystem10basic_pathISsNS0_11path_traitsEEERSt3mapISs10file_statsSt4lessISsESaISt4pairIKSsS7_EEEb 0.00 0.16 0.00 1 0.00 0.00 __static_initialization_and_destruction_0(int, int) 0.00 0.16 0.00 1 0.00 0.00 std::_List_base, std::allocator > >::_M_clear() 0.00 0.16 0.00 1 0.00 0.00 std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::_M_erase(std::_Rb_tree_node >*) % the percentage of the total running time of the time program used by this function. cumulative a running sum of the number of seconds accounted seconds for by this function and those listed above it. self the number of seconds accounted for by this seconds function alone. This is the major sort for this listing. calls the number of times this function was invoked, if this function is profiled, else blank. self the average number of milliseconds spent in this ms/call function per call, if this function is profiled, else blank. total the average number of milliseconds spent in this ms/call function and its descendents per call, if this function is profiled, else blank. name the name of the function. This is the minor sort for this listing. The index shows the location of the function in the gprof listing. If the index is in parenthesis it shows where it would appear in the gprof listing if it were to be printed. Call graph (explanation follows) granularity: each sample hit covers 4 byte(s) for 6.25% of 0.16 seconds index % time self children called name [1] 100.0 0.00 0.16 main [1] 0.02 0.14 1/1 finder(boost::filesystem::basic_path const&, std::map, std::allocator > >&, bool) [2] 0.00 0.00 5/47006 boost::filesystem::basic_path::operator/=(char const*) [3] 0.00 0.00 4/4 boost::enable_if >, bool>::type boost::filesystem::is_directory >(boost::filesystem::basic_path const&) [27] 0.00 0.00 3/3 std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::insert_unique(std::pair const&) [28] 0.00 0.00 1/1 std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::_M_erase(std::_Rb_tree_node >*) [34] 0.00 0.00 1/1 std::_List_base, std::allocator > >::_M_clear() [33] ----------------------------------------------- 2330 finder(boost::filesystem::basic_path const&, std::map, std::allocator > >&, bool) [2] 0.02 0.14 1/1 main [1] [2] 100.0 0.02 0.14 1+2330 finder(boost::filesystem::basic_path const&, std::map, std::allocator > >&, bool) [2] 0.00 0.06 42339/44670 boost::filesystem::basic_directory_iterator >::increment() [4] 0.02 0.01 40009/40009 boost::enable_if >, boost::filesystem::basic_path::string_type>::type boost::filesystem::extension >(boost::filesystem::basic_path const&) [5] 0.00 0.02 2331/2331 boost::filesystem::basic_directory_iterator >::basic_directory_iterator(boost::filesystem::basic_path const&) [7] 0.02 0.00 40009/40009 std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::find(std::string const&) [9] 0.00 0.00 82348/82348 boost::filesystem::basic_directory_entry >::status() const [19] 0.00 0.00 36066/36066 boost::enable_if >, unsigned long long>::type boost::filesystem::file_size >(boost::filesystem::basic_path const&) [22] 2330 finder(boost::filesystem::basic_path const&, std::map, std::allocator > >&, bool) [2] ----------------------------------------------- 0.00 0.00 5/47006 main [1] 0.00 0.00 4662/47006 boost::filesystem::basic_directory_iterator >::m_init(boost::filesystem::basic_path const&) [8] 0.04 0.03 42339/47006 boost::filesystem::basic_directory_iterator >::increment() [4] [3] 43.8 0.04 0.03 47006 boost::filesystem::basic_path::operator/=(char const*) [3] 0.03 0.00 1433645/1433645 boost::filesystem::basic_path::m_append(char) [6] 0.00 0.00 44670/44670 boost::filesystem::basic_path::m_append_separator_if_needed() [20] ----------------------------------------------- 0.00 0.00 2331/44670 boost::filesystem::basic_directory_iterator >::m_init(boost::filesystem::basic_path const&) [8] 0.00 0.06 42339/44670 finder(boost::filesystem::basic_path const&, std::map, std::allocator > >&, bool) [2] [4] 42.6 0.00 0.07 44670 boost::filesystem::basic_directory_iterator >::increment() [4] 0.04 0.03 42339/47006 boost::filesystem::basic_path::operator/=(char const*) [3] 0.00 0.01 42339/42339 boost::filesystem::basic_path::remove_leaf() [12] 0.00 0.00 2331/2331 boost::detail::sp_counted_impl_p > >::dispose() [24] 0.00 0.00 2331/2331 boost::detail::sp_counted_impl_p > >::~sp_counted_impl_p() [25] 0.00 0.00 2331/2331 boost::detail::sp_counted_base::destroy() [23] ----------------------------------------------- 0.02 0.01 40009/40009 finder(boost::filesystem::basic_path const&, std::map, std::allocator > >&, bool) [2] [5] 21.8 0.02 0.01 40009 boost::enable_if >, boost::filesystem::basic_path::string_type>::type boost::filesystem::extension >(boost::filesystem::basic_path const&) [5] 0.01 0.00 40009/40009 boost::filesystem::basic_path::leaf() const [10] ----------------------------------------------- 0.03 0.00 1433645/1433645 boost::filesystem::basic_path::operator/=(char const*) [3] [6] 18.8 0.03 0.00 1433645 boost::filesystem::basic_path::m_append(char) [6] ----------------------------------------------- 0.00 0.02 2331/2331 finder(boost::filesystem::basic_path const&, std::map, std::allocator > >&, bool) [2] [7] 12.8 0.00 0.02 2331 boost::filesystem::basic_directory_iterator >::basic_directory_iterator(boost::filesystem::basic_path const&) [7] 0.01 0.01 2331/2331 boost::filesystem::basic_directory_iterator >::m_init(boost::filesystem::basic_path const&) [8] 0.00 0.00 2331/2331 boost::detail::sp_enable_shared_from_this(boost::detail::shared_count const&, ...) [26] ----------------------------------------------- 0.01 0.01 2331/2331 boost::filesystem::basic_directory_iterator >::basic_directory_iterator(boost::filesystem::basic_path const&) [7] [8] 12.8 0.01 0.01 2331 boost::filesystem::basic_directory_iterator >::m_init(boost::filesystem::basic_path const&) [8] 0.00 0.00 4662/47006 boost::filesystem::basic_path::operator/=(char const*) [3] 0.00 0.00 2331/44670 boost::filesystem::basic_directory_iterator >::increment() [4] 0.00 0.00 2331/38403 boost::filesystem::basic_path::file_string() const [21] ----------------------------------------------- 0.02 0.00 40009/40009 finder(boost::filesystem::basic_path const&, std::map, std::allocator > >&, bool) [2] [9] 12.5 0.02 0.00 40009 std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::find(std::string const&) [9] ----------------------------------------------- 0.01 0.00 40009/40009 boost::enable_if >, boost::filesystem::basic_path::string_type>::type boost::filesystem::extension >(boost::filesystem::basic_path const&) [5] [10] 9.3 0.01 0.00 40009 boost::filesystem::basic_path::leaf() const [10] 0.00 0.00 40009/82348 std::string::size_type boost::filesystem::detail::leaf_pos(std::string const&, std::string::size_type) [11] ----------------------------------------------- 0.00 0.00 40009/82348 boost::filesystem::basic_path::leaf() const [10] 0.01 0.00 42339/82348 boost::filesystem::basic_path::remove_leaf() [12] [11] 6.2 0.01 0.00 82348 std::string::size_type boost::filesystem::detail::leaf_pos(std::string const&, std::string::size_type) [11] ----------------------------------------------- 0.00 0.01 42339/42339 boost::filesystem::basic_directory_iterator >::increment() [4] [12] 3.2 0.00 0.01 42339 boost::filesystem::basic_path::remove_leaf() [12] 0.01 0.00 42339/82348 std::string::size_type boost::filesystem::detail::leaf_pos(std::string const&, std::string::size_type) [11] ----------------------------------------------- 0.00 0.00 82348/82348 finder(boost::filesystem::basic_path const&, std::map, std::allocator > >&, bool) [2] [19] 0.0 0.00 0.00 82348 boost::filesystem::basic_directory_entry >::status() const [19] 0.00 0.00 2/2 boost::enable_if >, boost::filesystem::file_status>::type boost::filesystem::status >(boost::filesystem::basic_path const&) [30] ----------------------------------------------- 0.00 0.00 44670/44670 boost::filesystem::basic_path::operator/=(char const*) [3] [20] 0.0 0.00 0.00 44670 boost::filesystem::basic_path::m_append_separator_if_needed() [20] ----------------------------------------------- 0.00 0.00 2/38403 boost::enable_if >, boost::filesystem::file_status>::type boost::filesystem::status >(boost::filesystem::basic_path const&) [30] 0.00 0.00 4/38403 boost::enable_if >, bool>::type boost::filesystem::is_directory >(boost::filesystem::basic_path const&) [27] 0.00 0.00 2331/38403 boost::filesystem::basic_directory_iterator >::m_init(boost::filesystem::basic_path const&) [8] 0.00 0.00 36066/38403 boost::enable_if >, unsigned long long>::type boost::filesystem::file_size >(boost::filesystem::basic_path const&) [22] [21] 0.0 0.00 0.00 38403 boost::filesystem::basic_path::file_string() const [21] ----------------------------------------------- 0.00 0.00 36066/36066 finder(boost::filesystem::basic_path const&, std::map, std::allocator > >&, bool) [2] [22] 0.0 0.00 0.00 36066 boost::enable_if >, unsigned long long>::type boost::filesystem::file_size >(boost::filesystem::basic_path const&) [22] 0.00 0.00 36066/38403 boost::filesystem::basic_path::file_string() const [21] ----------------------------------------------- 0.00 0.00 2331/2331 boost::filesystem::basic_directory_iterator >::increment() [4] [23] 0.0 0.00 0.00 2331 boost::detail::sp_counted_base::destroy() [23] ----------------------------------------------- 0.00 0.00 2331/2331 boost::filesystem::basic_directory_iterator >::increment() [4] [24] 0.0 0.00 0.00 2331 boost::detail::sp_counted_impl_p > >::dispose() [24] ----------------------------------------------- 0.00 0.00 2331/2331 boost::filesystem::basic_directory_iterator >::increment() [4] [25] 0.0 0.00 0.00 2331 boost::detail::sp_counted_impl_p > >::~sp_counted_impl_p() [25] ----------------------------------------------- 0.00 0.00 2331/2331 boost::filesystem::basic_directory_iterator >::basic_directory_iterator(boost::filesystem::basic_path const&) [7] [26] 0.0 0.00 0.00 2331 boost::detail::sp_enable_shared_from_this(boost::detail::shared_count const&, ...) [26] ----------------------------------------------- 0.00 0.00 4/4 main [1] [27] 0.0 0.00 0.00 4 boost::enable_if >, bool>::type boost::filesystem::is_directory >(boost::filesystem::basic_path const&) [27] 0.00 0.00 4/38403 boost::filesystem::basic_path::file_string() const [21] ----------------------------------------------- 0.00 0.00 3/3 main [1] [28] 0.0 0.00 0.00 3 std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::insert_unique(std::pair const&) [28] 0.00 0.00 3/3 std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::_M_insert(std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::pair const&) [29] ----------------------------------------------- 0.00 0.00 3/3 std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::insert_unique(std::pair const&) [28] [29] 0.0 0.00 0.00 3 std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::_M_insert(std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::pair const&) [29] ----------------------------------------------- 0.00 0.00 2/2 boost::filesystem::basic_directory_entry >::status() const [19] [30] 0.0 0.00 0.00 2 boost::enable_if >, boost::filesystem::file_status>::type boost::filesystem::status >(boost::filesystem::basic_path const&) [30] 0.00 0.00 2/38403 boost::filesystem::basic_path::file_string() const [21] ----------------------------------------------- 0.00 0.00 1/1 __do_global_ctors_aux [55] [31] 0.0 0.00 0.00 1 global constructors keyed to _Z6finderRKN5boost10filesystem10basic_pathISsNS0_11path_traitsEEERSt3mapISs10file_statsSt4lessISsESaISt4pairIKSsS7_EEEb [31] 0.00 0.00 1/1 __static_initialization_and_destruction_0(int, int) [32] ----------------------------------------------- 0.00 0.00 1/1 global constructors keyed to _Z6finderRKN5boost10filesystem10basic_pathISsNS0_11path_traitsEEERSt3mapISs10file_statsSt4lessISsESaISt4pairIKSsS7_EEEb [31] [32] 0.0 0.00 0.00 1 __static_initialization_and_destruction_0(int, int) [32] ----------------------------------------------- 0.00 0.00 1/1 main [1] [33] 0.0 0.00 0.00 1 std::_List_base, std::allocator > >::_M_clear() [33] ----------------------------------------------- 3 std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::_M_erase(std::_Rb_tree_node >*) [34] 0.00 0.00 1/1 main [1] [34] 0.0 0.00 0.00 1+3 std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::_M_erase(std::_Rb_tree_node >*) [34] 3 std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::_M_erase(std::_Rb_tree_node >*) [34] ----------------------------------------------- This table describes the call tree of the program, and was sorted by the total amount of time spent in each function and its children. Each entry in this table consists of several lines. The line with the index number at the left hand margin lists the current function. The lines above it list the functions that called this function, and the lines below it list the functions this one called. This line lists: index A unique number given to each element of the table. Index numbers are sorted numerically. The index number is printed next to every function name so it is easier to look up where the function in the table. % time This is the percentage of the `total' time that was spent in this function and its children. Note that due to different viewpoints, functions excluded by options, etc, these numbers will NOT add up to 100%. self This is the total amount of time spent in this function. children This is the total amount of time propagated into this function by its children. called This is the number of times the function was called. If the function called itself recursively, the number only includes non-recursive calls, and is followed by a `+' and the number of recursive calls. name The name of the current function. The index number is printed after it. If the function is a member of a cycle, the cycle number is printed between the function's name and the index number. For the function's parents, the fields have the following meanings: self This is the amount of time that was propagated directly from the function into this parent. children This is the amount of time that was propagated from the function's children into this parent. called This is the number of times this parent called the function `/' the total number of times the function was called. Recursive calls to the function are not included in the number after the `/'. name This is the name of the parent. The parent's index number is printed after it. If the parent is a member of a cycle, the cycle number is printed between the name and the index number. If the parents of the function cannot be determined, the word `' is printed in the `name' field, and all the other fields are blank. For the function's children, the fields have the following meanings: self This is the amount of time that was propagated directly from the child into the function. children This is the amount of time that was propagated from the child's children to the function. called This is the number of times the function called this child `/' the total number of times the child was called. Recursive calls by the child are not listed in the number after the `/'. name This is the name of the child. The child's index number is printed after it. If the child is a member of a cycle, the cycle number is printed between the name and the index number. If there are any cycles (circles) in the call graph, there is an entry for the cycle-as-a-whole. This entry shows who called the cycle (as parents) and the members of the cycle (as children.) The `+' recursive calls entry shows the number of function calls that were internal to the cycle, and the calls entry for each member shows, for that member, how many times it was called from other members of the cycle. Index by function name [31] global constructors keyed to _Z6finderRKN5boost10filesystem10basic_pathISsNS0_11path_traitsEEERSt3mapISs10file_statsSt4lessISsESaISt4pairIKSsS7_EEEb (finder-fs.cpp) [4] boost::filesystem::basic_directory_iterator >::increment() [26] boost::detail::sp_enable_shared_from_this(boost::detail::shared_count const&, ...) [32] __static_initialization_and_destruction_0(int, int) (finder-fs.cpp) [7] boost::filesystem::basic_directory_iterator >::basic_directory_iterator(boost::filesystem::basic_path const&) [21] boost::filesystem::basic_path::file_string() const [2] finder(boost::filesystem::basic_path const&, std::map, std::allocator > >&, bool) [11] std::string::size_type boost::filesystem::detail::leaf_pos(std::string const&, std::string::size_type) [10] boost::filesystem::basic_path::leaf() const [12] boost::filesystem::basic_path::remove_leaf() [30] boost::enable_if >, boost::filesystem::file_status>::type boost::filesystem::status >(boost::filesystem::basic_path const&) [19] boost::filesystem::basic_directory_entry >::status() const [20] boost::filesystem::basic_path::m_append_separator_if_needed() [5] boost::enable_if >, boost::filesystem::basic_path::string_type>::type boost::filesystem::extension >(boost::filesystem::basic_path const&) [33] std::_List_base, std::allocator > >::_M_clear() [6] boost::filesystem::basic_path::m_append(char) [22] boost::enable_if >, unsigned long long>::type boost::filesystem::file_size >(boost::filesystem::basic_path const&) [28] std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::insert_unique(std::pair const&) [3] boost::filesystem::basic_path::operator/=(char const*) [23] boost::detail::sp_counted_base::destroy() [9] std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::find(std::string const&) [27] boost::enable_if >, bool>::type boost::filesystem::is_directory >(boost::filesystem::basic_path const&) [24] boost::detail::sp_counted_impl_p > >::dispose() [34] std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::_M_erase(std::_Rb_tree_node >*) [8] boost::filesystem::basic_directory_iterator >::m_init(boost::filesystem::basic_path const&) [25] boost::detail::sp_counted_impl_p > >::~sp_counted_impl_p() [29] std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::_M_insert(std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::pair const&)