Bug 7322 - System.Diagnostics.PerformanceCounter wrong values for user created average counters
Summary: System.Diagnostics.PerformanceCounter wrong values for user created average c...
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System (show other bugs)
Version: 2.10.x
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-09-20 05:35 UTC by Herwig
Modified: 2012-09-20 06:01 UTC (History)
1 user (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
shortened results from windows and linux execution (1.57 KB, application/zip)
2012-09-20 05:35 UTC, Herwig
Details

Description Herwig 2012-09-20 05:35:22 UTC
Created attachment 2577 [details]
shortened results from windows and linux execution

When creating a new average counter in a new category, there seams to be a problem with the base-counter.

Test case:
Source from
http://msdn.microsoft.com/en-us/library/system.diagnostics.performancecounter.aspx

Works good with Windows (executed with administrator priviliges to be able to create new categories)
For linux it is required to replace the two lines:
>if (SetupCategory())
>            return;
with
>SetupCategory();

otherwise, the programm will only create the category but not continue.


Does not work with linux.
returned values are wrong (infinity instead of the average!)

(shortened Version) of the outputs (windows and linux) attached.

It seams that the base counter is not increased correctly. Therefore the measured results are wrong (infinity)

Note You need to log in before you can comment on or make changes to this bug.