Arquivos
sgk@google.com 5fb7a87ff0 Remove checked-in memory_watcher.vcproj.
svn:ignore gyp-generated memory_watcher.{sln,vcproj}.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/118026

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17232 0039d316-1c4b-4281-b951-d872f2087c98
2009-05-29 20:47:34 +00:00
..
2009-03-11 15:17:55 +00:00
2009-03-11 15:17:55 +00:00
2009-03-11 15:17:55 +00:00
2009-03-11 15:17:55 +00:00
2009-03-11 15:17:55 +00:00
2009-03-11 15:17:55 +00:00

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.