Closed GoogleCodeExporter closed 9 years ago
WMI docs for Win32_Process class
http://msdn.microsoft.com/en-us/library/aa394372(VS.85).aspx
-----
*PageFileUsage*
Data type: uint32
Access type: Read-only
Qualifiers: Units (Kilobytes)
Amount of page file space that a process is using currently. This value is
consistent with the VMSize value in TaskMgr.exe.
Example: 102435
-----
So it looks like WMI is reporting kilobytes, not bytes. We'll need to either
convert our bytes to kilobytes, or convert the WMI results into bytes for
comparison.
Original comment by jlo...@gmail.com
on 21 Sep 2010 at 5:57
Problem seems to be that apparently WMI on Windows XP reports bytes while on
Windows 7 reports kilo bytes.
Original comment by g.rodola
on 21 Sep 2010 at 6:05
Since I have no clue on why this happens I used a workaround in the test suite
(r637) which now assumes Kb on Windows 7 and bytes on all other systems.
Original comment by g.rodola
on 21 Sep 2010 at 6:41
[deleted comment]
Updated csets after the SVN -> Mercurial migration:
r637 == revision 15c646a51f73
Original comment by g.rodola
on 2 Mar 2013 at 11:54
Original issue reported on code.google.com by
g.rodola
on 21 Sep 2010 at 5:53