Profiling an embedded application

I have an application that runs on an embedded processor (ARM), and I would like to profile the application to get an idea of ​​where it uses system resources such as CPU, memory, IO, etc. The application runs on top of Linux, so I assume there are a number of profiling applications. Anyone have any suggestions?

Thank!

edit: I also have to add the version of Linux that we use is somewhat old (2.6.18). Unfortunately, I do not have much control over this right now.

+5
source share
4 answers

, gprof valgrind. OProfile. ++ ( ), ( ) , sashang. . Embedded ++.

+2

Linux , gprof valgrind

+2
0

gprof may disappoint you.

Assuming that the program under test is large enough to be useful, it is possible that the call tree can be trimmed, so the best optimization options are calls to functions / methods that you can remove or avoid. This link shows a good way to find them.

Many people approach this as a hierarchical process of measuring measurement time. Or you can just catch him in the act, which I do.

0
source

All Articles