gprof with emc2 2.4.7

More
17 Jul 2013 15:11 #36735 by yutingkao23
Hi,

I try this document to enable gprof profiling, and i already got data.

But I only got callgraph and call path, the execution time does not show out. Does anybody know what does it happen ?

Thanks.

Please Log in or Create an account to join the conversation.

More
17 Jul 2013 16:03 - 17 Jul 2013 18:53 #36739 by ArcEye
Replied by ArcEye on topic gprof with emc2 2.4.7
We have no idea what you are doing, so hard to say.

It is unlikely to work with anything other than a userspace program which exits normally according to the docs

In order to write the `gmon.out' file properly, your program must exit normally: by returning from main or by calling exit.


regards
Last edit: 17 Jul 2013 18:53 by ArcEye.
The following user(s) said Thank You: yutingkao23

Please Log in or Create an account to join the conversation.

More
21 Jul 2013 01:47 #36839 by yutingkao23
Replied by yutingkao23 on topic gprof with emc2 2.4.7
I just want to profile emc execution time and cycle, and especially emctask, gui, motion .... and so on.

Right now, I got some execution callgraph, but the execution time has some problems.

Please Log in or Create an account to join the conversation.

More
21 Jul 2013 16:51 #36855 by ArcEye
Replied by ArcEye on topic gprof with emc2 2.4.7
AFAIK you need to have a kernel built with readprofile support to be able to profile kernel modules

Since a lot of Linuxcnc comprises of realtime kernel modules, I don't know how much you are going to be able to do with gprof alone.

The more I read about gprof, the less it appears to be useful for much :P

regards

Please Log in or Create an account to join the conversation.

More
23 Jul 2013 23:30 #36948 by yutingkao23
Replied by yutingkao23 on topic gprof with emc2 2.4.7
Thanks for your help !

I think gprof is a view of compiler level, and compiler level is hard to profile linux kernel.

So, I think I should try different profiling view, such as Lttng (system wide).

BTW, oprofile is not support realtime module. When I start oprofile, it crush immediately.

Please Log in or Create an account to join the conversation.

Time to create page: 0.140 seconds
Powered by Kunena Forum