Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Calculating total sleep time in a thread using the IDE: (6 Items)
   
Calculating total sleep time in a thread using the IDE  
I am looking for a tip on how to quickly calculate the total sleep time for a thread using the IDE. Any ideas?

Thanks,

Gervais
Re: Calculating total sleep time in a thread using the IDE  
In the System Information "Process Information" view, the thread details
pane has the thread "Start Time" and the total "CPU Time". You can do
this 

Current time - Start Time - CPU Time = ideal time

I don't know how accurate it is, just by theory.

-----Original Message-----
From: Gervais Mulongoy <community-noreply@qnx.com>
Reply-to: post60624@community.qnx.com
To: general-ide <post60624@community.qnx.com>
Subject: Calculating total sleep time in a thread using the IDE
Date: Mon, 26 Jul 2010 14:38:19 -0400 (EDT)

I am looking for a tip on how to quickly calculate the total sleep time for a thread using the IDE. Any ideas?

Thanks,

Gervais



_______________________________________________

General
http://community.qnx.com/sf/go/post60624

Re: Calculating total sleep time in a thread using the IDE  
  Hello Andy,

How about in the system profiler perspective, the system summary view 
section called "process & thread activity". There are two columns, one 
called Blocked Time and the other called Blocked Time (sum). I would 
image this keeps track of time spent blocked and also sleep states?

Thanks,

Gervais

On 07/26/10 14:46, Andy Jin wrote:
> In the System Information "Process Information" view, the thread details
> pane has the thread "Start Time" and the total "CPU Time". You can do
> this
>
> Current time - Start Time - CPU Time = ideal time
>
> I don't know how accurate it is, just by theory.
>
> -----Original Message-----
> From: Gervais Mulongoy<community-noreply@qnx.com>
> Reply-to: post60624@community.qnx.com
> To: general-ide<post60624@community.qnx.com>
> Subject: Calculating total sleep time in a thread using the IDE
> Date: Mon, 26 Jul 2010 14:38:19 -0400 (EDT)
>
> I am looking for a tip on how to quickly calculate the total sleep time for a thread using the IDE. Any ideas?
>
> Thanks,
>
> Gervais
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post60624
>
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post60626
>
Re: Calculating total sleep time in a thread using the IDE  
You can get statistics on how much your process spent in each state 
using statics view.
I don't have sys profiler handy to check exact name of the view but it 
should be somewhere...


Gervais Mulongoy wrote:
>   Hello Andy,
>
> How about in the system profiler perspective, the system summary view 
> section called "process & thread activity". There are two columns, one 
> called Blocked Time and the other called Blocked Time (sum). I would 
> image this keeps track of time spent blocked and also sleep states?
>
> Thanks,
>
> Gervais
>
> On 07/26/10 14:46, Andy Jin wrote:
>   
>> In the System Information "Process Information" view, the thread details
>> pane has the thread "Start Time" and the total "CPU Time". You can do
>> this
>>
>> Current time - Start Time - CPU Time = ideal time
>>
>> I don't know how accurate it is, just by theory.
>>
>> -----Original Message-----
>> From: Gervais Mulongoy<community-noreply@qnx.com>
>> Reply-to: post60624@community.qnx.com
>> To: general-ide<post60624@community.qnx.com>
>> Subject: Calculating total sleep time in a thread using the IDE
>> Date: Mon, 26 Jul 2010 14:38:19 -0400 (EDT)
>>
>> I am looking for a tip on how to quickly calculate the total sleep time for a thread using the IDE. Any ideas?
>>
>> Thanks,
>>
>> Gervais
>>
>>
>>
>> _______________________________________________
>>
>> General
>> http://community.qnx.com/sf/go/post60624
>>
>>
>>
>>
>>
>> _______________________________________________
>>
>> General
>> http://community.qnx.com/sf/go/post60626
>>
>>     
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post60635
>
>   
Re: Calculating total sleep time in a thread using the IDE  
  Thanks Elena I think this is this is the best option.

Cheers,

Gervais

