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

Side by Side Diff: experimental/tools/multipage_pdf_profiler.sh

Issue 769083003: multipage_pdf_profiler, gmtoskp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « experimental/tools/multipage_pdf_profiler.cpp ('k') | gyp/experimental.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/sh
2
3 if [ -z "$1" ] || [ -z "$2" ]; then
4 echo "usage: $0 SKP_DIRECTORY MULTIPAGE_PDF_PROFILER_EXE" >&2
5 exit 1
6 fi
7
8 SKP_DIRECTORY="$1"
9 MULTIPAGE_PDF_PROFILER_EXE="$2"
10
11 printf '"FILE","SKP SIZE (BYTES)","MEMORY USE (MB)"\n' >&2
12 for skp in "$SKP_DIRECTORY"/*.skp; do
djsollen 2014/12/01 19:44:49 why not do this directory traversal in the C binar
13 r=$("$MULTIPAGE_PDF_PROFILER_EXE" 0 "$skp")
14 skp_size=$(echo $r | awk '{ print $1 }')
15 mem0=$(echo $r | awk '{ print $2 }')
16 mem1=$("$MULTIPAGE_PDF_PROFILER_EXE" 1 "$skp" | awk '{ print $2 }')
17 printf '"%s",%d,%d\n' $(basename "$skp") $skp_size $(($mem1 - $mem0))
18 done
OLDNEW
« no previous file with comments | « experimental/tools/multipage_pdf_profiler.cpp ('k') | gyp/experimental.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698