Closed GoogleCodeExporter closed 9 years ago
Attached is a patch to r595 which improve heapdump:
changes:
* heap.c:
- added some magic data "PM(DU|UD)MP" to validate the file (and to
get endianess)
- added architecture adress size
- added a dump version
- added a bitarray of features in use
- changed int to uint16_t / uint32_t for arch independence
* pmHeapDump.py:
- reads the new information in the dump header to correctly size
pointer length, get endianess, pymite's features.
- output summary information + object information or a dot file
- make use of optparse to parse command line
- _parse_* are replaced by a generic parser + string definition
fields to ease maintenance
- uses dump's pmfeatures to build correct definition of objects
fields
- up to date definition of objects fields
- uses a unpack_fp function to ease unpacking of fields
Original comment by monnet.a...@gmail.com
on 9 Sep 2010 at 10:52
Attachments:
r597
- Applied the given patch, modified pmHeapDump.py to meed coding conventions
(no substantive change to the operation of the patch).
Tests pass. Mainlined directly.
Original comment by dwhall...@gmail.com
on 13 Sep 2010 at 10:52
r602
- Added thanks to README
Post mainline checkin
Original comment by dwhall...@gmail.com
on 15 Sep 2010 at 2:22
Original comment by dwhall...@gmail.com
on 29 Sep 2010 at 7:24
Original issue reported on code.google.com by
monnet.a...@gmail.com
on 9 Sep 2010 at 10:48