Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: tools/memory_watcher/scripts/summary.pl

Issue 10134019: Set svn:executable bit on scripts that are executable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed pylintrc Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/memory_watcher/scripts/memtrace.pl ('k') | tools/site_compare/commands/__init__.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/perl 1 #!/usr/bin/perl
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.
2 # 5 #
3 # Read a memtrace logfile from stdin and group memory allocations by logical 6 # Read a memtrace logfile from stdin and group memory allocations by logical
4 # code component. The code component is guessed from the callstack, and 7 # code component. The code component is guessed from the callstack, and
5 # is something like {v8, sqlite, disk cache, skia, etc..} 8 # is something like {v8, sqlite, disk cache, skia, etc..}
6 # 9 #
7 # Usage: 10 # Usage:
8 # 11 #
9 # summary.pl 12 # summary.pl
10 # 13 #
11 # [STDIN] -- The memwatcher.logXXXX file to summarize. 14 # [STDIN] -- The memwatcher.logXXXX file to summarize.
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 # Insert commas into an integer after each three digits for printing. 147 # Insert commas into an integer after each three digits for printing.
145 sub comma_print { 148 sub comma_print {
146 my $num = "$_[0]"; 149 my $num = "$_[0]";
147 $num =~ s/(\d{1,3}?)(?=(\d{3})+$)/$1,/g; 150 $num =~ s/(\d{1,3}?)(?=(\d{3})+$)/$1,/g;
148 return $num; 151 return $num;
149 } 152 }
150 153
151 # ----- Main ------------------------------------------------ 154 # ----- Main ------------------------------------------------
152 155
153 process_stdin(); 156 process_stdin();
OLDNEW
« no previous file with comments | « tools/memory_watcher/scripts/memtrace.pl ('k') | tools/site_compare/commands/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698