You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mynewt.apache.org by will sanfilippo <wi...@runtime.io> on 2016/02/04 19:08:38 UTC

Taskstats display on newtmgr

Below is a sample output from taskstats on newtmgr. I have a suggested change (see below) for displaying stack.

Current output:
wes@~/tmp/ble_capture/scan$ newtmgr -cusbA6 taskstats
Return Code = 0
  idle (prio=255 tid=0 runtime=102525 cswcnt=4070 stksize=32 stkusage=17 last_checkin=0 next_checkin=0)
  shell (prio=3 tid=1 runtime=0 cswcnt=9 stksize=256 stkusage=57 last_checkin=0 next_checkin=0)
  newtmgr (prio=4 tid=2 runtime=1 cswcnt=4 stksize=448 stkusage=125 last_checkin=0 next_checkin=0)
  bletest (prio=2 tid=3 runtime=6 cswcnt=4103 stksize=256 stkusage=125 last_checkin=0 next_checkin=0)
  ble_hs (prio=1 tid=4 runtime=579 cswcnt=2092 stksize=256 stkusage=156 last_checkin=0 next_checkin=0)
  ble_ll (prio=0 tid=5 runtime=26 cswcnt=264 stksize=256 stkusage=49 last_checkin=0 next_checkin=0)


Proposed change:

wes@~/tmp/ble_capture/scan$ newtmgr -cusbA6 taskstats
Return Code = 0
  idle (prio=255 tid=0 runtime=102525 cswcnt=4070 stack: 17/32 (53%) last_checkin=0 next_checkin=0)


this could also possibly be this (but I prefer the first one)

wes@~/tmp/ble_capture/scan$ newtmgr -cusbA6 taskstats
Return Code = 0
  idle (prio=255 tid=0 runtime=102525 cswcnt=4070 stack (used/size): 17/32 (53%) last_checkin=0 next_checkin=0)

Comments?

Re: Taskstats display on newtmgr

Posted by Justin Mclean <ju...@classsoftware.com>.
Hi,

You may want to add as an option a format that a little more parseable by computers? i.e. JSON or CSV or similar. That way various tools (IDEs, logging) etc could take advantage of it.

Thanks,
Justin

Re: Taskstats display on newtmgr

Posted by will sanfilippo <wi...@runtime.io>.
My vote would be ms 

> On Feb 4, 2016, at 8:19 PM, Sterling Hughes <st...@apache.org> wrote:
> 
> 
>> Proposed change:
>> 
>> wes@~/tmp/ble_capture/scan$ newtmgr -cusbA6 taskstats
>> Return Code = 0
>>   idle (prio=255 tid=0 runtime=102525 cswcnt=4070 stack: 17/32 (53%) last_checkin=0 next_checkin=0)
>> 
> 
> +1 for this one.  Do you think that runtime should be displayed in increments of os_time_tick or ms?  Today they are the same thing, but what should the unit display be.
> 
>> 
>> this could also possibly be this (but I prefer the first one)
>> 
>> wes@~/tmp/ble_capture/scan$ newtmgr -cusbA6 taskstats
>> Return Code = 0
>>   idle (prio=255 tid=0 runtime=102525 cswcnt=4070 stack (used/size): 17/32 (53%) last_checkin=0 next_checkin=0)
>> 
>> Comments?
>> 


Re: Taskstats display on newtmgr

Posted by Sterling Hughes <st...@apache.org>.
> Proposed change:
>
> wes@~/tmp/ble_capture/scan$ newtmgr -cusbA6 taskstats
> Return Code = 0
>    idle (prio=255 tid=0 runtime=102525 cswcnt=4070 stack: 17/32 (53%) last_checkin=0 next_checkin=0)
>

+1 for this one.  Do you think that runtime should be displayed in 
increments of os_time_tick or ms?  Today they are the same thing, but 
what should the unit display be.

>
> this could also possibly be this (but I prefer the first one)
>
> wes@~/tmp/ble_capture/scan$ newtmgr -cusbA6 taskstats
> Return Code = 0
>    idle (prio=255 tid=0 runtime=102525 cswcnt=4070 stack (used/size): 17/32 (53%) last_checkin=0 next_checkin=0)
>
> Comments?
>