Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: DProf output of named functions.

by kyle (Abbot)
on Sep 25, 2007 at 13:54 UTC ( #640935=note: print w/replies, xml ) Need Help??

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.

Replies are listed 'Best First'.
Re^2: DProf output of named functions.
by djp (Hermit) on Sep 27, 2007 at 03:58 UTC
    5. Underlying compilers, libraries, instruction sets, and hardware.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://640935]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (6)
As of 2023-11-29 22:51 GMT
Find Nodes?
    Voting Booth?

    No recent polls found