[python-win32] win32pdhutil failing on counters with a "/"

Jeffrey Melloy jmelloy at gmail.com
Wed Mar 30 20:07:52 CEST 2011


It gives that error every time.  My script runs through these in a loop.

I'm using Windows 7, Python 2.6, and I updated to build 216 of
py-win32 this morning.  (Though is there a good way to get what
version you're using from Python? __version__ isn't there.)

I get that if I'm working remotely or locally.

On Wed, Mar 30, 2011 at 11:02 AM, Tim Roberts <timr at probo.com> wrote:
> Jeffrey Melloy wrote:
>> My script to parse perfmon data is working correctly, however, when I
>> have a counter name with "/" in it, it seems to throw an error in
>> GetFormattedData.
>>
>> Has anyone seen this before?
>
> Do you get this every time, or only the first time you run it?  There
> was one message that theorized that the "per second" values don't work
> until it has two samples to compute a delta, although that person's own
> reply seemed to refute that theory.
>
> What versions?  Your script worked perfectly for me (after I imported
> win32pdh).  XP SP3, Python 2.6, Python-Win32 214.  Is this a local
> machine, or are you reading remotely?
>
> C:\tmp>x.py
> Page Faults/sec None 637.858235343
> Available Bytes None 295763968.0
> Committed Bytes None 798822400.0
> Commit Limit None 2579103744.0
> Write Copies/sec None 4.93029575603
> Transition Faults/sec None 222.822945424
> Cache Faults/sec None 163.402800234
> Demand Zero Faults/sec None 325.280604849
> Pages/sec None 29.7574040842
> Pages Input/sec None 28.8193516955
> Page Reads/sec None 4.76493920886
> Pages Output/sec None 0.9380523089
> Pool Paged Bytes None 91000832.0
> Pool Nonpaged Bytes None 37187584.0
> Page Writes/sec None 0.058643184963
> Pool Paged Allocs None 94845.0
> Pool Nonpaged Allocs None 71529.0
> Free System Page Table Entries None 210438.0
> Cache Bytes None 177729536.0
> Cache Bytes Peak None 255340544.0
> Pool Paged Resident Bytes None 73687040.0
> System Code Total Bytes None 933888.0
> System Code Resident Bytes None 307200.0
> System Driver Total Bytes None 9097216.0
> System Driver Resident Bytes None 1380352.0
> System Cache Resident Bytes None 102354944.0
> % Committed Bytes In Use None 30.9728680693
> Available KBytes None 288832.0
> Available MBytes None 282.0
>
> C:\tmp>
>
> --
> Tim Roberts, timr at probo.com
> Providenza & Boekelheide, Inc.
>
> _______________________________________________
> python-win32 mailing list
> python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32
>


More information about the python-win32 mailing list