http://qs321.pair.com?node_id=640935


in reply to DProf output of named functions.

why are there some function calls being performed on some OSes but not on others? Or are some irrelevant enough that they are simply not being listed?

It's the latter. By default dprofpp will list only the top 15 function calls.

I normally wouldn't expect profiling results to be exactly the same across architectures for several reasons.

  1. Profiling results can vary from run to run as it is.
  2. The timings are based on user+system time. User time is the time spent in your code and system time is the time spent in the OS serving your code. When you open and read a file, for instance, the OS is doing that work, and the time it spends doing that counts as system time. Each OS might spend different amounts of time on the same calls based on differences between them.
  3. Each OS may have its own limits on how well it can measure time at all (i.e., precision, granularity). Compounded measurement errors could be skewing results.
  4. Without seeing the code, I don't know, but it's possible that there is some branching according to OS. I don't know why that would be the case for you, but it's certainly possible in general.