Z W
2007-Dec-18 19:52 UTC
[dtrace-discuss] Newbie - Timestamp, process_id , thread_id, cpu_usage
Hi Gurus I''m new to DTrace and in need help to solve a small problem. Could you help sharing be showing a DTrace example and outputs on display these information of a process ? I''m hoping to print out a display similar to this below: Timestamp, process_id , thread_id, cpu_usage% 111111111, 1 , 5 , 10 Any help is appreciated. -- This message posted from opensolaris.org
Alexander Kolbasov
2007-Dec-18 20:15 UTC
[dtrace-discuss] Newbie - Timestamp, process_id , thread_id, cpu_usage
> Hi Gurus > > I''m new to DTrace and in need help to solve a small problem. > Could you help sharing be showing a DTrace example and outputs on display > these information of a process ? I''m hoping to print out a display similar to this below: > > Timestamp, process_id , thread_id, cpu_usage% > 111111111, 1 , 5 , 10 > > Any help is appreciated.You can do something like this with DTrace, but you don''t have to. You can either use existing tools [like prstat(1M)] or write your own /proc reader. I can send you an example in Perl if you need one. - akolb