Skip to contentSkip to conversation

CPU usage on OMAP5912

DISCUSSION Duong Thanh Nguyen 3 participants 3 messages Oct 8, 2006 – Oct 9, 2006

lore
Share & tools
lore
#0 lore raw

Hello everyone,

I have a question, when i run a program on OMAP5912, kernel Linux. I want to know how much CPU percent and Memory of OMAP, that my program uses. I stuck at this point for a long time. Does anyone know how? Can i write a C function in my program to show these infomation?

Thanks you so much,
Thanh Nguyen

---------------------------------
Yahoo! 360° – Bloggen und Leute treffen. Erstellen Sie jetzt Ihre eigene Seite – kostenlos!.

#1 lore raw
Quoted 5 lines · ext Duong Thanh Nguyen

Hello everyone,

I have a question, when i run a program on OMAP5912, kernel Linux. I want to know
how much CPU percent and Memory of OMAP, that my program uses. I stuck at this point for a long time. Does anyone know how? Can i write a C function in my program to show these infomation

Why don't you use top? That shows a percentage of memory usage and cpu usage.

Cheers,
Kai

#2 lore raw

Hi,

I have tried "top" and "ps" on that(with Busybox 1.1.3), but is lack of option. Is there anyway to crosscompile a "top" cmd with full option (like on PC) for the OMAP5912 ?

And when I have tried this way, there are other problem that: I can't use a cmd like:

----------------------

Quoted 2 lines

./myapplication &
top >> statfile

----------------------

Do anyone know why dose the "&" not work? Do I must configure the Kernel?

Any help are precious,

Thanh Nguyen

P/S: sorry about my bad english

-----Ursprüngliche Nachricht-----
Von: linux-omap-open-source-bounces+duongthanh.nguyen=de.bosch.com@linux.omap.com [mailto:linux-omap-open-source-bounces+duongthanh.nguyen=de.bosch.com@linux.omap.com] Im Auftrag von Kai Svahn
Gesendet: Montag, 9. Oktober 2006 08:29
An: [email protected]
Cc: [email protected]
Betreff: Re: CPU usage on OMAP5912

Quoted 6 lines · ext Duong Thanh Nguyen

Hello everyone,

I have a question, when i run a program on OMAP5912, kernel Linux. I want to know how much CPU percent and Memory of OMAP, that my program uses. I stuck at this point for a long time. Does anyone know how? Can i write a C function in my program to show these infomation

Why don't you use top? That shows a percentage of memory usage and cpu usage.

Cheers,
Kai

_______________________________________________
Linux-omap-open-source mailing list
[email protected]
http://linux.omap.com/mailman/listinfo/linux-omap-open-source