Re: How to get profile?
Chris Pickett <[email protected]>
| Newsgroups | gmane.comp.java.vm.sablevm.devel |
|---|---|
| Message-ID | <[email protected]> |
[email protected] wrote: > Hello Grzegorz, > > Sorry for late response. > > In the latest version sablevm1.1.7 I added --with-profiling=gprof to configure switch together with --with-obj-layout=traditional --with-threading=direct, after test, I got the following result which is the same as before. I can't trace the calls of subfunctions such as libsablevm.c, gc_copying, and etc. > > Flat profile: > Each sample counts as 0.01 seconds. > no time accumulated > % cumulative self self total > time seconds seconds calls Ts/call Ts/call name > 0.00 0.00 0.00 14 0.00 0.00 data_start > 0.00 0.00 0.00 2 0.00 0.00 getProperties > 0.00 0.00 0.00 1 0.00 0.00 parseConfig > 0.00 0.00 0.00 1 0.00 0.00 printVersionAndCopyright > ^L > Call graph > > granularity: each sample hit covers 4 byte(s) no time propagated > index % time self children called name > 0.00 0.00 14/14 main [18] > [1] 0.0 0.00 0.00 14 data_start [1] > ----------------------------------------------- > 0.00 0.00 2/2 parseConfig [3] > [2] 0.0 0.00 0.00 2 getProperties [2] > ----------------------------------------------- > 0.00 0.00 1/1 main [18] > [3] 0.0 0.00 0.00 1 parseConfig [3] > 0.00 0.00 2/2 getProperties [2] > ----------------------------------------------- > 0.00 0.00 1/1 main [18] > [4] 0.0 0.00 0.00 1 printVersionAndCopyright [4] > ----------------------------------------------- > ^L > Index by function name > [1] data_start [3] parseConfig (gmon-start.c) > [2] getProperties (gmon-start.c) [4] printVersionAndCopyright (gmon-start.c) > > Could you help me find out where I had made the mistake ? gprof doesn't work with multithreaded programs, and I couldn't get it to work even with the multithreading workaround (I wrote about this earlier, on October 26th). Please try with qprof and libunwind and get back to us. Cheers, Chris