0

I'm optimizing some c++ code and have so far made good progress, but now I'm confused. When running the application in the XCode Time profiler the two largest functions combined only claim about 55% of the cycles, the rest is some 1-3%:ers totaling maybe 65% of the cpu cycles.

The code base is rather standard, a couple of thousand objects with virtual calls. Nothing special, no special patterns. Code style you've seen many times before.

Any tips or suggestions where they might have been used, or how to find out?

dutt
  • 7,909
  • 11
  • 52
  • 85
  • what profiler do you use? – cageman Sep 20 '14 at 13:02
  • The question indicates the problem. You're looking for functions that take lots of cycles. I suspect you mean exclusive time, which is the least useful. Plenty of people rely on [*this method*](http://stackoverflow.com/a/927773/23771), which is about getting a more complete understanding of *why* time is spent, not *where*. – Mike Dunlavey Sep 20 '14 at 13:04
  • @cageman The Time profiler, edited into the Q as well. – dutt Sep 20 '14 at 13:05
  • @MikeDunlavey Interesting read, I'll give that a try. – dutt Sep 20 '14 at 13:24

0 Answers0