[Mono-dev] Performance counters are not working under linux mono platform

Gonzalo Paniagua Javier gonzalo.mono at gmail.com
Fri Feb 10 17:06:45 UTC 2012


On Fri, Feb 10, 2012 at 5:55 AM, balaji <balajit at amiindia.co.in> wrote:
>
>
> HI Gonzalo ,
>
>   Thanks for the info..
>
> Can you clarify the following....
>
>>>>Is there any possibility to get performance counter values for non-mono
> specific processes of a linux machine through C# program.
>
>  i have tried to get performance counter values for a mono process....some
> how i was successful but not for other processes
>  running under linux.
>
> In mono release note under performance counters they mention that
>
> "performance counters will work only with in the mono process but not across
> the processes" what is it mean?

It means that only mono processes are able to produce the performance
counters. If you provide a PID of another process, everything will be
0. However, you could see how Mono generates some of those performance
counters (number of threads, memory) and do the same. Some of that
data comes from /proc/[PID] or similar.

-Gonzalo


More information about the Mono-devel-list mailing list