Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
scripts/ | 03-May-2024 | - | 476 | 306 | ||
DEPS | D | 03-May-2024 | 33 | 4 | 3 | |
README | D | 03-May-2024 | 721 | 18 | 12 | |
call_stack.cc | D | 03-May-2024 | 13.4 KiB | 400 | 307 | |
call_stack.h | D | 03-May-2024 | 5.3 KiB | 169 | 78 | |
dllmain.cc | D | 03-May-2024 | 4.5 KiB | 156 | 101 | |
hotkey.h | D | 03-May-2024 | 1.2 KiB | 49 | 32 | |
ia32_modrm_map.cc | D | 03-May-2024 | 3.6 KiB | 95 | 72 | |
ia32_opcode_map.cc | D | 03-May-2024 | 106.5 KiB | 1,162 | 1,100 | |
memory_hook.cc | D | 03-May-2024 | 19.3 KiB | 563 | 388 | |
memory_hook.h | D | 03-May-2024 | 4.4 KiB | 154 | 77 | |
memory_watcher.cc | D | 03-May-2024 | 7.5 KiB | 256 | 181 | |
memory_watcher.gyp | D | 03-May-2024 | 1.3 KiB | 49 | 47 | |
memory_watcher.h | D | 03-May-2024 | 2.7 KiB | 96 | 42 | |
mini_disassembler.cc | D | 03-May-2024 | 13.8 KiB | 393 | 261 | |
mini_disassembler.h | D | 03-May-2024 | 6.2 KiB | 164 | 38 | |
mini_disassembler_types.h | D | 03-May-2024 | 6.5 KiB | 200 | 108 | |
preamble_patcher.cc | D | 03-May-2024 | 9.6 KiB | 229 | 142 | |
preamble_patcher.h | D | 03-May-2024 | 12.3 KiB | 294 | 76 | |
preamble_patcher_with_stub.cc | D | 03-May-2024 | 7.4 KiB | 175 | 86 |
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