Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: node

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
scripts
DEPS
README
call_stack.cc
call_stack.h
dllmain.cc
hotkey.h
ia32_modrm_map.cc
ia32_opcode_map.cc
memory_hook.cc
memory_hook.h
memory_watcher.cc
memory_watcher.gyp
memory_watcher.h
mini_disassembler.cc
mini_disassembler.h
mini_disassembler_types.h
preamble_patcher.cc
preamble_patcher.h
preamble_patcher_with_stub.cc

README

memory_watcher is a library that can be linked into chromium to trace the
memory allocations. It works by hooking the system allocation/deallocation
functions, and recording the actions.

To use memory_watcher in chromium:

(1) Compile the memory_watcher library (it is part of the solution by default)

(2) Run chromium with these flags "--memory-profile -no-sandbox"
(The instrumentation doesn't work with the sandbox)

(3) Hit ctrl-alt-D  to generate a dump of the memory allocations.
This will create a log file called memorywatcher.logXXXX for every
chromium process (where XXXX is the pid).

The log file is a human readable text format, which can be further analyzed
using the helpers in the "scripts/" directory.
Something went wrong with that request. Please try again.