OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # | 2 # |
3 # Copyright 2015 the V8 project authors. All rights reserved. | 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 | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 # Convenience Script used to rank GC NVP output. | 7 # Convenience Script used to rank GC NVP output. |
8 | 8 |
9 print_usage_and_die() { | 9 print_usage_and_die() { |
10 echo "Usage: $0 new-gen-rank|old-gen-rank max|avg logfile" | 10 echo "Usage: $0 new-gen-rank|old-gen-rank max|avg logfile" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 roots \ | 44 roots \ |
45 old_new \ | 45 old_new \ |
46 code \ | 46 code \ |
47 semispace \ | 47 semispace \ |
48 object_groups \ | 48 object_groups \ |
49 " | 49 " |
50 | 50 |
51 INTERESTING_OLD_GEN_KEYS="\ | 51 INTERESTING_OLD_GEN_KEYS="\ |
52 ${GENERAL_INTERESTING_KEYS} \ | 52 ${GENERAL_INTERESTING_KEYS} \ |
53 external \ | 53 external \ |
| 54 clear \ |
| 55 clear.code_flush \ |
| 56 clear.dependent_code \ |
| 57 clear.global_handles \ |
| 58 clear.maps \ |
| 59 clear.slots_buffer \ |
| 60 clear.store_buffer \ |
| 61 clear.string_table \ |
| 62 clear.weak_cells \ |
| 63 clear.weak_collections \ |
| 64 clear.weak_lists \ |
| 65 finish \ |
| 66 evacuate \ |
| 67 evacuate.candidates \ |
| 68 evacuate.clean_up \ |
| 69 evacuate.new_space \ |
| 70 evacuate.update_pointers \ |
| 71 evacuate.update_pointers.between_evacuated \ |
| 72 evacuate.update_pointers.to_evacuated \ |
| 73 evacuate.update_pointers.to_new \ |
| 74 evacuate.update_pointers.weak \ |
54 mark \ | 75 mark \ |
55 mark_inc \ | 76 mark.finish_incremental \ |
56 mark_prepcodeflush \ | 77 mark.prepare_code_flush \ |
57 mark_root \ | 78 mark.roots \ |
58 mark_topopt \ | 79 mark.weak_closure \ |
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 \ | 80 sweep \ |
69 sweepns \ | 81 sweep.code \ |
70 sweepos \ | 82 sweep.map \ |
71 sweepcode \ | 83 sweep.old \ |
72 sweepcell \ | 84 incremental_finalize \ |
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 " | 85 " |
89 | 86 |
90 BASE_DIR=$(dirname $0) | 87 BASE_DIR=$(dirname $0) |
91 | 88 |
92 case $OP in | 89 case $OP in |
93 new-gen-rank) | 90 new-gen-rank) |
94 cat $LOGFILE | grep "gc=s" \ | 91 cat $LOGFILE | grep "gc=s" \ |
95 | $BASE_DIR/eval_gc_nvp.py \ | 92 | $BASE_DIR/eval_gc_nvp.py \ |
96 --no-histogram \ | 93 --no-histogram \ |
97 --rank $RANK_MODE \ | 94 --rank $RANK_MODE \ |
98 ${INTERESTING_NEW_GEN_KEYS} | 95 ${INTERESTING_NEW_GEN_KEYS} |
99 ;; | 96 ;; |
100 old-gen-rank) | 97 old-gen-rank) |
101 cat $LOGFILE | grep "gc=ms" | grep "reduce_memory=0" | grep -v "steps=0" \ | 98 cat $LOGFILE | grep "gc=ms" | grep "reduce_memory=0" | grep -v "steps=0" \ |
102 | $BASE_DIR/eval_gc_nvp.py \ | 99 | $BASE_DIR/eval_gc_nvp.py \ |
103 --no-histogram \ | 100 --no-histogram \ |
104 --rank $RANK_MODE \ | 101 --rank $RANK_MODE \ |
105 ${INTERESTING_OLD_GEN_KEYS} | 102 ${INTERESTING_OLD_GEN_KEYS} |
106 ;; | 103 ;; |
107 *) | 104 *) |
108 ;; | 105 ;; |
109 esac | 106 esac |
110 | 107 |
OLD | NEW |