[Mono-bugs] [Bug 604831] New: PerformanceCounter.NextValue Variations

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue May 11 12:41:31 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=604831

http://bugzilla.novell.com/show_bug.cgi?id=604831#c0


           Summary: PerformanceCounter.NextValue Variations
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: 32bit
        OS/Version: openSUSE 11.2
            Status: NEW
          Severity: Minor
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: bkesecker at augustasystems.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1064 Safari/532.5

NextValue does not throw an exception when the defined instance no longer
exists or is incorrect (running on non-VM openSuSE under Mono).  This is
different than the behavior of Windows.

Also, Counters in many categories return 0.0 when first polled (however,
Windows appeared to exhibit this behavior also running on Windows 7 Pro). 
Subsequent polls do return valid values.

Reproducible: Always

Steps to Reproduce:
1a. Create instance of a PerformanceCounter passing "Processor" for category,
"% Processor Time" for counter, and "_Total" for instance.
2a. Invoke NextValue method upon the PerformanceCounter instance
3b. Examine the value returned (should be 0.0)

1b. Create instance of a PerformanceCounter passing "Processor" for category,
"% Processor Time" for counter, and "DNE" for instance.
2b. Invoke NextValue method upon the PerformanceCounter instance twice,
recording the values returned from both
3b. Examine the values returned
Actual Results:  
PerformanceCounter returned 0.0 for invalid instance

Expected Results:  
PerformanceCounter would throw an exception to the affect that the
category/instance/counter is invalid

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list