Fix some scripts from memory_watcher tool.

Seems, some scripts stopped to work after changes in
https://codereview.chromium.org/366031
patch, which changes a bit output format.

Review URL: https://chromiumcodereview.appspot.com/15849010

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202047 0039d316-1c4b-4281-b951-d872f2087c98
parent e470011d
......@@ -19,7 +19,7 @@ sub process_raw($$) {
open (LOGFILE, "$file") or die("could not open $file");
while(<LOGFILE>) {
my $line = $_;
if ($line =~ m/([0-9]*) bytes, ([0-9]*) items/) {
if ($line =~ m/([0-9]*) bytes, ([0-9]*) allocs/) {
$save = "";
$print = 0;
$bytes = $1;
......
......@@ -47,7 +47,7 @@ sub process_raw($$) {
my $line = $_;
#print "$line";
chomp($line);
if ($line =~ m/([0-9]*) bytes, ([0-9]*) items/) {
if ($line =~ m/([0-9]*) bytes, ([0-9]*) allocs/) {
# If we didn't find any frames to account this to, log that.
if ($blamed == 0) {
......
......@@ -43,7 +43,7 @@ sub process_raw($) {
my $line = $_;
#print "$line";
chomp($line);
if ($line =~ m/([0-9]*) bytes, ([0-9]*) items/) {
if ($line =~ m/([0-9]*) bytes, ([0-9]*) allocs/) {
#print "START\n";
# Dump "prior" frame here
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment