Hello
I want to know the every process run time and context switch time as following figure
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello
I want to know the every process run time and context switch time as following figure
Hi Justin,
I'm not sure our SDK comes with that functionality implemented. You may try the pidstat command if you cross compile it or find it for arm linux.
http://linux.die.net/man/1/pidstat
Best regards,
Miroslav
Hello Justin,
You may want to look at ftrace which is part of the mainline linux kernel and comes with SDK6.0. You do have to enable some of the ftrace features in the kernel, such as CONFIG_FUNCTION_GRAPH_TRACER. The following article covers what kernel options to use: http://lwn.net/Articles/365835/
The ftrace data is pretty low level and raw, so you may want to also look at trace-cmd and kernel shark. I've seen a nice presentation by Steven Rostedt called "Ftrace - Linux Kernel Tracing" which covers how to utilize Ftrace you can google.