Thanks, Ludovic. I’ve created 
https://bugzilla.xamarin.com/show_bug.cgi?id=41294 with sample code. I’ve also 
verified that it works as expected with mono 3.12, so it sounds like your 
explanation is correct.

chris


From: Ludovic Henry [mailto:[email protected]]
Sent: Tuesday, May 24, 2016 5:46 AM
To: Chris Swiedler <[email protected]>; mono-devel-list 
<[email protected]>
Subject: Re: [Mono-dev] Reading threadpool performance counters

Hi Chris,

I don't think we are keeping this counters up to date in the threadpool. Some 
of them are kept up to date, but as we imported the threadpool implementation 
from referencesources since 4.2, we must have missed this performance counter. 
So you are certainly not doing something wrong.

If you want, you should fill a bug with the information you have so we have a 
look at it as soon as possible.

Thank you very much,
Ludovic

On Mon, May 23, 2016 at 11:59 PM Chris Swiedler 
<[email protected]<mailto:[email protected]>> wrote:
Per https://bugzilla.xamarin.com/show_bug.cgi?id=1772 I've been trying to get 
Mono threadpool metrics with lines like this:

    m_workItemsAdded = new PerformanceCounter("Mono Threadpool", "Work Items 
Added", Process.GetCurrentProcess().Id.ToString());

However, the counter I get back always has its value set to zero. Are these 
threadpool counters still supported? Am I doing something wrong? This is using 
mono 4.2.3.

Thanks,
chris
_______________________________________________
Mono-devel-list mailing list
[email protected]<mailto:[email protected]>
http://lists.ximian.com/mailman/listinfo/mono-devel-list
_______________________________________________
Mono-devel-list mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to