shaka-packager/tools/memory_watcher
Kongqun Yang 0f24c7f9ac Start with media/mp4, media/webm and base codes from Chromium. 2013-09-23 18:37:14 -07:00
..
scripts Start with media/mp4, media/webm and base codes from Chromium. 2013-09-23 18:37:14 -07:00
DEPS Start with media/mp4, media/webm and base codes from Chromium. 2013-09-23 18:37:14 -07:00
README Start with media/mp4, media/webm and base codes from Chromium. 2013-09-23 18:37:14 -07:00
call_stack.cc Start with media/mp4, media/webm and base codes from Chromium. 2013-09-23 18:37:14 -07:00
call_stack.h Start with media/mp4, media/webm and base codes from Chromium. 2013-09-23 18:37:14 -07:00
dllmain.cc Start with media/mp4, media/webm and base codes from Chromium. 2013-09-23 18:37:14 -07:00
hotkey.h Start with media/mp4, media/webm and base codes from Chromium. 2013-09-23 18:37:14 -07:00
ia32_modrm_map.cc Start with media/mp4, media/webm and base codes from Chromium. 2013-09-23 18:37:14 -07:00
ia32_opcode_map.cc Start with media/mp4, media/webm and base codes from Chromium. 2013-09-23 18:37:14 -07:00
memory_hook.cc Start with media/mp4, media/webm and base codes from Chromium. 2013-09-23 18:37:14 -07:00
memory_hook.h Start with media/mp4, media/webm and base codes from Chromium. 2013-09-23 18:37:14 -07:00
memory_watcher.cc Start with media/mp4, media/webm and base codes from Chromium. 2013-09-23 18:37:14 -07:00
memory_watcher.gyp Start with media/mp4, media/webm and base codes from Chromium. 2013-09-23 18:37:14 -07:00
memory_watcher.h Start with media/mp4, media/webm and base codes from Chromium. 2013-09-23 18:37:14 -07:00
mini_disassembler.cc Start with media/mp4, media/webm and base codes from Chromium. 2013-09-23 18:37:14 -07:00
mini_disassembler.h Start with media/mp4, media/webm and base codes from Chromium. 2013-09-23 18:37:14 -07:00
mini_disassembler_types.h Start with media/mp4, media/webm and base codes from Chromium. 2013-09-23 18:37:14 -07:00
preamble_patcher.cc Start with media/mp4, media/webm and base codes from Chromium. 2013-09-23 18:37:14 -07:00
preamble_patcher.h Start with media/mp4, media/webm and base codes from Chromium. 2013-09-23 18:37:14 -07:00
preamble_patcher_with_stub.cc Start with media/mp4, media/webm and base codes from Chromium. 2013-09-23 18:37:14 -07:00

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.