Skip to main content

I don't understand these profiles - what is taking all the CPU-time?

4 replies [Last post]
biehl
Offline
Joined: 2003-06-19
Points: 0

Hi,

http://www2.binf.ku.dk/~biehl/profile1.jpg
http://www2.binf.ku.dk/~biehl/profile2.jpg

with data (for the netbeans 5 profiler)

http://www2.binf.ku.dk/~biehl/prof1.nps
http://www2.binf.ku.dk/~biehl/prof2.nps

I don't understand where all of the cpu-time is used? Is something not inlined? What can explain such a profile?

Thanks
Anders

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
iformanek
Offline
Joined: 2003-06-26
Points: 0

Hi Anders,
this is likely hitting a bug with the results calibration in the profiler. Are you able to give me access to the profiled application to be able to do some more testing?

-Ian

biehl
Offline
Joined: 2003-06-19
Points: 0

Yes - I can mail it to you tomorrow.

I have, however only, tried profiling it on one Win2k machine. I could try the profiler on linux? Do you have any suggestions?

Thanks
Anders

PS Is there any way I can generate the profile data-files in a "headless" way? Generate the files on a remote machine with no direct connection and then copy back the files for viewing in Netbeans?

Message was edited by: biehl

iformanek
Offline
Joined: 2003-06-26
Points: 0

Thanks.

Profiling on Linux would yield likely similar results. If you have access to Solaris machine you can try profiling there - the high resolution timer is more precise there. You can also try using the CPU timer (available in Custom profiling, if running on Solaris) - this will likely give more precise results, since this will count time spent on the CPU as opposed to a wall-clock time used by default in the profiling (which uses absolute timestamps, and does include time when the app threads are preempted by the OS).

As for getting the snapshots in a headless way, we do not provide this functionality now, but we have a prototype of this and it will be supported in the second profiler release (likely some early milestone of it).

biehl
Offline
Joined: 2003-06-19
Points: 0

Ok - installed the latest netbeans+profiler snapshot (beta2/m10) and now I get the expected results. Nice.