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

Side by Side Diff: tools/eval_gc_time.sh

Issue 1454103002: [tools] Add meta script for convenient ranking of GC NVP output. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix typo Created 5 years, 1 month 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 | « no previous file | no next file » | 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/bash
2 #
3 # Copyright 2015 the V8 project authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 # Convenience Script used to rank GC NVP output.
8
9 print_usage_and_die() {
10 echo "Usage: $0 new-gen-rank|old-gen-rank max|avg logfile"
11 exit 1
12 }
13
14 if [ $# -ne 3 ]; then
15 print_usage_and_die
16 fi
17
18 case $1 in
19 new-gen-rank|old-gen-rank)
20 OP=$1
21 ;;
22 *)
23 print_usage_and_die
24 esac
25
26 case $2 in
27 max|avg)
28 RANK_MODE=$2
29 ;;
30 *)
31 print_usage_and_die
32 esac
33
34 LOGFILE=$3
35
36 GENERAL_INTERESTING_KEYS="\
37 pause \
38 "
39
40 INTERESTING_NEW_GEN_KEYS="\
41 ${GENERAL_INTERESTING_KEYS} \
42 scavenge \
43 weak \
44 roots \
45 old_new \
46 code \
47 semispace \
48 object_groups \
49 "
50
51 INTERESTING_OLD_GEN_KEYS="\
52 ${GENERAL_INTERESTING_KEYS} \
53 external \
54 mark \
55 mark_inc \
56 mark_prepcodeflush \
57 mark_root \
58 mark_topopt \
59 mark_retainmaps \
60 mark_weakclosure \
61 mark_stringtable \
62 mark_weakrefs \
63 mark_globalhandles \
64 mark_codeflush \
65 mark_optimizedcodemaps \
66 store_buffer_clear \
67 slots_buffer_clear \
68 sweep \
69 sweepns \
70 sweepos \
71 sweepcode \
72 sweepcell \
73 sweepmap \
74 sweepaborted \
75 evacuate \
76 new_new \
77 old_new \
78 root_new \
79 compaction_ptrs \
80 intracompaction_ptrs \
81 misc_compaction \
82 inc_weak_closure \
83 weakcollection_process \
84 weakcollection_clear \
85 weakcollection_abort \
86 weakcells \
87 nonlive_refs \
88 "
89
90 BASE_DIR=$(dirname $0)
91
92 case $OP in
93 new-gen-rank)
94 cat $LOGFILE | grep "gc=s" \
95 | $BASE_DIR/eval_gc_nvp.py \
96 --no-histogram \
97 --rank $RANK_MODE \
98 ${INTERESTING_NEW_GEN_KEYS}
99 ;;
100 old-gen-rank)
101 cat $LOGFILE | grep "gc=ms" | grep "reduce_memory=0" | grep -v "steps=0" \
102 | $BASE_DIR/eval_gc_nvp.py \
103 --no-histogram \
104 --rank $RANK_MODE \
105 ${INTERESTING_OLD_GEN_KEYS}
106 ;;
107 *)
108 ;;
109 esac
110
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698