gprof with emc2 2.4.7
- yutingkao23
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
17 Jul 2013 15:11 #36735
by yutingkao23
gprof with emc2 2.4.7 was created 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.
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.
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
regards
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.
- yutingkao23
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
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.
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.
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 :P](/media/kunena/emoticons/tongue.png)
regards
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 :P](/media/kunena/emoticons/tongue.png)
regards
Please Log in or Create an account to join the conversation.
- yutingkao23
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
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.
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.070 seconds