[MERGE] trace.debug_memory() for Win32
John Arbash Meinel
john at arbash-meinel.com
Wed Feb 18 03:29:45 GMT 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
John Arbash Meinel wrote:
> Since I've been working on win32 a bit, I've been missing the ability to
> use "-Dmemory" to get a measurement of the peak memory consumption.
>
> So I tracked down an appropriate win32 api, and wrote something up. No
> specific tests, but I did test that the win32process code and the ctypes
> code end up with the same values.
>
> It is a pretty minimal output, but it seems to have the info that I
> would be interested in.
>
> John
> =:->
I found a couple small bugs. It also seems that the win32process uses
the non "Ex" form, so it is missing a field. As such, I changed the code
to prefer the more complex-looking ctypes implementation. I also spent
some time to confirm the values matched the value in Task Manager.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkmbgKkACgkQJdeBCYSNAAN2rACgikMlsaaUnOWc4nj3/+O1RgWG
3nYAn24JWB3Tlj8lrZ3r2/OW7am8UX7A
=USj0
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: win32_dmemory.patch
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20090217/6f22f54e/attachment.diff
More information about the bazaar
mailing list