On 07/26/10 15:31, Elena Laskavaia wrote:
> You can get statistics on how much your process spent in each state
> using statics view.
> I don't have sys profiler handy to check exact name of the view but it
> should be somewhere...
>
>
> Gervais Mulongoy wrote:
>>    Hello Andy,
>>
>> How about in the system profiler perspective, the system summary view
>> section called "process&  thread activity". There are two columns, one
>> called Blocked Time and the other called Blocked Time (sum). I would
>> image this keeps track of time spent blocked and also sleep states?
>>
>> Thanks,
>>
>> Gervais
>>
>> On 07/26/10 14:46, Andy Jin wrote:
>>
>>> In the System Information "Process Information" view, the thread details
>>> pane has the thread "Start Time" and the total "CPU Time". You can do
>>> this
>>>
>>> Current time - Start Time - CPU Time = ideal time
>>>
>>> I don't know how accurate it is, just by theory.
>>>
>>> -----Original Message-----
>>> From: Gervais Mulongoy<community-noreply@qnx.com>
>>> Reply-to: post60624@community.qnx.com
>>> To: general-ide<post60624@community.qnx.com>
>>> Subject: Calculating total sleep time in a thread using the IDE
>>> Date: Mon, 26 Jul 2010 14:38:19 -0400 (EDT)
>>>
>>> I am looking for a tip on how to quickly calculate the total sleep time for a thread using the IDE. Any ideas?
>>>
>>> Thanks,
>>>
>>> Gervais
>>>
>>>
>>>
>>> _______________________________________________
>>>
>>> General
>>> http://community.qnx.com/sf/go/post60624
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>>
>>> General
>>> http://community.qnx.com/sf/go/post60626
>>>
>>>
>>
>>
>>
>> _______________________________________________
>>
>> General
>> http://community.qnx.com/sf/go/post60635
>>
>>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post60636
>
Re: Calculating total sleep time in a thread using the IDE  
  Actually if I go under the system profiler summary view, refreshing 
the event owner statistics tab provides the information I was looking for.

The key was hitting refresh first to populate the view. That's what I 
was missing and so thought the information could be retrieved elsewhere.

Thanks again!

On 07/26/10 15:31, Elena Laskavaia wrote:
> You can get statistics on how much your process spent in each state
> using statics view.
> I don't have sys profiler handy to check exact name of the view but it
> should be somewhere...
>
>
> Gervais Mulongoy wrote:
>>    Hello Andy,
>>
>> How about in the system profiler perspective, the system summary view
>> section called "process&  thread activity". There are two columns, one
>> called Blocked Time and the other called Blocked Time (sum). I would
>> image this keeps track of time spent blocked and also sleep states?
>>
>> Thanks,
>>
>> Gervais
>>
>> On 07/26/10 14:46, Andy Jin wrote:
>>
>>> In the System Information "Process Information" view, the thread details
>>> pane has the thread "Start Time" and the total "CPU Time". You can do
>>> this
>>>
>>> Current time - Start Time - CPU Time = ideal time
>>>
>>> I don't know how accurate it is, just by theory.
>>>
>>> -----Original Message-----
>>> From: Gervais Mulongoy<community-noreply@qnx.com>
>>> Reply-to: post60624@community.qnx.com
>>> To: general-ide<post60624@community.qnx.com>
>>> Subject: Calculating total sleep time in a thread using the IDE
>>> Date: Mon, 26 Jul 2010 14:38:19 -0400 (EDT)
>>>
>>> I am looking for a tip on how to quickly calculate the total sleep time for a thread using the IDE. Any ideas?
>>>
>>> Thanks,
>>>
>>> Gervais
>>>
>>>
>>>
>>> _______________________________________________
>>>
>>> General
>>> http://community.qnx.com/sf/go/post60624
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>>
>>> General
>>> http://community.qnx.com/sf/go/post60626
>>>
>>>
>>
>>
>>
>> _______________________________________________
>>
>> General
>> http://community.qnx.com/sf/go/post60635
>>
>>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post60636
>