Name | Date | Size | |
---|---|---|---|
.. | 03-Jan-2014 | 4 KiB | |
call_stack.cc | 03-Jan-2014 | 13.4 KiB | |
call_stack.h | 03-Jan-2014 | 5.3 KiB | |
DEPS | 03-Jan-2014 | 47 | |
dllmain.cc | 03-Jan-2014 | 4.5 KiB | |
hotkey.h | 03-Jan-2014 | 1.2 KiB | |
ia32_modrm_map.cc | 03-Jan-2014 | 3.6 KiB | |
ia32_opcode_map.cc | 03-Jan-2014 | 106.5 KiB | |
memory_hook.cc | 03-Jan-2014 | 19.2 KiB | |
memory_hook.h | 03-Jan-2014 | 4.4 KiB | |
memory_watcher.cc | 03-Jan-2014 | 7.5 KiB | |
memory_watcher.gyp | 03-Jan-2014 | 1.2 KiB | |
memory_watcher.h | 03-Jan-2014 | 2.7 KiB | |
mini_disassembler.cc | 03-Jan-2014 | 13.8 KiB | |
mini_disassembler.h | 03-Jan-2014 | 6.2 KiB | |
mini_disassembler_types.h | 03-Jan-2014 | 6.5 KiB | |
preamble_patcher.cc | 03-Jan-2014 | 9.6 KiB | |
preamble_patcher.h | 03-Jan-2014 | 12.3 KiB | |
preamble_patcher_with_stub.cc | 03-Jan-2014 | 7.4 KiB | |
README | 03-Jan-2014 | 721 | |
scripts/ | 03-Jan-2014 | 4 KiB |
README
1memory_watcher is a library that can be linked into chromium to trace the 2memory allocations. It works by hooking the system allocation/deallocation 3functions, and recording the actions. 4 5To use memory_watcher in chromium: 6 7(1) Compile the memory_watcher library (it is part of the solution by default) 8 9(2) Run chromium with these flags "--memory-profile -no-sandbox" 10(The instrumentation doesn't work with the sandbox) 11 12(3) Hit ctrl-alt-D to generate a dump of the memory allocations. 13This will create a log file called memorywatcher.logXXXX for every 14chromium process (where XXXX is the pid). 15 16The log file is a human readable text format, which can be further analyzed 17using the helpers in the "scripts/" directory. 18