LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Memory profiler (http://www.linuxquestions.org/questions/programming-9/memory-profiler-717195/)

ash5 04-06-2009 11:00 AM

Memory profiler
 
Hi All,

I need to work on writing a memory profiler for an embedded system that runs a linux kernel.
Can someone guide me how do I start going about it?
What are the necessary kernel functions that I will be needing to start with? Are there any hardware dependencies?

I have worked with Valgrind on a PC but this is a huge code to port to my requirement.

I appreciate if someone could guide me to some links that can help me.

Thanks in advance
- ash5

paulsm4 04-07-2009 10:45 PM

It's *extremely* unlikely that you "... need to write a memory profiler for an embedded system that runs a linux kernel".

If you've got a Linux kernel ... then you've probably got a memory profiler ... for FREE.

More specifically, you've got a CHOICE of many DIFFERENT profiling and performance analysis tools for free.

"Free" as in "you don't have to re-invent the wheel" (vs "freedom", "beer" or skittles ;-))

SUGGESTION:
Buy either of these two (most excellent!) books. They'll literally pay for themselves within a page or two. Honest!

"Building Embedded Linux Systems", Yahgmour et al
http://www.amazon.com/Building-Embed...dp/0596529686/

"Embedded Linux Primer", Hallinan
http://www.amazon.com/Embedded-Linux...dp/0131679848/

'Hope that helps .. PSM


All times are GMT -5. The time now is 01:15 PM.