2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
19 open (LOGFILE
, "$file") or die("could not open $file");
22 if ($line =~ m/([0-9]*) bytes, ([0-9]*) items/) {
28 elsif ($line =~ m/$search/) {
31 elsif ($line =~ m/=============/) {
34 print "$bytes bytes ($calls calls)\n";
45 print("TOTAL: $sum_bytes bytes ($sum_calls calls)\n");
49 # ----- Main ------------------------------------------------
51 # Get the command line argument
56 process_raw
($filename, $search);