Hello Mclyn, some links that might be useful: https://bugzilla.xamarin.com/show_bug.cgi?id=1772 "You need to specify the instance name of the performance counter. For process-based counters this is the pid of the process: counter.InstanceName = Process.GetCurrentProcess().Id.ToString();"
see also that thread: http://lists.ximian.com/pipermail/mono-devel-list/2012-February/038577.html http://www.mono-project.com/Release_Notes_Mono_2.0#Performance_Counters_Implementation "Currently the counters can only be read from the same process, there is no setup to share across processes." Timotheus On 17 January 2014 10:08, Mclyn Dimaculangan <[email protected]> wrote: > Hi Sir/Madam: > > > Our team created a small tool that records performance (processor and memory > usage) of certain processes related to our application. > We created the tool using C# and we uses the PerformanceCounter built-in on > Windows to monitor the processes running on a virtual machine. > Fortunately, the tool perfectly works when we ran it under Windows 7 and the > remote machines are on Windows XP. > > However, the problem arises when we run the tool under a Linux/Mono > environment. The tool did run also but, the performance counters are always > returning zero results. Are performance counters supported on Linux/Mono? Or > do we need to do extra steps (installing or configuring something on our > Linux/Mono machine) to make it work? > > Any help will be very much appreciated. > > Thank you. > > > Best Regards, > > Mclyn > > _______________________________________________ > Mono-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-list > _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
