| 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 RANK SORT [LOGFILE]" | 10 echo "Usage: $0 RANK SORT [LOGFILE]" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 external.mc_prologue \ | 83 external.mc_prologue \ |
| 84 external.mc_epilogue \ | 84 external.mc_epilogue \ |
| 85 external.mc_incremental_prologue \ | 85 external.mc_incremental_prologue \ |
| 86 external.mc_incremental_epilogue \ | 86 external.mc_incremental_epilogue \ |
| 87 external.weak_global_handles \ | 87 external.weak_global_handles \ |
| 88 mark \ | 88 mark \ |
| 89 mark.finish_incremental \ | 89 mark.finish_incremental \ |
| 90 mark.prepare_code_flush \ | 90 mark.prepare_code_flush \ |
| 91 mark.roots \ | 91 mark.roots \ |
| 92 mark.weak_closure \ | 92 mark.weak_closure \ |
| 93 mark.weak_closure.ephemeral \ |
| 94 mark.weak_closure.weak_handles \ |
| 95 mark.weak_closure.weak_roots \ |
| 96 mark.weak_closure.harmony \ |
| 93 sweep \ | 97 sweep \ |
| 94 sweep.code \ | 98 sweep.code \ |
| 95 sweep.map \ | 99 sweep.map \ |
| 96 sweep.old \ | 100 sweep.old \ |
| 97 incremental_finalize \ | 101 incremental_finalize \ |
| 98 " | 102 " |
| 99 | 103 |
| 100 BASE_DIR=$(dirname $0) | 104 BASE_DIR=$(dirname $0) |
| 101 | 105 |
| 102 case $OP in | 106 case $OP in |
| 103 new-gen-rank) | 107 new-gen-rank) |
| 104 cat $LOGFILE | grep "gc=s" \ | 108 cat $LOGFILE | grep "gc=s" \ |
| 105 | $BASE_DIR/eval_gc_nvp.py \ | 109 | $BASE_DIR/eval_gc_nvp.py \ |
| 106 --no-histogram \ | 110 --no-histogram \ |
| 107 --rank $RANK_MODE \ | 111 --rank $RANK_MODE \ |
| 108 ${INTERESTING_NEW_GEN_KEYS} | 112 ${INTERESTING_NEW_GEN_KEYS} |
| 109 ;; | 113 ;; |
| 110 old-gen-rank) | 114 old-gen-rank) |
| 111 cat $LOGFILE | grep "gc=ms" \ | 115 cat $LOGFILE | grep "gc=ms" \ |
| 112 | $BASE_DIR/eval_gc_nvp.py \ | 116 | $BASE_DIR/eval_gc_nvp.py \ |
| 113 --no-histogram \ | 117 --no-histogram \ |
| 114 --rank $RANK_MODE \ | 118 --rank $RANK_MODE \ |
| 115 ${INTERESTING_OLD_GEN_KEYS} | 119 ${INTERESTING_OLD_GEN_KEYS} |
| 116 ;; | 120 ;; |
| 117 *) | 121 *) |
| 118 ;; | 122 ;; |
| 119 esac | 123 esac |
| 120 | 124 |
| OLD | NEW |