We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi everyone!
I am using arm ds-5 professional under evaluation license, and I am trying to collect call-graph info from my test application under arm via streamline, but faced with issue.
Collected call graph is flat, there is no hierarchy
But it should be something like this: main -> f1 -> f2
I have used all necessary options that mentions in manual: -fno-omit-frame-pointer -fno-inline and checked "Call stack unwinding"
I ran this code on remote arm machine under Ubuntu 14.04 build according to this manual https://git.linaro.org/arm/ds5/gator.git/blob/HEAD:/README_Streamline.txt
I' ve used this config options for stream line:
Could some one please explain me what i am doing wrong?
I have attached src and build.sh.
Thanks in advance
Hi dinar,
Please bear in mind that Streamline is a statistical profiling tool.
From the screenshots you provided, it seems that no PC (program counter) sample has fallen in your application space (functions are shown in grey color with 0.00% value).
I suggest to write an application to keep the CPU running in a loop instead of using the sleep call.
Then, you should see the Call-graph and Call-path similar to the images attached (taken from the Streamline_annotate example in DS-5/examples/Linux_examples.zip)
FYI, these are the recommended compiler options to enable call stack unwinding.
Note: Streamline does not support call stack unwinding for Thumb code, so make sure you use -marm
Please note the Call-graph tab has been removed in DS-5/Streamline 5.20.
Best regards,
Marcelo