1

I saw that the libstdc++ Profile Mode has been deprecated recently (see GCC 7 changes).

I just know that the Profile Mode provides some useful suggestions about the usage of c++ standard library. But since it is deprecated, how to get similar suggestions instead?

Eddy Xiao
  • 273
  • 2
  • 8

1 Answers1

1

I'd suggest looking at Callgrind and KCacheGrind as UI. A quick search presented these results:

Community
  • 1
  • 1
ovanes
  • 5,483
  • 2
  • 34
  • 60
  • General profiling is quite different. Libstdc++'s profile mode was specifically about the library, looking for instance at your pattern of insert/remove/traversal in each std::list, and suggesting to replace it with std::vector or std::deque if it would better fit that pattern. – Marc Glisse May 03 '17 at 22:14