I just finished profiling a block of code which took up too much time. The code in question creates a large boost::graph from some std::vectors and a std::set, which are sorted and inserted into very many times. However, I was surprised to see that the majority of the time was not spent in sorting or inserting, but in std::_Iterator_base12::_Orphan_me
- 97.27% reported by AMD CodeAnalyst. What is this function? It seems to be called ~2200 times, the total runtime is ~30 seconds.
CodeAnalyst doesn't give me a very good call stack, and seems to cut names after 120 or so characters, which is no match for a boost template type. If there is a way to improve this (I'm quite new to CodeAnalyst), please say so and I might be able to give better information.