├── .babelrc ├── .eslintrc ├── .gitignore ├── .npmignore ├── LICENSE ├── README.md ├── bin └── parse.js ├── doc ├── demo │ ├── .gitignore │ ├── alinodeParse.js │ ├── build.sh │ ├── data.json │ ├── demo.js │ └── index.html └── grammar.md ├── index.js ├── lib ├── lexer.js ├── parser.js ├── sym.js └── types.js ├── package.json └── test ├── data ├── alinode_v3_nvp.in ├── alinode_v3_nvp.out ├── alinode_v3_trace.in ├── alinode_v3_trace.out ├── alinode_v3_trace_verbose.in ├── alinode_v3_trace_verbose.out ├── alinode_v3_verbose.in ├── alinode_v3_verbose.out ├── alinode_v3_verbose_nvp.in ├── alinode_v3_verbose_nvp.out ├── ill_formed_nvp.in ├── ill_formed_trace.in ├── ill_formed_verbose.in ├── minus_value.in ├── minus_value.out ├── oom.in ├── partial.in ├── partial.out ├── v012_nvp.in ├── v012_nvp.out ├── v012_trace.in ├── v012_trace.out ├── v012_verbose.in ├── v012_verbose.out ├── v10_nvp.in ├── v10_nvp.out ├── v10_trace.in ├── v10_trace.out ├── v10_trace_verbose.in ├── v10_trace_verbose.out ├── v10_verbose.in ├── v10_verbose.out ├── v10_verbose_nvp.in ├── v10_verbose_nvp.out ├── v4_nvp.in ├── v4_nvp.out ├── v4_trace.in ├── v4_trace.out ├── v4_verbose.in ├── v4_verbose.out ├── v6_nvp.in ├── v6_nvp.out ├── v6_trace.in ├── v6_trace.out ├── v6_trace_verbose.in ├── v6_trace_verbose.out ├── v6_verbose.in ├── v6_verbose.out ├── v6_verbose_nvp.in ├── v6_verbose_nvp.out ├── v8_nvp.in ├── v8_nvp.out ├── v8_trace.in ├── v8_trace.out ├── v8_trace_verbose.in ├── v8_trace_verbose.out ├── v8_verbose.in ├── v8_verbose.out ├── v8_verbose_nvp.in ├── v8_verbose_nvp.out └── verbose_misc.in ├── fixtures └── work.js └── index.test.js /.babelrc: -------------------------------------------------------------------------------- 1 | { "presets": ["es2015"] } 2 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "node": true, 4 | "es6": true 5 | }, 6 | "rules": { 7 | "array-bracket-spacing": [2, "never"], 8 | "block-scoped-var": 2, 9 | // "brace-style": [2, "1tbs"], 10 | // "camelcase": 1, 11 | "computed-property-spacing": [2, "never"], 12 | "curly": 2, 13 | "eol-last": 2, 14 | "eqeqeq": [2, "smart"], 15 | "max-depth": [1, 3], 16 | "max-len": [1, 80], 17 | "max-statements": [1, 15], 18 | "new-cap": 1, 19 | "no-extend-native": 2, 20 | "no-mixed-spaces-and-tabs": 2, 21 | "no-trailing-spaces": 2, 22 | "no-unused-vars": 1, 23 | "no-use-before-define": [2, "nofunc"], 24 | "object-curly-spacing": [2, "never"], 25 | "quotes": [2, "single", "avoid-escape"], 26 | "semi": [2, "always"], 27 | "keyword-spacing": [2, {"before": true, "after": true}], 28 | "space-unary-ops": 2 29 | } 30 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .vscode 2 | node_modules 3 | coverage 4 | .DS_Store 5 | *.asm 6 | *.cfg 7 | benchmark 8 | package-lock.json 9 | bundle.js 10 | 11 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | doc 3 | coverage 4 | .*.swp 5 | ._* 6 | .DS_Store 7 | .git 8 | .hg 9 | .npmrc 10 | .lock-wscript 11 | .svn 12 | .wafpickle-* 13 | config.gypi 14 | CVS 15 | npm-debug.log 16 | .vscode 17 | .eslintrc 18 | *.asm 19 | *.cfg 20 | benchmark 21 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | Copyright (c) 2016 Alibaba Group 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 5 | 6 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 7 | 8 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # V8 Garbage Collection Log Parser 2 | 3 | A simple tool for parsing V8 garbage collection logs. 4 | 5 | ## Support 6 | 7 | ### Flags 8 | 9 | At the moment only logs produced by `--trace_gc`, `--trace_gc_nvp` and `--trace_gc_verbose` are supported. 10 | 11 | ### V8 versions 12 | 13 | The V8 versions used by Node.js LTS versions are supported. That is: 14 | 15 | * Node v8.x: V8 v5.8.x (will be updated to v6.x soon) 16 | * Node v6.x: V8 v5.1.281.x 17 | * Node v4.x: V8 v4.5.103.x 18 | 19 | We will drop support when the corresponding Node.js LTS version is dropped. 20 | 21 | For the grammar of these logs, see [grammar.md](doc/grammar.md). 22 | 23 | ## As CLI tool 24 | 25 | ```console 26 | npm install -g v8-gc-log-parser 27 | # output the result as JSON to stdout 28 | v8-gc-log-parse 29 | ``` 30 | 31 | ## API 32 | 33 | ### class `GCLParser` 34 | 35 | ```js 36 | const Parser = require('v8-gc-log-parser'); 37 | const parser = new Parser(); 38 | ``` 39 | 40 | ### `GCLParser#parseAllToData(text)` 41 | 42 | First, create a parser instance 43 | 44 | ```js 45 | const Parser = require('v8-gc-log-parser'); 46 | const parser = new Parser(); 47 | ``` 48 | Then parse the log: 49 | 50 | ```js 51 | // notice the new line character at the end of the log 52 | const simple_log = '[43417:0x102004600] 9709 ms: Scavenge 344.4 (379.7) -> 342.8 (387.7) MB, 6.6 / 0.0 ms [allocation failure].\n' 53 | parser.parseAllToData(simple_log); 54 | ``` 55 | 56 | The result will be: 57 | 58 | ```js 59 | [{ 60 | pid: 43417, 61 | isolate: '0x102004600', 62 | time_since_init: 9709, 63 | data: { 64 | collector: 'scavenge', 65 | start_object_size: 344.4, 66 | end_object_size: 342.8, 67 | start_memory_size: 379.7, 68 | end_memory_size: 387.7, 69 | pause: 6.6, 70 | external_time: 0, 71 | gc_reason: 'allocation failure' 72 | }, 73 | type: 'trace' 74 | }] 75 | ``` 76 | 77 | For logs produced by `--trace_gc_nvp`: 78 | 79 | ```js 80 | const nvp_log = '[51548:0x102004600] 3912 ms: pause=2.4 mutator=383.5 gc=s reduce_memory=0 scavenge=2.18 old_new=0.12 weak=0.00 roots=0.05 code=0.00 semispace=1.97 object_groups=0.00 external_prologue=0.00 external_epilogue=0.00 external_weak_global_handles=0.01 steps_count=0 steps_took=0.0 scavenge_throughput=1073741824 total_size_before=52688696 total_size_after=52177656 holes_size_before=106616 holes_size_after=152344 allocated=16910984 promoted=1642176 semi_space_copied=1855136 nodes_died_in_new=20 nodes_copied_in_new=1 nodes_promoted=0 promotion_ratio=40.2% average_survival_ratio=70.3% promotion_rate=99.6% semi_space_copy_rate=45.4% new_space_allocation_throughput=3480.1 context_disposal_rate=0.0\n' 81 | 82 | parser.parseAllToData(nvp_log); 83 | ``` 84 | 85 | Result: 86 | 87 | ```js 88 | { 89 | "pid": 51548, 90 | "isolate": "0x102004600", 91 | "time_since_init": 3912, 92 | "data": { 93 | "pause": 2.4, 94 | "mutator": 383.5, 95 | "gc": "s", 96 | "reduce_memory": 0, 97 | "scavenge": 2.18, 98 | "old_new": 0.12, 99 | "weak": 0, 100 | "roots": 0.05, 101 | "code": 0, 102 | "semispace": 1.97, 103 | "object_groups": 0, 104 | "external_prologue": 0, 105 | "external_epilogue": 0, 106 | "external_weak_global_handles": 0.01, 107 | "steps_count": 0, 108 | "steps_took": 0, 109 | "scavenge_throughput": 1073741824, 110 | "total_size_before": 52688696, 111 | "total_size_after": 52177656, 112 | "holes_size_before": 106616, 113 | "holes_size_after": 152344, 114 | "allocated": 16910984, 115 | "promoted": 1642176, 116 | "semi_space_copied": 1855136, 117 | "nodes_died_in_new": 20, 118 | "nodes_copied_in_new": 1, 119 | "nodes_promoted": 0, 120 | "promotion_ratio": 40.2, 121 | "average_survival_ratio": 70.3, 122 | "promotion_rate": 99.6, 123 | "semi_space_copy_rate": 45.4, 124 | "new_space_allocation_throughput": 3480.1, 125 | "context_disposal_rate": 0 126 | }, 127 | "type": "nvp" 128 | } 129 | ``` 130 | 131 | For logs produced by `--trace_gc --trace_gc_verbose` 132 | 133 | ```js 134 | const verbose_log = `[43748:0x103000000] Memory allocator, used: 7204 KB, available: 1459164 KB 135 | [43748:0x103000000] New space, used: 957 KB, available: 50 KB, committed: 2048 KB 136 | [43748:0x103000000] Old space, used: 888 KB, available: 0 KB, committed: 980 KB 137 | [43748:0x103000000] Code space, used: 242 KB, available: 0 KB, committed: 1024 KB 138 | [43748:0x103000000] Map space, used: 49 KB, available: 0 KB, committed: 80 KB 139 | [43748:0x103000000] Large object space, used: 0 KB, available: 1458123 KB, committed: 0 KB 140 | [43748:0x103000000] All spaces, used: 2137 KB, available: 1458173 KB, committed: 4132 KB 141 | [43748:0x103000000] External memory reported: 0 KB 142 | [43748:0x103000000] Total time spent in GC : 0.6 ms\n` 143 | parser.parseAllToData(verbose_log); 144 | ``` 145 | 146 | Result: 147 | 148 | ```js 149 | { 150 | "pid": 43748, 151 | "isolate": "0x103000000", 152 | "type": "verbose", 153 | "data": { 154 | "memory_allocator": { 155 | "used": 7204, 156 | "available": 1459164 157 | }, 158 | "new_space": { 159 | "used": 957, 160 | "available": 50, 161 | "committed": 2048 162 | }, 163 | "old_space": { 164 | "used": 888, 165 | "available": 0, 166 | "committed": 980 167 | }, 168 | "code_space": { 169 | "used": 242, 170 | "available": 0, 171 | "committed": 1024 172 | }, 173 | "map_space": { 174 | "used": 49, 175 | "available": 0, 176 | "committed": 80 177 | }, 178 | "large_object_space": { 179 | "used": 0, 180 | "available": 1458123, 181 | "committed": 0 182 | }, 183 | "all_spaces": { 184 | "used": 2137, 185 | "available": 1458173, 186 | "committed": 4132 187 | }, 188 | "external_memory_reported": 0, 189 | "total_time_spent_in_gc": 0.6 190 | } 191 | } 192 | ``` 193 | 194 | 195 | ## LICENSE 196 | 197 | The MIT License (MIT) 198 | Copyright (c) 2016 Alibaba Group 199 | -------------------------------------------------------------------------------- /bin/parse.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | 'use strict'; 4 | 5 | const fs = require('fs'); 6 | const Parser = require('../index'); 7 | const argv = process.argv.slice(2); 8 | 9 | if (argv.length < 1) { 10 | console.log('Usage: v8-gc-log-parse '); 11 | process.exit(1); 12 | } 13 | 14 | const text = fs.readFileSync(argv[0], {encoding: 'utf8'}); 15 | const parser = new Parser(); 16 | const parsed = parser.parseAllToData(text); 17 | process.stdout.write(JSON.stringify(parsed, null, 2) + '\n'); 18 | -------------------------------------------------------------------------------- /doc/demo/.gitignore: -------------------------------------------------------------------------------- 1 | bundle.js 2 | 3 | -------------------------------------------------------------------------------- /doc/demo/alinodeParse.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | (function() { 4 | var GC_TYPES = { 5 | s: 'Scavenge', 6 | ms: 'Mark-sweep' 7 | }; 8 | 9 | function migrateNVPLog(obj, d) { 10 | var keys = Object.keys(obj); 11 | var newObj = {}; 12 | for (var i = 0; i < keys.length; ++i) { 13 | var key = keys[i]; 14 | var value = obj[key]; 15 | if (key === 'gc') { 16 | newObj.gc_type = GC_TYPES[value]; 17 | } else if (/_rate$/.test(key)) { 18 | newObj[key] = value / 100; 19 | } else { 20 | newObj[key] = value; 21 | } 22 | } 23 | 24 | newObj.time_millis_since_init = d.time_since_init; 25 | 26 | return newObj; 27 | } 28 | 29 | function migrateVerboseLog(obj) { 30 | var newObj = {}; 31 | var keys = Object.keys(obj); 32 | for (var i = 0; i < keys.length; ++i) { 33 | var key = keys[i]; 34 | var value = obj[key]; 35 | if (key === 'external_memory_reported') { 36 | newObj.amount_of_external_allocated_memory = value; 37 | } else if (key === 'total_time_spent_in_gc') { 38 | newObj.total_gc_time_ms = value; 39 | } else if (typeof value === 'object') { 40 | newObj[key] = {}; 41 | var fields = Object.keys(value); 42 | for (var j = 0; j < fields.length; ++j) { 43 | var field = fields[j]; 44 | newObj[key][field] = value[field] * 1024; // KB to B 45 | } 46 | } 47 | } 48 | return newObj; 49 | } 50 | 51 | function parse(logs) { 52 | var parser = new GCLParser(); 53 | var data = parser.parseAllToData(logs); 54 | var merged = data.reduce(function(arr, d, i) { 55 | var obj = d.data; 56 | var newObj, prevObj; 57 | if (d.type === 'nvp') { 58 | newObj = migrateNVPLog(obj, d); 59 | newObj.log_type = 'nvp'; 60 | arr.push(newObj); 61 | } else if (d.type === 'verbose') { 62 | if (arr.length > 0 && arr[arr.length - 1].log_type === 'nvp') { 63 | prevObj = arr[arr.length - 1]; 64 | newObj = migrateVerboseLog(obj); 65 | Object.assign(prevObj, newObj); 66 | prevObj.log_type = undefined; 67 | } else { 68 | console.log('Verbose log not following NVP'); 69 | } 70 | } else { 71 | console.log('Discard gc log'); 72 | } 73 | return arr; 74 | }, []); 75 | return merged; 76 | } 77 | 78 | window.parseGCLog = parse; 79 | })(); 80 | -------------------------------------------------------------------------------- /doc/demo/build.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | browserify demo.js -o bundle.js 4 | 5 | -------------------------------------------------------------------------------- /doc/demo/demo.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | (function() { 4 | const parse = parseGCLog; 5 | 6 | fetch('data.json').then(res => res.json()).then(logs => { 7 | 8 | let logElement = document.getElementById('log'); 9 | let resultElement = document.getElementById('result'); 10 | 11 | function showLog(log) { 12 | let result; 13 | try { 14 | const data = parse(log); 15 | result = JSON.stringify(data, null, 2); 16 | } catch (e) { 17 | result = e.stack; 18 | } 19 | logElement.textContent = log; 20 | document.getElementById('result').textContent = result; 21 | } 22 | 23 | function showLogForButton(e) { 24 | logElement.contentEditable = 'false'; 25 | document.getElementById('parse').classList.add('hidden'); 26 | const log = logs[e.target.value]; 27 | showLog(log); 28 | } 29 | 30 | const switches = document.getElementsByClassName('j-log-switch'); 31 | for (let i = 0; i < switches.length; ++i) { 32 | switches[i].addEventListener('click', showLogForButton); 33 | } 34 | 35 | document.getElementById('custom').addEventListener('click', function(e) { 36 | document.getElementById('parse').classList.remove('hidden'); 37 | logElement.textContent = ''; 38 | logElement.contentEditable = 'true'; 39 | logElement.focus(); 40 | }); 41 | 42 | document.getElementById('parse').addEventListener('click', function(e) { 43 | showLog(logElement.textContent + '\n'); 44 | }); 45 | 46 | showLog(logs.verbose_nvp); 47 | }); 48 | 49 | })(); 50 | -------------------------------------------------------------------------------- /doc/demo/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | V8 GC Log ParserDemo 6 | 21 | 22 | 23 | 24 |

Choose type of logs

25 |
26 | 27 | 28 | 29 | 30 | 31 | 32 |
33 | 34 |

Log

35 |

36 |   
37 | 
38 |   

Result

39 |

40 |   
41 |   
42 |   
43 | 
44 | 
45 | 


--------------------------------------------------------------------------------
/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | 
3 | module.exports = require('./lib/parser');
4 | 


--------------------------------------------------------------------------------
/lib/lexer.js:
--------------------------------------------------------------------------------
  1 | 'use strict';
  2 | 
  3 | const Sym = require('./sym');
  4 | const types = require('./types');
  5 | 
  6 | const INTEGER = types.INTEGER;
  7 | const NUMBER = types.NUMBER;
  8 | const DECIMAL = types.DECIMAL;
  9 | const STRING = types.STRING;
 10 | const LITERAL = types.LITERAL;
 11 | const HEX = types.HEX;
 12 | 
 13 | const MS = types.MS;
 14 | const MB = types.MB;
 15 | const KB = types.KB;
 16 | const ARROW = types.ARROW;
 17 | const SCAVENGE = types.SCAVENGE;
 18 | const MARK_SWEEP = types.MARK_SWEEP;
 19 | const MEMORY_ALLOCATOR = types.MEMORY_ALLOCATOR;
 20 | const OLD_SPACE = types.OLD_SPACE;
 21 | const NEW_SPACE = types.NEW_SPACE;
 22 | const OLD_POINTERS = types.OLD_POINTERS;
 23 | const OLD_DATA_SPACE = types.OLD_DATA_SPACE;
 24 | const CODE_SPACE = types.CODE_SPACE;
 25 | const MAP_SPACE = types.MAP_SPACE;
 26 | const CELL_SPACE = types.CELL_SPACE;
 27 | const PROPERTY_CELL_SPACE = types.PROPERTY_CELL_SPACE;
 28 | const LARGE_OBJECT_SPACE = types.LARGE_OBJECT_SPACE;
 29 | const ALL_SPACES = types.ALL_SPACES;
 30 | const TOTAL_TIME = types.TOTAL_TIME;
 31 | const EXTERNAL_MEMORY = types.EXTERNAL_MEMORY;
 32 | const EXTERNAL_MEMORY_GLOBAL = types.EXTERNAL_MEMORY_GLOBAL;
 33 | const USED = types.USED;
 34 | const AVAILABLE = types.AVAILABLE;
 35 | const COMMITED = types.COMMITED;
 36 | const PROMOTED = types.PROMOTED;
 37 | const PROMOTION = types.PROMOTION;
 38 | const START = types.START;
 39 | const READ_ONLY_SPACE = types.READ_ONLY_SPACE;
 40 | 
 41 | // TODO: DFAs and `startsWith` would be better
 42 | // Most regex start with ^[\t ]* and ends with \b
 43 | // (unless we are confident about the context) anyway
 44 | let dict = {
 45 |   [MS]: 'ms',
 46 |   [KB]: 'KB',
 47 |   [MB]: 'MB',
 48 |   [ARROW]: '->',
 49 |   [SCAVENGE]: 'Scavenge',
 50 |   [MARK_SWEEP]: 'Mark-sweep',
 51 |   [MEMORY_ALLOCATOR]: 'Memory allocator',
 52 |   [NEW_SPACE]: 'New space',
 53 |   [OLD_POINTERS]: 'Old pointers',
 54 |   [OLD_DATA_SPACE]: 'Old data space',
 55 |   [CODE_SPACE]: 'Code space',
 56 |   [MAP_SPACE]: 'Map space',
 57 |   [CELL_SPACE]: 'Cell space',
 58 |   [PROPERTY_CELL_SPACE]: 'PropertyCell space',
 59 |   [LARGE_OBJECT_SPACE]: 'Large object space',
 60 |   [ALL_SPACES]: 'All spaces',
 61 |   [OLD_SPACE]: 'Old space',
 62 |   [EXTERNAL_MEMORY]: 'External memory reported',
 63 |   [EXTERNAL_MEMORY_GLOBAL]: 'External memory global',
 64 |   [TOTAL_TIME]: 'Total time spent in GC',
 65 |   [USED]: 'used',
 66 |   [AVAILABLE]: 'available',
 67 |   [COMMITED]: 'committed',
 68 |   [PROMOTED]: 'promoted',
 69 |   [START]: 'start',
 70 |   [PROMOTION]: 'promotion',
 71 |   [READ_ONLY_SPACE]: 'Read-only space'
 72 | };
 73 | 
 74 | class LexerMark {
 75 |   constructor(rowIndex, colIndex) {
 76 |     this.rowIndex = rowIndex;
 77 |     this.colIndex = colIndex;
 78 |   }
 79 | }
 80 | 
 81 | /* We don't have a lookahead because the grammar is ambiguous, or,
 82 |  * in technical jargons, is neither regular nor LL(1)/LR(1)
 83 |  * e.g.:
 84 |  * a) A word could very well be a keyword or the start of a sentence
 85 |  * b) A literal such as '/' could have no semantic meaning
 86 |  *  (just part of a phrase) or be an important separator
 87 |  * c) Whitespaces might count in some occasions(see above)
 88 |  * If we guess it wrong, it could be very tedious to reassemble a
 89 |  * phrase/sentence from the token we've parsed
 90 |  * The grammar is also subject to change so better make it
 91 |  * more flexible and context sensitive
 92 |  */
 93 | class Lexer {
 94 |   constructor(lines) {
 95 |     this.lines = lines;
 96 |     // the rest of the line we need to consume
 97 |     // we slice the lines because we use those quick an dirty regex
 98 |     // and need that ^
 99 |     // TODO: All the slicing and indexing can not be efficient,
100 |     //       altough these strings should be flat from the start.
101 |     //       Maybe we should use typed arrays instead?
102 |     this.line = this.lines[0];
103 |     this.rowIndex = 0;  // index of the current line
104 |     this.colIndex = 0;  // this index into the current line
105 |   }
106 | 
107 |   markPosition() {
108 |     return new LexerMark(this.rowIndex, this.colIndex);
109 |   }
110 | 
111 |   // TODO: panic mode when we have streaming support
112 |   restorePosition(mark) {
113 |     this.rowIndex = mark.rowIndex;
114 |     this.colIndex = mark.colIndex;
115 |     this.line = this.lines[this.rowIndex].slice(this.colIndex);
116 |   }
117 | 
118 |   isEmptyLine() {
119 |     let index = 0;
120 |     while (index < this.line.length
121 |       && (this.line[index] === '\t' || this.line[index] === ' ')) {
122 |       index++;
123 |     }
124 |     return index === this.line.length;
125 |   }
126 | 
127 |   isEOL() {
128 |     return this.colIndex === this.lines[this.rowIndex].length;
129 |   }
130 | 
131 |   isLastLine() {
132 |     return this.rowIndex + 1 === this.lines.length;
133 |   }
134 | 
135 |   skipLine() {
136 |     this.rowIndex += 1;
137 |     this.colIndex = 0;
138 |     this.line = this.lines[this.rowIndex];
139 |   }
140 | 
141 |   // [12345]
142 |   scanPIDSource(source) {
143 |     let PID = new Sym();
144 |     if (this.scanWithRegex(PID, /^[\t ]*\[(\d{1,5})\]/, INTEGER)) {
145 |       source.pid = PID.data;
146 |       return true;
147 |     }
148 |     return false;
149 |   }
150 | 
151 |   // [12345:0x123a14d]
152 |   scanFullSource(source) {
153 |     let PID = new Sym(), isolate = new Sym();
154 |     let colIndex = this.colIndex;
155 |     if (this.scanWithRegex(PID, /^[\t ]*\[(\d{1,5})\:/, INTEGER)) {
156 |       source.pid = PID.data;
157 |       if (this.scanHex(isolate)) {
158 |         source.isolate = isolate.data;
159 |         return true;
160 |       }
161 |     }
162 |     this.colIndex = colIndex;
163 |     return false;
164 |   }
165 | 
166 |   // [I:0x1234a14d]
167 |   scanIsolateMark(source) {
168 |     let isolate = new Sym();
169 |     if (this.scanWithRegex(isolate, /^[\t ]*\[I\:(0x[0-9a-zA-Z]+)\]/, STRING)) {
170 |       source.isolate = isolate.data;
171 |       return true;
172 |     }
173 |     return false;
174 |   }
175 | 
176 |   // 10495 ms
177 |   scanUpTime(uptime) {
178 |     return this.scanWithRegex(uptime, /^[\t ]*(\d+) ms/, INTEGER);
179 |   }
180 | 
181 |   // evacuate.update_pointers
182 |   scanNVPName(name) {
183 |     if (this.scanWithRegex(name, /^[\t ]*([0-9a-z\.\_]+)=/, STRING)) {
184 |       this.advanceCol(-1);  // =
185 |       return true;
186 |     };
187 |     return false;
188 |   }
189 | 
190 |   scanUntil(str, sym) {
191 |     let index = this.line.indexOf(str);
192 |     if (index === -1) { return false; }
193 |     sym.type = STRING;
194 |     sym.data = this.line.slice(0, index);
195 |     this.advanceCol(index);
196 |     return true;
197 |   }
198 | 
199 |   advanceCol(count) {
200 |     this.colIndex += count;
201 |     this.line = this.lines[this.rowIndex].slice(this.colIndex);
202 |   }
203 | 
204 |   scanWithRegex(sym, regex, type) {
205 |     if (this.isEOL()) {
206 |       return false;
207 |     }
208 |     let match = this.line.match(regex);
209 |     if (!match) { return false; }
210 |     let data = match[1];
211 |     if (sym) {
212 |     sym.type = type;
213 |       if (type === NUMBER || type === DECIMAL || type === INTEGER) {
214 |         sym.data = Number(data);
215 |       } else {
216 |         sym.data = data;
217 |       }
218 |     }
219 |     this.advanceCol(match[0].length);
220 |     return true;
221 |   }
222 | 
223 |   scanKeyWord(type, sym) {
224 |     let str = dict[type];
225 |     let length = this.startsWithIgnoreWS(str);
226 |     if (length) {
227 |       if (sym) {
228 |         sym.type = type;
229 |         sym.data = str;
230 |       }
231 |       this.advanceCol(length);
232 |       return true;
233 |     }
234 |     return false;
235 |   }
236 | 
237 |   scanLiteralIgnoreWS(str, result) {
238 |     let length = this.startsWithIgnoreWS(str);
239 |     if (length) {
240 |       if (result) {
241 |         result.type = LITERAL;
242 |         result.data = str;
243 |       }
244 |       this.advanceCol(length);
245 |       return true;
246 |     }
247 |     return false;
248 |   }
249 | 
250 |   startsWithIgnoreWS(str) {
251 |     let skip = 0;
252 |     let index = 0;
253 | 
254 |     while (this.line[skip] === ' ' || this.line[skip] === '\t') {
255 |       skip++;
256 |     }
257 |     while (skip + index < this.line.length
258 |       && this.line[skip + index] === str[index]) {
259 |       index++;
260 |     }
261 | 
262 |     return index === str.length ? skip + index : 0;
263 |   }
264 | 
265 |   scanHex(result) {
266 |     return this.scanWithRegex(result, /^(0x[0-9a-zA-Z]+)\]/, HEX);
267 |   }
268 | 
269 |   scanDecimal(result) {
270 |     return this.scanWithRegex(result, /^[ \t]*([-]?\d+\.\d+)/, DECIMAL);
271 |   }
272 | 
273 |   scanInteger(result) {
274 |     return this.scanWithRegex(result, /^[ \t]*([-]?\d+)/, INTEGER);
275 |   }
276 | 
277 |   scanNumber(result) {
278 |     return (this.scanDecimal(result) || this.scanInteger(result));
279 |   }
280 | 
281 | }
282 | 
283 | module.exports = Lexer;
284 | 


--------------------------------------------------------------------------------
/lib/sym.js:
--------------------------------------------------------------------------------
 1 | 'use strict';
 2 | 
 3 | class Sym {
 4 |   constructor(type, data) {
 5 |     this.type = type;
 6 |     this.data = data;
 7 |   }
 8 | }
 9 | 
10 | module.exports = Sym;
11 | 


--------------------------------------------------------------------------------
/lib/types.js:
--------------------------------------------------------------------------------
 1 | 'use strict';
 2 | 
 3 | module.exports = {
 4 |   HEX: 'HEX',
 5 |   NUMBER: 'NUMBER',
 6 |   DECIMAL: 'DECIMAL',
 7 |   INTEGER: 'INTEGER',
 8 |   STRING: 'STRING',
 9 |   LITERAL: 'LITERAL',
10 |   MS: 'MS',
11 |   MB: 'MB',
12 |   KB: 'KB',
13 |   ARROW: 'ARROW',
14 |   ISOLATE: 'ISOLATE',
15 |   SCAVENGE: 'scavenge',
16 |   MARK_SWEEP: 'mark_sweep',
17 |   MEMORY_ALLOCATOR: 'memory_allocator',
18 |   NEW_SPACE: 'new_space',
19 |   OLD_POINTERS: 'old_pointers',
20 |   OLD_DATA_SPACE: 'old_data_space',
21 |   CODE_SPACE: 'code_space',
22 |   MAP_SPACE: 'map_space',
23 |   CELL_SPACE: 'cell_space',
24 |   PROPERTY_CELL_SPACE: 'property_cell_space',
25 |   LARGE_OBJECT_SPACE: 'large_object_space',
26 |   ALL_SPACES: 'all_spaces',
27 |   OLD_SPACE: 'old_space',
28 |   TOTAL_TIME: 'total_time_spent_in_gc',
29 |   EXTERNAL_MEMORY: 'external_memory_reported',
30 |   EXTERNAL_MEMORY_GLOBAL: 'external_memory_global',
31 |   USED: 'used',
32 |   AVAILABLE: 'available',
33 |   COMMITED: 'committed',
34 |   PROMOTED: 'promoted',
35 |   START: 'start',
36 |   PROMOTION: 'promotion',
37 |   READ_ONLY_SPACE: 'read_only_space'
38 | };
39 | 


--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
 1 | {
 2 |   "name": "v8-gc-log-parser",
 3 |   "version": "1.1.3",
 4 |   "description": "Parser for V8 Garbage Collection Logs",
 5 |   "main": "index.js",
 6 |   "scripts": {
 7 |     "test": "$(npm bin)/jest test/index.test.js",
 8 |     "build": "$(npm bin)/browserify -s GCLParser index.js -o bundle.js -t babelify"
 9 |   },
10 |   "author": {
11 |     "name": "Joyee Cheung",
12 |     "email": "joyeec9h3@gmail.com"
13 |   },
14 |   "repository": {
15 |     "type": "git",
16 |     "url": "https://github.com/aliyun-node/v8-gc-log-parser.git"
17 |   },
18 |   "maintainers": [
19 |     {
20 |       "name": "Joyee Cheung",
21 |       "email": "joyeec9h3@gmail.com"
22 |     }
23 |   ],
24 |   "bin": {
25 |     "v8-gc-log-parse": "bin/parse.js"
26 |   },
27 |   "license": "MIT",
28 |   "devDependencies": {
29 |     "babel-preset-es2015": "^6.24.1",
30 |     "babelify": "^7.3.0",
31 |     "browserify": "^14.4.0",
32 |     "istanbul": "^0.4.5",
33 |     "jest": "^20.0.4"
34 |   }
35 | }
36 | 


--------------------------------------------------------------------------------
/test/data/alinode_v3_nvp.in:
--------------------------------------------------------------------------------
1 | [77887:0x103800000]     2359 ms: pause=0.4 mutator=127.5 gc=s reduce_memory=0 heap.prologue=0.00 heap.epilogue=0.00 heap.epilogue.reduce_new_space=0.00 heap.external.prologue=0.00 heap.external.epilogue=0.01 heap.external_weak_global_handles=0.00 scavenge=0.36 evacuate=0.00 old_new=0.10 weak=0.00 roots=0.02 semispace=0.14 steps_count=0 steps_took=0.0 scavenge_throughput=9910722 total_size_before=12435752 total_size_after=8443336 holes_size_before=483032 holes_size_after=398576 allocated=4159496 promoted=84456 semi_space_copied=47632 nodes_died_in_new=3 nodes_copied_in_new=4 nodes_promoted=0 promotion_ratio=2.0% average_survival_ratio=2.3% promotion_rate=88.8% semi_space_copy_rate=1.2% new_space_allocation_throughput=30547.4 unmapper_chunks=0 unmapper_delayed_chunks=0 context_disposal_rate=0.0
2 | [77887:0x103800000]     2364 ms: pause=0.6 mutator=4.3 gc=ms reduce_memory=0 heap.prologue=0.00 heap.epilogue=0.00 heap.epilogue.reduce_new_space=0.00 heap.external.prologue=0.0 heap.external.epilogue=0.0 heap.external.weak_global_handles=0.0 clear=0 clear.dependent_code=0.0 clear.maps=0.0 clear.slots_buffer=0.0 clear.store_buffer=0.0 clear.string_table=0.0 clear.weak_cells=0.0 clear.weak_collections=0.0 clear.weak_lists=0.0 epilogue=0.0 evacuate=0.2 evacuate.candidates=0.0 evacuate.clean_up=0.0 evacuate.copy=0.1 evacuate.prologue=0.0 evacuate.epilogue=0.0 evacuate.rebalance=0.0 evacuate.update_pointers=0.1 evacuate.update_pointers.to_new_roots=0.0 evacuate.update_pointers.slots=0.1 evacuate.update_pointers.weak=0.0 finish=0.1 mark=0.0 mark.finish_incremental=0.0 mark.roots=0.0 mark.weak_closure=0.0 mark.weak_closure.ephemeral=0.0 mark.weak_closure.weak_handles=0.0 mark.weak_closure.weak_roots=0.0 mark.weak_closure.harmony=0.0 mark.wrapper_prologue=0.0 mark.wrapper_epilogue=0.0 mark.wrapper_tracing=0.0 prologue=0.0 sweep=0.0 sweep.code=0.0 sweep.map=0.0 sweep.old=0.0 incremental=3.9 incremental.finalize=0.2 incremental.finalize.body=0.2 incremental.finalize.external.prologue=0.0 incremental.finalize.external.epilogue=0.0 incremental.sweeping=0.0 incremental.wrapper_prologue=0.0 incremental.wrapper_tracing=0.0 incremental_wrapper_tracing_longest_step=0.0 incremental_finalize_longest_step=0.1 incremental_finalize_steps_count=2 incremental_longest_step=0.9 incremental_steps_count=8 incremental_marking_throughput=1498665 incremental_walltime_duration=5 total_size_before=8450288 total_size_after=6007384 holes_size_before=398576 holes_size_after=488328 allocated=6952 promoted=7864 semi_space_copied=4600 nodes_died_in_new=1 nodes_copied_in_new=1 nodes_promoted=3 promotion_ratio=14.4% average_survival_ratio=4.3% promotion_rate=16.5% semi_space_copy_rate=8.4% new_space_allocation_throughput=30188.6 unmapper_chunks=0 unmapper_delayed_chunks=0 context_disposal_rate=0.0 compaction_speed=261530
3 | [77887:0x103800000]     2502 ms: pause=0.2 mutator=137.3 gc=s reduce_memory=0 heap.prologue=0.00 heap.epilogue=0.00 heap.epilogue.reduce_new_space=0.00 heap.external.prologue=0.00 heap.external.epilogue=0.00 heap.external_weak_global_handles=0.00 scavenge=0.21 evacuate=0.00 old_new=0.07 weak=0.00 roots=0.02 semispace=0.04 steps_count=0 steps_took=0.0 scavenge_throughput=10591689 total_size_before=10237088 total_size_after=6153856 holes_size_before=2230488 holes_size_after=2228584 allocated=4229704 promoted=1904 semi_space_copied=39512 nodes_died_in_new=6 nodes_copied_in_new=3 nodes_promoted=0 promotion_ratio=0.0% average_survival_ratio=4.2% promotion_rate=41.4% semi_space_copy_rate=1.0% new_space_allocation_throughput=29999.4 unmapper_chunks=0 unmapper_delayed_chunks=0 context_disposal_rate=0.0
4 | 


--------------------------------------------------------------------------------
/test/data/alinode_v3_nvp.out:
--------------------------------------------------------------------------------
  1 | [
  2 |   {
  3 |     "pid": 77887,
  4 |     "isolate": "0x103800000",
  5 |     "time_since_init": 2359,
  6 |     "data": {
  7 |       "pause": 0.4,
  8 |       "mutator": 127.5,
  9 |       "gc": "s",
 10 |       "reduce_memory": 0,
 11 |       "heap.prologue": 0,
 12 |       "heap.epilogue": 0,
 13 |       "heap.epilogue.reduce_new_space": 0,
 14 |       "heap.external.prologue": 0,
 15 |       "heap.external.epilogue": 0.01,
 16 |       "heap.external_weak_global_handles": 0,
 17 |       "scavenge": 0.36,
 18 |       "evacuate": 0,
 19 |       "old_new": 0.1,
 20 |       "weak": 0,
 21 |       "roots": 0.02,
 22 |       "semispace": 0.14,
 23 |       "steps_count": 0,
 24 |       "steps_took": 0,
 25 |       "scavenge_throughput": 9910722,
 26 |       "total_size_before": 12435752,
 27 |       "total_size_after": 8443336,
 28 |       "holes_size_before": 483032,
 29 |       "holes_size_after": 398576,
 30 |       "allocated": 4159496,
 31 |       "promoted": 84456,
 32 |       "semi_space_copied": 47632,
 33 |       "nodes_died_in_new": 3,
 34 |       "nodes_copied_in_new": 4,
 35 |       "nodes_promoted": 0,
 36 |       "promotion_ratio": 2,
 37 |       "average_survival_ratio": 2.3,
 38 |       "promotion_rate": 88.8,
 39 |       "semi_space_copy_rate": 1.2,
 40 |       "new_space_allocation_throughput": 30547.4,
 41 |       "unmapper_chunks": 0,
 42 |       "unmapper_delayed_chunks": 0,
 43 |       "context_disposal_rate": 0
 44 |     },
 45 |     "type": "nvp"
 46 |   },
 47 |   {
 48 |     "pid": 77887,
 49 |     "isolate": "0x103800000",
 50 |     "time_since_init": 2364,
 51 |     "data": {
 52 |       "pause": 0.6,
 53 |       "mutator": 4.3,
 54 |       "gc": "ms",
 55 |       "reduce_memory": 0,
 56 |       "heap.prologue": 0,
 57 |       "heap.epilogue": 0,
 58 |       "heap.epilogue.reduce_new_space": 0,
 59 |       "heap.external.prologue": 0,
 60 |       "heap.external.epilogue": 0,
 61 |       "heap.external.weak_global_handles": 0,
 62 |       "clear": 0,
 63 |       "clear.dependent_code": 0,
 64 |       "clear.maps": 0,
 65 |       "clear.slots_buffer": 0,
 66 |       "clear.store_buffer": 0,
 67 |       "clear.string_table": 0,
 68 |       "clear.weak_cells": 0,
 69 |       "clear.weak_collections": 0,
 70 |       "clear.weak_lists": 0,
 71 |       "epilogue": 0,
 72 |       "evacuate": 0.2,
 73 |       "evacuate.candidates": 0,
 74 |       "evacuate.clean_up": 0,
 75 |       "evacuate.copy": 0.1,
 76 |       "evacuate.prologue": 0,
 77 |       "evacuate.epilogue": 0,
 78 |       "evacuate.rebalance": 0,
 79 |       "evacuate.update_pointers": 0.1,
 80 |       "evacuate.update_pointers.to_new_roots": 0,
 81 |       "evacuate.update_pointers.slots": 0.1,
 82 |       "evacuate.update_pointers.weak": 0,
 83 |       "finish": 0.1,
 84 |       "mark": 0,
 85 |       "mark.finish_incremental": 0,
 86 |       "mark.roots": 0,
 87 |       "mark.weak_closure": 0,
 88 |       "mark.weak_closure.ephemeral": 0,
 89 |       "mark.weak_closure.weak_handles": 0,
 90 |       "mark.weak_closure.weak_roots": 0,
 91 |       "mark.weak_closure.harmony": 0,
 92 |       "mark.wrapper_prologue": 0,
 93 |       "mark.wrapper_epilogue": 0,
 94 |       "mark.wrapper_tracing": 0,
 95 |       "prologue": 0,
 96 |       "sweep": 0,
 97 |       "sweep.code": 0,
 98 |       "sweep.map": 0,
 99 |       "sweep.old": 0,
100 |       "incremental": 3.9,
101 |       "incremental.finalize": 0.2,
102 |       "incremental.finalize.body": 0.2,
103 |       "incremental.finalize.external.prologue": 0,
104 |       "incremental.finalize.external.epilogue": 0,
105 |       "incremental.sweeping": 0,
106 |       "incremental.wrapper_prologue": 0,
107 |       "incremental.wrapper_tracing": 0,
108 |       "incremental_wrapper_tracing_longest_step": 0,
109 |       "incremental_finalize_longest_step": 0.1,
110 |       "incremental_finalize_steps_count": 2,
111 |       "incremental_longest_step": 0.9,
112 |       "incremental_steps_count": 8,
113 |       "incremental_marking_throughput": 1498665,
114 |       "incremental_walltime_duration": 5,
115 |       "total_size_before": 8450288,
116 |       "total_size_after": 6007384,
117 |       "holes_size_before": 398576,
118 |       "holes_size_after": 488328,
119 |       "allocated": 6952,
120 |       "promoted": 7864,
121 |       "semi_space_copied": 4600,
122 |       "nodes_died_in_new": 1,
123 |       "nodes_copied_in_new": 1,
124 |       "nodes_promoted": 3,
125 |       "promotion_ratio": 14.4,
126 |       "average_survival_ratio": 4.3,
127 |       "promotion_rate": 16.5,
128 |       "semi_space_copy_rate": 8.4,
129 |       "new_space_allocation_throughput": 30188.6,
130 |       "unmapper_chunks": 0,
131 |       "unmapper_delayed_chunks": 0,
132 |       "context_disposal_rate": 0,
133 |       "compaction_speed": 261530
134 |     },
135 |     "type": "nvp"
136 |   },
137 |   {
138 |     "pid": 77887,
139 |     "isolate": "0x103800000",
140 |     "time_since_init": 2502,
141 |     "data": {
142 |       "pause": 0.2,
143 |       "mutator": 137.3,
144 |       "gc": "s",
145 |       "reduce_memory": 0,
146 |       "heap.prologue": 0,
147 |       "heap.epilogue": 0,
148 |       "heap.epilogue.reduce_new_space": 0,
149 |       "heap.external.prologue": 0,
150 |       "heap.external.epilogue": 0,
151 |       "heap.external_weak_global_handles": 0,
152 |       "scavenge": 0.21,
153 |       "evacuate": 0,
154 |       "old_new": 0.07,
155 |       "weak": 0,
156 |       "roots": 0.02,
157 |       "semispace": 0.04,
158 |       "steps_count": 0,
159 |       "steps_took": 0,
160 |       "scavenge_throughput": 10591689,
161 |       "total_size_before": 10237088,
162 |       "total_size_after": 6153856,
163 |       "holes_size_before": 2230488,
164 |       "holes_size_after": 2228584,
165 |       "allocated": 4229704,
166 |       "promoted": 1904,
167 |       "semi_space_copied": 39512,
168 |       "nodes_died_in_new": 6,
169 |       "nodes_copied_in_new": 3,
170 |       "nodes_promoted": 0,
171 |       "promotion_ratio": 0,
172 |       "average_survival_ratio": 4.2,
173 |       "promotion_rate": 41.4,
174 |       "semi_space_copy_rate": 1,
175 |       "new_space_allocation_throughput": 29999.4,
176 |       "unmapper_chunks": 0,
177 |       "unmapper_delayed_chunks": 0,
178 |       "context_disposal_rate": 0
179 |     },
180 |     "type": "nvp"
181 |   }
182 | ]
183 | 


--------------------------------------------------------------------------------
/test/data/alinode_v3_trace.in:
--------------------------------------------------------------------------------
1 | [77580:0x102801600]     2195 ms: Scavenge 12.0 (18.9) -> 8.2 (18.9) MB, 0.4 / 0.0 ms  allocation failure 
2 | [77580:0x102801600]     2201 ms: Mark-sweep 8.2 (18.9) -> 5.9 (18.9) MB, 0.6 / 0.0 ms  (+ 5.1 ms in 10 steps since start of marking, biggest step 1.1 ms, walltime since start of marking 6 ms) finalize incremental marking via task GC in old space requested
3 | [77580:0x102801600]     2322 ms: Scavenge 10.0 (18.9) -> 6.1 (18.9) MB, 0.2 / 0.0 ms  allocation failure 
4 | 


--------------------------------------------------------------------------------
/test/data/alinode_v3_trace.out:
--------------------------------------------------------------------------------
 1 | [
 2 |   {
 3 |     "pid": 77580,
 4 |     "isolate": "0x102801600",
 5 |     "time_since_init": 2195,
 6 |     "data": {
 7 |       "collector": "scavenge",
 8 |       "start_object_size": 12,
 9 |       "end_object_size": 8.2,
10 |       "start_memory_size": 18.9,
11 |       "end_memory_size": 18.9,
12 |       "pause": 0.4,
13 |       "external_time": 0
14 |     },
15 |     "type": "trace"
16 |   },
17 |   {
18 |     "pid": 77580,
19 |     "isolate": "0x102801600",
20 |     "time_since_init": 2201,
21 |     "data": {
22 |       "collector": "mark_sweep",
23 |       "start_object_size": 8.2,
24 |       "end_object_size": 5.9,
25 |       "start_memory_size": 18.9,
26 |       "end_memory_size": 18.9,
27 |       "pause": 0.6,
28 |       "external_time": 0,
29 |       "step_description": "+ 5.1 ms in 10 steps since start of marking, biggest step 1.1 ms, walltime since start of marking 6 ms"
30 |     },
31 |     "type": "trace"
32 |   },
33 |   {
34 |     "pid": 77580,
35 |     "isolate": "0x102801600",
36 |     "time_since_init": 2322,
37 |     "data": {
38 |       "collector": "scavenge",
39 |       "start_object_size": 10,
40 |       "end_object_size": 6.1,
41 |       "start_memory_size": 18.9,
42 |       "end_memory_size": 18.9,
43 |       "pause": 0.2,
44 |       "external_time": 0
45 |     },
46 |     "type": "trace"
47 |   }
48 | ]
49 | 


--------------------------------------------------------------------------------
/test/data/alinode_v3_trace_verbose.in:
--------------------------------------------------------------------------------
 1 | [77437:0x102801600] Shrinking page 0x1f3efbe00000: end 0x1f3efbe80000 -> 0x1f3efbe55000
 2 | [77437:0x102801600] Shrinking page 0x1f3ec3180000: end 0x1f3ec3200000 -> 0x1f3ec3185000
 3 | [77437:0x102801600] Fast promotion mode: false survival rate: 70%
 4 | [77437:0x102801600]       43 ms: Scavenge 3.5 (6.4) -> 3.2 (7.4) MB, 1.0 / 0.0 ms  allocation failure 
 5 | [77437:0x102801600] Memory allocator,   start:   6504 KB, used:   7528 KB, promotion:      0 KB, available: 1458840 KB
 6 | [77437:0x102801600] New space,   start:    983 KB, used:    710 KB, available:    296 KB, committed:   2048 KB, promoted:      0 KB
 7 | [77437:0x102801600] Old space,          start:   1200 KB, used:   1200 KB, available:      0 KB, committed:   1364 KB
 8 | [77437:0x102801600] Code space,         start:   1174 KB, used:   1174 KB, available:      0 KB, committed:   2048 KB
 9 | [77437:0x102801600] Map space,          start:    175 KB, used:    175 KB, available:      0 KB, committed:    532 KB
10 | [77437:0x102801600] Large object space, start:      0 KB, used:      0 KB, available: 1458319 KB, committed:      0 KB
11 | [77437:0x102801600] All spaces,         start:   3534 KB, used:   3260 KB, available: 1458616 KB, committed:   5992 KB
12 | [77437:0x102801600] External memory reported:      8 KB
13 | [77437:0x102801600] External memory global 0 KB
14 | [77437:0x102801600] Total time spent in GC  : 1.0 ms
15 | [77437:0x102801600] Fast promotion mode: false survival rate: 91%[77437:0x102801600]     2650 ms: Heap growing factor 1.7 based on mu=0.970, speed_ratio=0 (gc=0, mutator=1098)
16 | [77437:0x102801600]     2650 ms: Grow: old size: 5910 KB, new limit: 18130 KB (1.7)
17 | [77437:0x102801600]     2650 ms: Mark-sweep 8.2 (18.9) -> 5.8 (18.9) MB, 0.7 / 0.0 ms  (+ 3.8 ms in 7 steps since start of marking, biggest step 0.9 ms, walltime since start of marking 5 ms) finalize incremental marking via task GC in old space requested
18 | [77437:0x102801600] Memory allocator,   start:  19304 KB, used:  19304 KB, promotion:     11 KB, available: 1447064 KB
19 | [77437:0x102801600] New space,   start:     98 KB, used:     15 KB, available:   4012 KB, committed:   8192 KB, promoted:     11 KB
20 | [77437:0x102801600] Old space,          start:   5318 KB, used:   4005 KB, available:    472 KB, committed:   5972 KB
21 | [77437:0x102801600] Code space,         start:   1643 KB, used:   1617 KB, available:      0 KB, committed:   2048 KB
22 | [77437:0x102801600] Map space,          start:   1384 KB, used:    287 KB, available:      0 KB, committed:   1556 KB
23 | [77437:0x102801600] Large object space, start:      0 KB, used:      0 KB, available: 1446543 KB, committed:      0 KB
24 | [77437:0x102801600] All spaces,         start:   8445 KB, used:   5925 KB, available: 1451029 KB, committed:  17768 KB
25 | [77437:0x102801600] External memory reported:     27 KB
26 | [77437:0x102801600] External memory global 0 KB
27 | [77437:0x102801600] Total time spent in GC  : 12.4 ms
28 | [77437:0x102801600] Fast promotion mode: false survival rate: 1%
29 | 


--------------------------------------------------------------------------------
/test/data/alinode_v3_trace_verbose.out:
--------------------------------------------------------------------------------
  1 | [
  2 |   {
  3 |     "pid": 77437,
  4 |     "isolate": "0x102801600",
  5 |     "time_since_init": 43,
  6 |     "data": {
  7 |       "collector": "scavenge",
  8 |       "start_object_size": 3.5,
  9 |       "end_object_size": 3.2,
 10 |       "start_memory_size": 6.4,
 11 |       "end_memory_size": 7.4,
 12 |       "pause": 1,
 13 |       "external_time": 0
 14 |     },
 15 |     "type": "trace"
 16 |   },
 17 |   {
 18 |     "pid": 77437,
 19 |     "isolate": "0x102801600",
 20 |     "external_memory_global": 0,
 21 |     "type": "verbose",
 22 |     "data": {
 23 |       "memory_allocator": {
 24 |         "start": 6504,
 25 |         "used": 7528,
 26 |         "promotion": 0,
 27 |         "available": 1458840
 28 |       },
 29 |       "new_space": {
 30 |         "start": 983,
 31 |         "used": 710,
 32 |         "available": 296,
 33 |         "committed": 2048,
 34 |         "promoted": 0
 35 |       },
 36 |       "old_space": {
 37 |         "start": 1200,
 38 |         "used": 1200,
 39 |         "available": 0,
 40 |         "committed": 1364
 41 |       },
 42 |       "code_space": {
 43 |         "start": 1174,
 44 |         "used": 1174,
 45 |         "available": 0,
 46 |         "committed": 2048
 47 |       },
 48 |       "map_space": {
 49 |         "start": 175,
 50 |         "used": 175,
 51 |         "available": 0,
 52 |         "committed": 532
 53 |       },
 54 |       "large_object_space": {
 55 |         "start": 0,
 56 |         "used": 0,
 57 |         "available": 1458319,
 58 |         "committed": 0
 59 |       },
 60 |       "all_spaces": {
 61 |         "start": 3534,
 62 |         "used": 3260,
 63 |         "available": 1458616,
 64 |         "committed": 5992
 65 |       },
 66 |       "external_memory_reported": 8,
 67 |       "total_time_spent_in_gc": 1
 68 |     }
 69 |   },
 70 |   {
 71 |     "pid": 77437,
 72 |     "isolate": "0x102801600",
 73 |     "time_since_init": 2650,
 74 |     "data": {
 75 |       "collector": "mark_sweep",
 76 |       "start_object_size": 8.2,
 77 |       "end_object_size": 5.8,
 78 |       "start_memory_size": 18.9,
 79 |       "end_memory_size": 18.9,
 80 |       "pause": 0.7,
 81 |       "external_time": 0,
 82 |       "step_description": "+ 3.8 ms in 7 steps since start of marking, biggest step 0.9 ms, walltime since start of marking 5 ms"
 83 |     },
 84 |     "type": "trace"
 85 |   },
 86 |   {
 87 |     "pid": 77437,
 88 |     "isolate": "0x102801600",
 89 |     "external_memory_global": 0,
 90 |     "type": "verbose",
 91 |     "data": {
 92 |       "memory_allocator": {
 93 |         "start": 19304,
 94 |         "used": 19304,
 95 |         "promotion": 11,
 96 |         "available": 1447064
 97 |       },
 98 |       "new_space": {
 99 |         "start": 98,
100 |         "used": 15,
101 |         "available": 4012,
102 |         "committed": 8192,
103 |         "promoted": 11
104 |       },
105 |       "old_space": {
106 |         "start": 5318,
107 |         "used": 4005,
108 |         "available": 472,
109 |         "committed": 5972
110 |       },
111 |       "code_space": {
112 |         "start": 1643,
113 |         "used": 1617,
114 |         "available": 0,
115 |         "committed": 2048
116 |       },
117 |       "map_space": {
118 |         "start": 1384,
119 |         "used": 287,
120 |         "available": 0,
121 |         "committed": 1556
122 |       },
123 |       "large_object_space": {
124 |         "start": 0,
125 |         "used": 0,
126 |         "available": 1446543,
127 |         "committed": 0
128 |       },
129 |       "all_spaces": {
130 |         "start": 8445,
131 |         "used": 5925,
132 |         "available": 1451029,
133 |         "committed": 17768
134 |       },
135 |       "external_memory_reported": 27,
136 |       "total_time_spent_in_gc": 12.4
137 |     }
138 |   }
139 | ]
140 | 


--------------------------------------------------------------------------------
/test/data/alinode_v3_verbose.in:
--------------------------------------------------------------------------------
 1 | [82132:0x103000000] Memory allocator,   used:  20816 KB, available: 1445552 KB
 2 | [82132:0x103000000] New space,          used:     82 KB, available:   3945 KB, committed:   8192 KB
 3 | [82132:0x103000000] Old space,          used:   5240 KB, available:   1837 KB, committed:   7484 KB
 4 | [82132:0x103000000] Code space,         used:   1648 KB, available:      0 KB, committed:   2048KB
 5 | [82132:0x103000000] Map space,          used:   1401 KB, available:      0 KB, committed:   1556 KB
 6 | [82132:0x103000000] Large object space, used:      0 KB, available: 1445031 KB, committed:      0 KB
 7 | [82132:0x103000000] All spaces,         used:   8373 KB, available: 1450815 KB, committed:  19280KB
 8 | [82132:0x103000000] External memory reported:     50 KB
 9 | [82132:0x103000000] External memory global 0 KB
10 | [82132:0x103000000] Total time spent in GC  : 12.7 ms
11 | [82132:0x103000000] Fast promotion mode: false survival rate: 0%
12 | [82132:0x103000000]     2679 ms: Heap growing factor 1.7 based on mu=0.970, speed_ratio=0 (gc=0, mutator=1235)
13 | [82132:0x103000000]     2679 ms: Grow: old size: 5811 KB, new limit: 18031 KB (1.7)
14 | [82132:0x103000000] Memory allocator,   used:  19280 KB, available: 1447088 KB
15 | [82132:0x103000000] New space,          used:      8 KB, available:   4019 KB, committed:   8192 KB
16 | [82132:0x103000000] Old space,          used:   3888 KB, available:   1579 KB, committed:   5948 KB
17 | [82132:0x103000000] Code space,         used:   1630 KB, available:      0 KB, committed:   2048KB
18 | [82132:0x103000000] Map space,          used:    291 KB, available:      0 KB, committed:   1556 KB
19 | [82132:0x103000000] Large object space, used:      0 KB, available: 1446567 KB, committed:      0 KB
20 | [82132:0x103000000] All spaces,         used:   5819 KB, available: 1452166 KB, committed:  17744KB
21 | [82132:0x103000000] External memory reported:     51 KB
22 | [82132:0x103000000] External memory global 0 KB
23 | [82132:0x103000000] Total time spent in GC  : 13.7 ms
24 | [82132:0x103000000] Fast promotion mode: false survival rate: 1%
25 | [82132:0x103000000] Memory allocator,   used:  19280 KB, available: 1447088 KB
26 | [82132:0x103000000] New space,          used:     50 KB, available:   3977 KB, committed:   8192 KB
27 | [82132:0x103000000] Old space,          used:   3921 KB, available:   1895 KB, committed:   5948 KB
28 | [82132:0x103000000] Code space,         used:   1632 KB, available:    331 KB, committed:   2048KB
29 | [82132:0x103000000] Map space,          used:    353 KB, available:   1168 KB, committed:   1556 KB
30 | [82132:0x103000000] Large object space, used:      0 KB, available: 1446567 KB, committed:      0 KB
31 | [82132:0x103000000] All spaces,         used:   5958 KB, available: 1453939 KB, committed:  17744KB
32 | [82132:0x103000000] External memory reported:     28 KB
33 | [82132:0x103000000] External memory global 0 KB
34 | [82132:0x103000000] Total time spent in GC  : 14.1 ms
35 | [82132:0x103000000] Fast promotion mode: false survival rate: 1%
36 | [82132:0x103000000] Memory allocator,   used:  19280 KB, available: 1447088 KB
37 | [82132:0x103000000] New space,          used:     98 KB, available:   3929 KB, committed:   8192 KB
38 | [82132:0x103000000] Old space,          used:   3988 KB, available:   1812 KB, committed:   5948 KB
39 | [82132:0x103000000] Code space,         used:   1635 KB, available:    331 KB, committed:   2048KB
40 | [82132:0x103000000] Map space,          used:    415 KB, available:   1039 KB, committed:   1556 KB
41 | [82132:0x103000000] Large object space, used:      0 KB, available: 1446567 KB, committed:      0 KB
42 | [82132:0x103000000] All spaces,         used:   6137 KB, available: 1453680 KB, committed:  17744KB
43 | [82132:0x103000000] External memory reported:     30 KB
44 | [82132:0x103000000] External memory global 0 KB
45 | [82132:0x103000000] Total time spent in GC  : 14.4 ms
46 | [82132:0x103000000] Fast promotion mode: false survival rate: 2%
47 | 


--------------------------------------------------------------------------------
/test/data/alinode_v3_verbose.out:
--------------------------------------------------------------------------------
  1 | [
  2 |   {
  3 |     "pid": 82132,
  4 |     "isolate": "0x103000000",
  5 |     "external_memory_global": 0,
  6 |     "type": "verbose",
  7 |     "data": {
  8 |       "memory_allocator": {
  9 |         "used": 20816,
 10 |         "available": 1445552
 11 |       },
 12 |       "new_space": {
 13 |         "used": 82,
 14 |         "available": 3945,
 15 |         "committed": 8192
 16 |       },
 17 |       "old_space": {
 18 |         "used": 5240,
 19 |         "available": 1837,
 20 |         "committed": 7484
 21 |       },
 22 |       "code_space": {
 23 |         "used": 1648,
 24 |         "available": 0,
 25 |         "committed": 2048
 26 |       },
 27 |       "map_space": {
 28 |         "used": 1401,
 29 |         "available": 0,
 30 |         "committed": 1556
 31 |       },
 32 |       "large_object_space": {
 33 |         "used": 0,
 34 |         "available": 1445031,
 35 |         "committed": 0
 36 |       },
 37 |       "all_spaces": {
 38 |         "used": 8373,
 39 |         "available": 1450815,
 40 |         "committed": 19280
 41 |       },
 42 |       "external_memory_reported": 50,
 43 |       "total_time_spent_in_gc": 12.7
 44 |     }
 45 |   },
 46 |   {
 47 |     "pid": 82132,
 48 |     "isolate": "0x103000000",
 49 |     "external_memory_global": 0,
 50 |     "type": "verbose",
 51 |     "data": {
 52 |       "memory_allocator": {
 53 |         "used": 19280,
 54 |         "available": 1447088
 55 |       },
 56 |       "new_space": {
 57 |         "used": 8,
 58 |         "available": 4019,
 59 |         "committed": 8192
 60 |       },
 61 |       "old_space": {
 62 |         "used": 3888,
 63 |         "available": 1579,
 64 |         "committed": 5948
 65 |       },
 66 |       "code_space": {
 67 |         "used": 1630,
 68 |         "available": 0,
 69 |         "committed": 2048
 70 |       },
 71 |       "map_space": {
 72 |         "used": 291,
 73 |         "available": 0,
 74 |         "committed": 1556
 75 |       },
 76 |       "large_object_space": {
 77 |         "used": 0,
 78 |         "available": 1446567,
 79 |         "committed": 0
 80 |       },
 81 |       "all_spaces": {
 82 |         "used": 5819,
 83 |         "available": 1452166,
 84 |         "committed": 17744
 85 |       },
 86 |       "external_memory_reported": 51,
 87 |       "total_time_spent_in_gc": 13.7
 88 |     }
 89 |   },
 90 |   {
 91 |     "pid": 82132,
 92 |     "isolate": "0x103000000",
 93 |     "external_memory_global": 0,
 94 |     "type": "verbose",
 95 |     "data": {
 96 |       "memory_allocator": {
 97 |         "used": 19280,
 98 |         "available": 1447088
 99 |       },
100 |       "new_space": {
101 |         "used": 50,
102 |         "available": 3977,
103 |         "committed": 8192
104 |       },
105 |       "old_space": {
106 |         "used": 3921,
107 |         "available": 1895,
108 |         "committed": 5948
109 |       },
110 |       "code_space": {
111 |         "used": 1632,
112 |         "available": 331,
113 |         "committed": 2048
114 |       },
115 |       "map_space": {
116 |         "used": 353,
117 |         "available": 1168,
118 |         "committed": 1556
119 |       },
120 |       "large_object_space": {
121 |         "used": 0,
122 |         "available": 1446567,
123 |         "committed": 0
124 |       },
125 |       "all_spaces": {
126 |         "used": 5958,
127 |         "available": 1453939,
128 |         "committed": 17744
129 |       },
130 |       "external_memory_reported": 28,
131 |       "total_time_spent_in_gc": 14.1
132 |     }
133 |   },
134 |   {
135 |     "pid": 82132,
136 |     "isolate": "0x103000000",
137 |     "external_memory_global": 0,
138 |     "type": "verbose",
139 |     "data": {
140 |       "memory_allocator": {
141 |         "used": 19280,
142 |         "available": 1447088
143 |       },
144 |       "new_space": {
145 |         "used": 98,
146 |         "available": 3929,
147 |         "committed": 8192
148 |       },
149 |       "old_space": {
150 |         "used": 3988,
151 |         "available": 1812,
152 |         "committed": 5948
153 |       },
154 |       "code_space": {
155 |         "used": 1635,
156 |         "available": 331,
157 |         "committed": 2048
158 |       },
159 |       "map_space": {
160 |         "used": 415,
161 |         "available": 1039,
162 |         "committed": 1556
163 |       },
164 |       "large_object_space": {
165 |         "used": 0,
166 |         "available": 1446567,
167 |         "committed": 0
168 |       },
169 |       "all_spaces": {
170 |         "used": 6137,
171 |         "available": 1453680,
172 |         "committed": 17744
173 |       },
174 |       "external_memory_reported": 30,
175 |       "total_time_spent_in_gc": 14.4
176 |     }
177 |   }
178 | ]
179 | 


--------------------------------------------------------------------------------
/test/data/alinode_v3_verbose_nvp.in:
--------------------------------------------------------------------------------
 1 | 
 2 | [78064:0x103800000]     2249 ms: Heap growing factor 1.7 based on mu=0.970, speed_ratio=0 (gc=0, mutator=1425)
 3 | [78064:0x103800000]     2249 ms: Grow: old size: 5835 KB, new limit: 18055 KB (1.7)
 4 | [78064:0x103800000]     2249 ms: pause=0.6 mutator=4.3 gc=ms reduce_memory=0 heap.prologue=0.00 heap.epilogue=0.00 heap.epilogue.reduce_new_space=0.00 heap.external.prologue=0.0 heap.external.epilogue=0.0 heap.external.weak_global_handles=0.0 clear=0 clear.dependent_code=0.0 clear.maps=0.0 clear.slots_buffer=0.0 clear.store_buffer=0.0 clear.string_table=0.0 clear.weak_cells=0.0 clear.weak_collections=0.0 clear.weak_lists=0.0 epilogue=0.0 evacuate=0.2 evacuate.candidates=0.0 evacuate.clean_up=0.0 evacuate.copy=0.1 evacuate.prologue=0.0 evacuate.epilogue=0.0 evacuate.rebalance=0.0 evacuate.update_pointers=0.1 evacuate.update_pointers.to_new_roots=0.0 evacuate.update_pointers.slots=0.1 evacuate.update_pointers.weak=0.0 finish=0.1 mark=0.0 mark.finish_incremental=0.0 mark.roots=0.0 mark.weak_closure=0.0 mark.weak_closure.ephemeral=0.0 mark.weak_closure.weak_handles=0.0 mark.weak_closure.weak_roots=0.0 mark.weak_closure.harmony=0.0 mark.wrapper_prologue=0.0 mark.wrapper_epilogue=0.0 mark.wrapper_tracing=0.0 prologue=0.0 sweep=0.0 sweep.code=0.0 sweep.map=0.0 sweep.old=0.0 incremental=3.8 incremental.finalize=0.2 incremental.finalize.body=0.2 incremental.finalize.external.prologue=0.0 incremental.finalize.external.epilogue=0.0 incremental.sweeping=0.0 incremental.wrapper_prologue=0.0 incremental.wrapper_tracing=0.0 incremental_wrapper_tracing_longest_step=0.0 incremental_finalize_longest_step=0.1 incremental_finalize_steps_count=2 incremental_longest_step=0.9 incremental_steps_count=8 incremental_marking_throughput=1528902 incremental_walltime_duration=5 total_size_before=8482896 total_size_after=5981608 holes_size_before=374920 holes_size_after=486336 allocated=14056 promoted=6200 semi_space_copied=5576 nodes_died_in_new=0 nodes_copied_in_new=2 nodes_promoted=0 promotion_ratio=10.4% average_survival_ratio=4.1% promotion_rate=13.6% semi_space_copy_rate=9.3% new_space_allocation_throughput=32236.7 unmapper_chunks=0 unmapper_delayed_chunks=0 context_disposal_rate=0.0 compaction_speed=250751
 5 | [78064:0x103800000] Memory allocator,   start:  19304 KB, used:  19304 KB, promotion:      6 KB, available: 1447064 KB
 6 | [78064:0x103800000] New space,   start:     58 KB, used:      5 KB, available:   4022 KB, committed:   8192 KB, promoted:      6 KB
 7 | [78064:0x103800000] Old space,          start:   5393 KB, used:   3956 KB, available:    474 KB, committed:   5972 KB
 8 | [78064:0x103800000] Code space,         start:   1611 KB, used:   1592 KB, available:      0 KB, committed:   2048 KB
 9 | [78064:0x103800000] Map space,          start:   1221 KB, used:    287 KB, available:      0 KB, committed:   1556 KB
10 | [78064:0x103800000] Large object space, start:      0 KB, used:      0 KB, available: 1446543 KB, committed:      0 KB
11 | [78064:0x103800000] All spaces,         start:   8284 KB, used:   5841 KB, available: 1451040 KB, committed:  17768 KB
12 | [78064:0x103800000] External memory reported:     79 KB
13 | [78064:0x103800000] External memory global 0 KB
14 | [78064:0x103800000] Total time spent in GC  : 11.8 ms
15 | [78064:0x103800000] Fast promotion mode: false survival rate: 1%
16 | [78064:0x103800000]     2370 ms: pause=0.3 mutator=120.6 gc=s reduce_memory=0 heap.prologue=0.00 heap.epilogue=0.00 heap.epilogue.reduce_new_space=0.00 heap.external.prologue=0.00 heap.external.epilogue=0.00 heap.external_weak_global_handles=0.00 scavenge=0.21 evacuate=0.00 old_new=0.06 weak=0.00 roots=0.02 semispace=0.04 steps_count=0 steps_took=0.0 scavenge_throughput=11458808 total_size_before=10209712 total_size_after=6128584 holes_size_before=2217344 holes_size_after=2217208 allocated=4228104 promoted=136 semi_space_copied=43392 nodes_died_in_new=5 nodes_copied_in_new=4 nodes_promoted=0 promotion_ratio=0.0% average_survival_ratio=3.9% promotion_rate=2.4% semi_space_copy_rate=1.1% new_space_allocation_throughput=32363.7 unmapper_chunks=0 unmapper_delayed_chunks=0 context_disposal_rate=0.0
17 | [78064:0x103800000] Memory allocator,   start:  19304 KB, used:  19304 KB, promotion:      0 KB, available: 1447064 KB
18 | [78064:0x103800000] New space,   start:   4027 KB, used:     42 KB, available:   3985 KB, committed:   8192 KB, promoted:      0 KB
19 | [78064:0x103800000] Old space,          start:   4001 KB, used:   4001 KB, available:   1842 KB, committed:   5972 KB
20 | [78064:0x103800000] Code space,         start:   1600 KB, used:   1600 KB, available:    321 KB, committed:   2048 KB
21 | [78064:0x103800000] Map space,          start:    340 KB, used:    340 KB, available:   1176 KB, committed:   1556 KB
22 | [78064:0x103800000] Large object space, start:      0 KB, used:      0 KB, available: 1446543 KB, committed:      0 KB
23 | [78064:0x103800000] All spaces,         start:   9970 KB, used:   5984 KB, available: 1453869 KB, committed:  17768 KB
24 | [78064:0x103800000] External memory reported:     28 KB
25 | [78064:0x103800000] External memory global 0 KB
26 | [78064:0x103800000] Total time spent in GC  : 12.0 ms
27 | [78064:0x103800000] Fast promotion mode: false survival rate: 1%
28 | [78064:0x103800000]     2492 ms: pause=0.3 mutator=121.2 gc=s reduce_memory=0 heap.prologue=0.00 heap.epilogue=0.00 heap.epilogue.reduce_new_space=0.00 heap.external.prologue=0.00 heap.external.epilogue=0.00 heap.external_weak_global_handles=0.00 scavenge=0.26 evacuate=0.00 old_new=0.09 weak=0.00 roots=0.02 semispace=0.06 steps_count=0 steps_took=0.0 scavenge_throughput=12297421 total_size_before=10331448 total_size_after=6279072 holes_size_before=2094992 holes_size_after=2067256 allocated=4202864 promoted=27736 semi_space_copied=44536 nodes_died_in_new=7 nodes_copied_in_new=3 nodes_promoted=0 promotion_ratio=0.7% average_survival_ratio=3.9% promotion_rate=63.9% semi_space_copy_rate=1.1% new_space_allocation_throughput=32520.5 unmapper_chunks=0 unmapper_delayed_chunks=0 context_disposal_rate=0.0
29 | [78064:0x103800000] Memory allocator,   start:  19304 KB, used:  19304 KB, promotion:     27 KB, available: 1447064 KB
30 | [78064:0x103800000] New space,   start:   4027 KB, used:     43 KB, available:   3984 KB, committed:   8192 KB, promoted:     27 KB
31 | [78064:0x103800000] Old space,          start:   4053 KB, used:   4080 KB, available:   1695 KB, committed:   5972 KB
32 | [78064:0x103800000] Code space,         start:   1615 KB, used:   1615 KB, available:    321 KB, committed:   2048 KB
33 | [78064:0x103800000] Map space,          start:    393 KB, used:    393 KB, available:   1110 KB, committed:   1556 KB
34 | [78064:0x103800000] Large object space, start:      0 KB, used:      0 KB, available: 1446543 KB, committed:      0 KB
35 | [78064:0x103800000] All spaces,         start:  10089 KB, used:   6131 KB, available: 1453656 KB, committed:  17768 KB
36 | [78064:0x103800000] External memory reported:     32 KB
37 | [78064:0x103800000] External memory global 0 KB
38 | [78064:0x103800000] Total time spent in GC  : 12.3 ms
39 | [78064:0x103800000] Fast promotion mode: false survival rate: 1%
40 | 


--------------------------------------------------------------------------------
/test/data/alinode_v3_verbose_nvp.out:
--------------------------------------------------------------------------------
  1 | [
  2 |   {
  3 |     "pid": 78064,
  4 |     "isolate": "0x103800000",
  5 |     "time_since_init": 2249,
  6 |     "data": {
  7 |       "pause": 0.6,
  8 |       "mutator": 4.3,
  9 |       "gc": "ms",
 10 |       "reduce_memory": 0,
 11 |       "heap.prologue": 0,
 12 |       "heap.epilogue": 0,
 13 |       "heap.epilogue.reduce_new_space": 0,
 14 |       "heap.external.prologue": 0,
 15 |       "heap.external.epilogue": 0,
 16 |       "heap.external.weak_global_handles": 0,
 17 |       "clear": 0,
 18 |       "clear.dependent_code": 0,
 19 |       "clear.maps": 0,
 20 |       "clear.slots_buffer": 0,
 21 |       "clear.store_buffer": 0,
 22 |       "clear.string_table": 0,
 23 |       "clear.weak_cells": 0,
 24 |       "clear.weak_collections": 0,
 25 |       "clear.weak_lists": 0,
 26 |       "epilogue": 0,
 27 |       "evacuate": 0.2,
 28 |       "evacuate.candidates": 0,
 29 |       "evacuate.clean_up": 0,
 30 |       "evacuate.copy": 0.1,
 31 |       "evacuate.prologue": 0,
 32 |       "evacuate.epilogue": 0,
 33 |       "evacuate.rebalance": 0,
 34 |       "evacuate.update_pointers": 0.1,
 35 |       "evacuate.update_pointers.to_new_roots": 0,
 36 |       "evacuate.update_pointers.slots": 0.1,
 37 |       "evacuate.update_pointers.weak": 0,
 38 |       "finish": 0.1,
 39 |       "mark": 0,
 40 |       "mark.finish_incremental": 0,
 41 |       "mark.roots": 0,
 42 |       "mark.weak_closure": 0,
 43 |       "mark.weak_closure.ephemeral": 0,
 44 |       "mark.weak_closure.weak_handles": 0,
 45 |       "mark.weak_closure.weak_roots": 0,
 46 |       "mark.weak_closure.harmony": 0,
 47 |       "mark.wrapper_prologue": 0,
 48 |       "mark.wrapper_epilogue": 0,
 49 |       "mark.wrapper_tracing": 0,
 50 |       "prologue": 0,
 51 |       "sweep": 0,
 52 |       "sweep.code": 0,
 53 |       "sweep.map": 0,
 54 |       "sweep.old": 0,
 55 |       "incremental": 3.8,
 56 |       "incremental.finalize": 0.2,
 57 |       "incremental.finalize.body": 0.2,
 58 |       "incremental.finalize.external.prologue": 0,
 59 |       "incremental.finalize.external.epilogue": 0,
 60 |       "incremental.sweeping": 0,
 61 |       "incremental.wrapper_prologue": 0,
 62 |       "incremental.wrapper_tracing": 0,
 63 |       "incremental_wrapper_tracing_longest_step": 0,
 64 |       "incremental_finalize_longest_step": 0.1,
 65 |       "incremental_finalize_steps_count": 2,
 66 |       "incremental_longest_step": 0.9,
 67 |       "incremental_steps_count": 8,
 68 |       "incremental_marking_throughput": 1528902,
 69 |       "incremental_walltime_duration": 5,
 70 |       "total_size_before": 8482896,
 71 |       "total_size_after": 5981608,
 72 |       "holes_size_before": 374920,
 73 |       "holes_size_after": 486336,
 74 |       "allocated": 14056,
 75 |       "promoted": 6200,
 76 |       "semi_space_copied": 5576,
 77 |       "nodes_died_in_new": 0,
 78 |       "nodes_copied_in_new": 2,
 79 |       "nodes_promoted": 0,
 80 |       "promotion_ratio": 10.4,
 81 |       "average_survival_ratio": 4.1,
 82 |       "promotion_rate": 13.6,
 83 |       "semi_space_copy_rate": 9.3,
 84 |       "new_space_allocation_throughput": 32236.7,
 85 |       "unmapper_chunks": 0,
 86 |       "unmapper_delayed_chunks": 0,
 87 |       "context_disposal_rate": 0,
 88 |       "compaction_speed": 250751
 89 |     },
 90 |     "type": "nvp"
 91 |   },
 92 |   {
 93 |     "pid": 78064,
 94 |     "isolate": "0x103800000",
 95 |     "external_memory_global": 0,
 96 |     "type": "verbose",
 97 |     "data": {
 98 |       "memory_allocator": {
 99 |         "start": 19304,
100 |         "used": 19304,
101 |         "promotion": 6,
102 |         "available": 1447064
103 |       },
104 |       "new_space": {
105 |         "start": 58,
106 |         "used": 5,
107 |         "available": 4022,
108 |         "committed": 8192,
109 |         "promoted": 6
110 |       },
111 |       "old_space": {
112 |         "start": 5393,
113 |         "used": 3956,
114 |         "available": 474,
115 |         "committed": 5972
116 |       },
117 |       "code_space": {
118 |         "start": 1611,
119 |         "used": 1592,
120 |         "available": 0,
121 |         "committed": 2048
122 |       },
123 |       "map_space": {
124 |         "start": 1221,
125 |         "used": 287,
126 |         "available": 0,
127 |         "committed": 1556
128 |       },
129 |       "large_object_space": {
130 |         "start": 0,
131 |         "used": 0,
132 |         "available": 1446543,
133 |         "committed": 0
134 |       },
135 |       "all_spaces": {
136 |         "start": 8284,
137 |         "used": 5841,
138 |         "available": 1451040,
139 |         "committed": 17768
140 |       },
141 |       "external_memory_reported": 79,
142 |       "total_time_spent_in_gc": 11.8
143 |     }
144 |   },
145 |   {
146 |     "pid": 78064,
147 |     "isolate": "0x103800000",
148 |     "time_since_init": 2370,
149 |     "data": {
150 |       "pause": 0.3,
151 |       "mutator": 120.6,
152 |       "gc": "s",
153 |       "reduce_memory": 0,
154 |       "heap.prologue": 0,
155 |       "heap.epilogue": 0,
156 |       "heap.epilogue.reduce_new_space": 0,
157 |       "heap.external.prologue": 0,
158 |       "heap.external.epilogue": 0,
159 |       "heap.external_weak_global_handles": 0,
160 |       "scavenge": 0.21,
161 |       "evacuate": 0,
162 |       "old_new": 0.06,
163 |       "weak": 0,
164 |       "roots": 0.02,
165 |       "semispace": 0.04,
166 |       "steps_count": 0,
167 |       "steps_took": 0,
168 |       "scavenge_throughput": 11458808,
169 |       "total_size_before": 10209712,
170 |       "total_size_after": 6128584,
171 |       "holes_size_before": 2217344,
172 |       "holes_size_after": 2217208,
173 |       "allocated": 4228104,
174 |       "promoted": 136,
175 |       "semi_space_copied": 43392,
176 |       "nodes_died_in_new": 5,
177 |       "nodes_copied_in_new": 4,
178 |       "nodes_promoted": 0,
179 |       "promotion_ratio": 0,
180 |       "average_survival_ratio": 3.9,
181 |       "promotion_rate": 2.4,
182 |       "semi_space_copy_rate": 1.1,
183 |       "new_space_allocation_throughput": 32363.7,
184 |       "unmapper_chunks": 0,
185 |       "unmapper_delayed_chunks": 0,
186 |       "context_disposal_rate": 0
187 |     },
188 |     "type": "nvp"
189 |   },
190 |   {
191 |     "pid": 78064,
192 |     "isolate": "0x103800000",
193 |     "external_memory_global": 0,
194 |     "type": "verbose",
195 |     "data": {
196 |       "memory_allocator": {
197 |         "start": 19304,
198 |         "used": 19304,
199 |         "promotion": 0,
200 |         "available": 1447064
201 |       },
202 |       "new_space": {
203 |         "start": 4027,
204 |         "used": 42,
205 |         "available": 3985,
206 |         "committed": 8192,
207 |         "promoted": 0
208 |       },
209 |       "old_space": {
210 |         "start": 4001,
211 |         "used": 4001,
212 |         "available": 1842,
213 |         "committed": 5972
214 |       },
215 |       "code_space": {
216 |         "start": 1600,
217 |         "used": 1600,
218 |         "available": 321,
219 |         "committed": 2048
220 |       },
221 |       "map_space": {
222 |         "start": 340,
223 |         "used": 340,
224 |         "available": 1176,
225 |         "committed": 1556
226 |       },
227 |       "large_object_space": {
228 |         "start": 0,
229 |         "used": 0,
230 |         "available": 1446543,
231 |         "committed": 0
232 |       },
233 |       "all_spaces": {
234 |         "start": 9970,
235 |         "used": 5984,
236 |         "available": 1453869,
237 |         "committed": 17768
238 |       },
239 |       "external_memory_reported": 28,
240 |       "total_time_spent_in_gc": 12
241 |     }
242 |   },
243 |   {
244 |     "pid": 78064,
245 |     "isolate": "0x103800000",
246 |     "time_since_init": 2492,
247 |     "data": {
248 |       "pause": 0.3,
249 |       "mutator": 121.2,
250 |       "gc": "s",
251 |       "reduce_memory": 0,
252 |       "heap.prologue": 0,
253 |       "heap.epilogue": 0,
254 |       "heap.epilogue.reduce_new_space": 0,
255 |       "heap.external.prologue": 0,
256 |       "heap.external.epilogue": 0,
257 |       "heap.external_weak_global_handles": 0,
258 |       "scavenge": 0.26,
259 |       "evacuate": 0,
260 |       "old_new": 0.09,
261 |       "weak": 0,
262 |       "roots": 0.02,
263 |       "semispace": 0.06,
264 |       "steps_count": 0,
265 |       "steps_took": 0,
266 |       "scavenge_throughput": 12297421,
267 |       "total_size_before": 10331448,
268 |       "total_size_after": 6279072,
269 |       "holes_size_before": 2094992,
270 |       "holes_size_after": 2067256,
271 |       "allocated": 4202864,
272 |       "promoted": 27736,
273 |       "semi_space_copied": 44536,
274 |       "nodes_died_in_new": 7,
275 |       "nodes_copied_in_new": 3,
276 |       "nodes_promoted": 0,
277 |       "promotion_ratio": 0.7,
278 |       "average_survival_ratio": 3.9,
279 |       "promotion_rate": 63.9,
280 |       "semi_space_copy_rate": 1.1,
281 |       "new_space_allocation_throughput": 32520.5,
282 |       "unmapper_chunks": 0,
283 |       "unmapper_delayed_chunks": 0,
284 |       "context_disposal_rate": 0
285 |     },
286 |     "type": "nvp"
287 |   },
288 |   {
289 |     "pid": 78064,
290 |     "isolate": "0x103800000",
291 |     "external_memory_global": 0,
292 |     "type": "verbose",
293 |     "data": {
294 |       "memory_allocator": {
295 |         "start": 19304,
296 |         "used": 19304,
297 |         "promotion": 27,
298 |         "available": 1447064
299 |       },
300 |       "new_space": {
301 |         "start": 4027,
302 |         "used": 43,
303 |         "available": 3984,
304 |         "committed": 8192,
305 |         "promoted": 27
306 |       },
307 |       "old_space": {
308 |         "start": 4053,
309 |         "used": 4080,
310 |         "available": 1695,
311 |         "committed": 5972
312 |       },
313 |       "code_space": {
314 |         "start": 1615,
315 |         "used": 1615,
316 |         "available": 321,
317 |         "committed": 2048
318 |       },
319 |       "map_space": {
320 |         "start": 393,
321 |         "used": 393,
322 |         "available": 1110,
323 |         "committed": 1556
324 |       },
325 |       "large_object_space": {
326 |         "start": 0,
327 |         "used": 0,
328 |         "available": 1446543,
329 |         "committed": 0
330 |       },
331 |       "all_spaces": {
332 |         "start": 10089,
333 |         "used": 6131,
334 |         "available": 1453656,
335 |         "committed": 17768
336 |       },
337 |       "external_memory_reported": 32,
338 |       "total_time_spent_in_gc": 12.3
339 |     }
340 |   }
341 | ]
342 | 


--------------------------------------------------------------------------------
/test/data/ill_formed_nvp.in:
--------------------------------------------------------------------------------
1 | [10114:0x102004600]    15896 ms: 
2 | [10114:0x102004600] pause=8.9 mutator=229.5 gc=s reduce_memory=0 scavenge=8.82 old_new=0.28 weak=0.00 roots=0.05 code=0.00 semispace=8.41 object_groups=0.00 external_prologue=0.00 external_epilogue=0.00 external_weak_global_handles=0.01
3 | [10114:0x102004600]    15896 ms: pause=what mutator=229.5 gc=s reduce_memory=0 scavenge=8.82 old_new=0.28 weak=0.00 roots=0.05 code=0.00 semispace=8.41 object_groups=0.00 external_prologue=0.00 external_epilogue=0.00 external_weak_global_handles=0.01
4 | [10114:0x102004600]    15896 ms: pause8.9 mutator=229.5 gc=s reduce_memory=0 scavenge=8.82 old_new=0.28 weak=0.00 roots=0.05 code=0.00 semispace=8.41 object_groups=0.00 external_prologue=0.00 external_epilogue=0.00 external_weak_global_handles=0.01
5 | [10114:0x102004600    15896 ms: pause=8.9 mutator=229.5 gc=s reduce_memory=0 scavenge=8.82 old_new=0.28 weak=0.00 roots=0.05 code=0.00 semispace=8.41 object_groups=0.00 external_prologue=0.00 external_epilogue=0.00 external_weak_global_handles=0.01 [10114:0x102004600]    15896 ms pause=8.9 mutator=229.5 gc=s reduce_memory=0 scavenge=8.82 old_new=0.28 weak=0.00 roots=0.05 code=0.00 semispace=8.41 object_groups=0.00 external_prologue=0.00 external_epilogue=0.00 external_weak_global_handles=0.01
6 | [10114:0x102004600]    15896 ms: pau se=8.9 mutator=229.5 gc=s reduce_memory=0 scavenge=8.82 old_new=0.28 weak=0.00 roots=0.05 code=0.00 semispace=8.41 object_groups=0.00 external_prologue=0.00 external_epilogue=0.00 external_weak_global_handles=0.01


--------------------------------------------------------------------------------
/test/data/ill_formed_trace.in:
--------------------------------------------------------------------------------
 1 | [28987:0x101804a00]    12910: Mark-sweep 58.8 (95.9) -> 51.0 (96.9) MB, 3.8 / 0 ms (+ 8.2 ms in 101 steps since start of marking, biggest step 0.9 ms) [GC interrupt] [GC in old space requested].
 2 | [28987:0x101804a00]    12910 ms: Mark-sweep 58.8 (95.9) -> 51.0 (96.9) MB FOO
 3 | [28987:0x101804a00]    12910: Ooo 58.8 (95.9) -> 51.0 (96.9) MB, 3.8 / 0 ms (+ 8.2 ms in 101 steps since start of marking, biggest step 0.9 ms) [GC interrupt] [GC in old space requested].
 4 | [28987:0x101804a00]    12860 ms: Scavenge 64.4 (92.9) 51.6 (95.9) MB, 2.7 / 0 ms (+ 0.1 ms in 29 steps since last GC) [allocation failure].
 5 | [28987:0x101804a00]    12860 ms: Scavenge 64.4 (92.9) -> 51.6 (95.9) MB, 2.7 (+ 0.1 ms in 29 steps since last GC) [allocation failure].
 6 | [28987:0x101804a00    12910 ms: Mark-sweep 58.8 (95.9) -> 51.0 (96.9) MB, 3.8 / 0 ms (+ 8.2 ms in 101 steps since start of marking, biggest step 0.9 ms) [GC interrupt] [GC in old space requested].
 7 | [28987:0x101804a00]    12910 ms Mark-sweep 58.8 (95.9) -> 51.0 (96.9) MB, 3.8 / 0 ms (+ 8.2 ms in 101 steps since start of marking, biggest step 0.9 ms) [GC interrupt] [GC in old space requested].
 8 | [28987:0x101804a00]    12910 ms
 9 | [28987:0x101804a00]    12910 ms Mark-sweep 58.8 (95.9) -> 51.0 (96.9) MB, 3.8 / 0 ms
10 | [28987:0x101804a00]    12910 ms Mark-sweep
11 | [28987:0x101804a00]    12910 ms Mark-sweep 58.8 (95.9) -> 51.0 (96.9) MB
12 | 


--------------------------------------------------------------------------------
/test/data/ill_formed_verbose.in:
--------------------------------------------------------------------------------
 1 | [6785:0x103000000 Memory allocator,   used: 142148 KB, available: 1324220 KB
 2 | [6785:0x103000000] Memory allocator   used: 142148 KB, available: 1324220 KB
 3 | [6785:0x103000000] Memory allocator,   used 142148 KB, available: 1324220 KB
 4 | [6785:0x103000000] Memory allocator,   used: 142148, available: 1324220 KB
 5 | 
 6 | [6785:0x103000000] New space,          used:   7025 KB, available:   9094 KB, committed:  32768 KB
 7 | [6785:0x103000000] Old space,          used:  91744 KB, available:   8954 KB, committed: 102356 KB
 8 | [6785:0x103000000] Code space,         used:   1208 KB, available:      0 KB, committed:   2048 KB
 9 | [6785:0x103000000] Map space,          used:    265 KB, available:      0 KB, committed:   1104 KB
10 | [6785:0x103000000] Large object space, used:    781 KB, available: 1323179 KB, committed:    800 KB
11 | [6785:0x103000000] All spaces,         used: 101026 KB, available: 1341228 KB, committed: 139076 KB
12 | [6785:0x103000000] External memory reported:     16 KB
13 | [6785:0x103000000] Total time spent in GC  : 102.0 ms
14 | 
15 | [6785:0x103000000] Memory allocator,   used: 142148 KB, available: 1324220 KB
16 | [6785:0x103000000] New space,          used:   7025 KB, available:   9094 KB, committed:  32768 KB
17 | [6785:0x103000000] Old space,          used:  91744 KB, available:   8954 KB, committed: 102356 KB
18 | [6785:0x103000000] Code space used:   1208 KB, available:      0 KB, committed:   2048 KB
19 | [6785:0x103000000] Map space,          used:    265 KB, available:      0 KB, committed:   1104 KB
20 | [6785:0x103000000] Large object space, used:    781 KB, available: 1323179 KB, committed:    800 KB
21 | [6785:0x103000000] All spaces,         used: 101026 KB, available: 1341228 KB, committed: 139076 KB
22 | [6785:0x103000000] External memory reported:     16 KB
23 | [6785:0x103000000] Total time spent in GC  : 102.0 ms
24 | 
25 | [6785:0x103000000] Memory allocator,   used: 142148 KB, available
26 | [6785:0x103000000] Memory allocator,   used: 142148 KB, available: 1324220 KB
27 | [6785:0x103000000] New space,          used:   7025 KB, available:   9094 KB, committed:  32768 KB
28 | [6785:0x103000000] Old space,          used:  91744 KB, available:   8954 KB, committed: 102356 KB
29 | [6785:0x103000000] Code space,         used:   1208 KB, available:      0 KB, committed:   2048 KB
30 | [6785:0x103000000] Map space,          used:    265 KB, available:      0 KB, committed:   1104 KB
31 | [6785:0x103000000] Large object space, used:    781 KB, available: 1323179 KB, committed:    800 KB
32 | [6785:0x103000000] All spaces,         used: 101026 KB, available: 1341228 KB, committed: 139076 KB
33 | [6785:0x103000000] External memory reported:     16 KB
34 | 
35 | [6785:0x103000000] Memory allocator,   used: 142148 KB, available: 1324220 KB
36 | [6785:0x103000000] New space,          used:   7025 KB, available:   9094 KB, committed:  32768 KB
37 | [6785:0x103000000] Old space,          used:  91744 KB, available:   8954 KB, committed: 102356 KB
38 | [6785:0x103000000] Code space,         used:   1208 KB, available:      0 KB, committed:   2048 KB
39 | [6785:0x103000000] Map space,          used:    265 KB, available:      0 KB, committed:   1104 KB
40 | [6785:0x103000000] Large object space, used:    781 KB, available: 1323179 KB, committed:    800 KB
41 | [6785:0x103000000] All spaces,         used: 101026 KB, available: 1341228 KB, committed: 139076 KB
42 | [6785:0x103000000] External memory reported:
43 | [6785:0x103000000] Total time spent in GC  : 102.0 ms
44 | 
45 | [6785:0x103000000] Memory allocator,   used: 142148 KB, available: 1324220 KB
46 | [6785:0x103000000] New space,          used:   7025 KB, available:   9094 KB, committed:  32768 KB
47 | [6785:0x103000000] Old space,          used:  91744 KB, available:   8954 KB, committed: 102356 KB
48 | [6785:0x103000000] Code space,         used:   1208 KB, available:      0 KB, committed:   2048 KB
49 | [6785:0x103000000] Map space,          used:    265 KB, available:      0 KB, committed:   1104 KB
50 | [6785:0x103000000] Large object space, used:    781 KB, available: 1323179 KB, committed:    800 KB
51 | [6785:0x103000000] All spaces,         used: 101026 KB, available: 1341228 KB, committed: 139076 KB
52 | [6785:0x103000000] External memory reported:     16 KB
53 | [6785:0x103000000] Total time spent in GC  : 
54 | 
55 | [6785:0x103000000] Memory allocator,   used: 142148 KB, available: 1324220 KB
56 | [6785:0x103000000] New space,          used:   7025 KB, available:   9094 KB, committed:  32768 KB
57 | [6785:0x103000000] Old space,          used:  91744 KB, available:   8954 KB, committed: 102356 KB
58 | [6785:0x103000000] Code space,         used:   1208 KB, available:      0 KB, committed:   2048 KB
59 | [6785:0x103000000] Map space,          used:    265 KB, available:      0 KB, committed:   1104 KB
60 | [6785:0x103000000] Large object space, used:    781 KB, available: 1323179 KB, committed:    800 KB


--------------------------------------------------------------------------------
/test/data/minus_value.in:
--------------------------------------------------------------------------------
1 | [52603:0x102800000] [I:0x102800000]       45 ms: pause=0.7 mutator=-1501275000064.5 gc=s external=0.0 mark=0.0 sweep=0.00 sweepns=0.00 sweepos=0.00 sweepcode=0.00 sweepcell=0.00 sweepmap=0.00 evacuate=0.0 new_new=0.0 root_new=0.0 old_new=0.0 compaction_ptrs=0.0 intracompaction_ptrs=0.0 misc_compaction=0.0 weak_closure=0.0 inc_weak_closure=0.0 weakcollection_process=0.0 weakcollection_clear=0.0 weakcollection_abort=0.0 total_size_before=2277616 total_size_after=2006608 holes_size_before=0 holes_size_after=0 allocated=2277616 promoted=0 semi_space_copied=749256 nodes_died_in_new=0 nodes_copied_in_new=4 nodes_promoted=0 promotion_ratio=0.0% average_survival_ratio=73.4% promotion_rate=0.0% semi_space_copy_rate=73.4% new_space_allocation_throughput=0 context_disposal_rate=0.0 steps_count=0 steps_took=0.0 scavenge_throughput=1472242 


--------------------------------------------------------------------------------
/test/data/minus_value.out:
--------------------------------------------------------------------------------
 1 | [
 2 |   {
 3 |     "pid": 52603,
 4 |     "isolate": "0x102800000",
 5 |     "type": "nvp",
 6 |     "time_since_init": 45,
 7 |     "data": {
 8 |       "pause": 0.7,
 9 |       "mutator": -1501275000064.5,
10 |       "gc": "s",
11 |       "external": 0,
12 |       "mark": 0,
13 |       "sweep": 0,
14 |       "sweepns": 0,
15 |       "sweepos": 0,
16 |       "sweepcode": 0,
17 |       "sweepcell": 0,
18 |       "sweepmap": 0,
19 |       "evacuate": 0,
20 |       "new_new": 0,
21 |       "root_new": 0,
22 |       "old_new": 0,
23 |       "compaction_ptrs": 0,
24 |       "intracompaction_ptrs": 0,
25 |       "misc_compaction": 0,
26 |       "weak_closure": 0,
27 |       "inc_weak_closure": 0,
28 |       "weakcollection_process": 0,
29 |       "weakcollection_clear": 0,
30 |       "weakcollection_abort": 0,
31 |       "total_size_before": 2277616,
32 |       "total_size_after": 2006608,
33 |       "holes_size_before": 0,
34 |       "holes_size_after": 0,
35 |       "allocated": 2277616,
36 |       "promoted": 0,
37 |       "semi_space_copied": 749256,
38 |       "nodes_died_in_new": 0,
39 |       "nodes_copied_in_new": 4,
40 |       "nodes_promoted": 0,
41 |       "promotion_ratio": 0,
42 |       "average_survival_ratio": 73.4,
43 |       "promotion_rate": 0,
44 |       "semi_space_copy_rate": 73.4,
45 |       "new_space_allocation_throughput": 0,
46 |       "context_disposal_rate": 0,
47 |       "steps_count": 0,
48 |       "steps_took": 0,
49 |       "scavenge_throughput": 1472242
50 |     }
51 |   }
52 | ]
53 | 


--------------------------------------------------------------------------------
/test/data/oom.in:
--------------------------------------------------------------------------------
 1 | <--- Last few GCs --->
 2 | 
 3 | 
 4 | <--- JS stacktrace --->
 5 | 
 6 | ==== JS stack trace =========================================
 7 | 
 8 | Security context: 0x1c6c7b0cfb51 
 9 |     1: SparseJoinWithSeparatorJS(aka SparseJoinWithSeparatorJS) [native array.js:~75] [pc=0x2c2841418403] (this=0x1c6c7b004381 ,w=0x36f4a3ce7059 ,F=0x36f4a3ce7111 ,x=100000,I=0x1c6c7b0b46e1 ,J=0x1c6c7b004a59 )
10 |     2: DoJoin(aka DoJoin) [native array.js:137] [pc=0x2c284130d21d...
11 | 


--------------------------------------------------------------------------------
/test/data/partial.in:
--------------------------------------------------------------------------------
 1 | [28987:0x101804a00]    12910 ms: Mark-sweep 58.8 (95.9) -> 51.0 (96.9) MB, 3.8 / 0 ms (+ 8.2 ms in 101 steps since start of marking, biggest step 0.9 ms) [GC interrup
 2 | 
 3 | [51548:0x102004600]     3912 ms: pause=2.4 mutator=383.5 gc=s reduce_memory=
 4 | 
 5 | [51548:0x102004600]  
 6 | 
 7 | [51548:0x102004600]     3912 ms: pause=2.4 mutator=383.5 gc=s reduce_memory          
 8 | 
 9 | [51548:0x102004600]     3912 ms: pause=2.4 mutator=383.5 gc=s     
10 | 
11 | [15368:0x102004600] Memory allocator,   used: 375108 KB, available: 1091260 KB
12 | [15368:0x102004600] New space,          used:   5428 KB, available:  10691 KB, committed:  32768 KB
13 | [15368:0x102004600] Old space,          used: 201516 KB, available:  13911 KB, committed: 219092 KB
14 | [15368:0x102004600] Code space,         used:   1287 KB, available:    974 KB, committed          
15 | [15368:0x102004600] Map space,          used:    267 KB, available:    802 KB, committed:   1104 KB    
16 | [15368:0x102004600] Large object space, used: 113283 KB, available: 1090219 KB, committed: 116000 KB   
17 | [15368:0x102004600] All spaces,         used: 321784 KB, available: 1116598 KB, committed: 372036 KB
18 | [15368:0x102004600] External memory reported:     16 KB  
19 | [15368:0x102004600] Total time spent in GC  : 198.4 ms 
20 | 


--------------------------------------------------------------------------------
/test/data/partial.out:
--------------------------------------------------------------------------------
 1 | [
 2 |   {
 3 |     "pid": 28987,
 4 |     "isolate": "0x101804a00",
 5 |     "time_since_init": 12910,
 6 |     "data": {
 7 |       "collector": "mark_sweep",
 8 |       "start_object_size": 58.8,
 9 |       "end_object_size": 51,
10 |       "start_memory_size": 95.9,
11 |       "end_memory_size": 96.9,
12 |       "pause": 3.8,
13 |       "external_time": 0,
14 |       "step_description": "+ 8.2 ms in 101 steps since start of marking, biggest step 0.9 ms"
15 |     },
16 |     "type": "trace"
17 |   },
18 |   {
19 |     "pid": 51548,
20 |     "isolate": "0x102004600",
21 |     "time_since_init": 3912,
22 |     "data": {
23 |       "pause": 2.4,
24 |       "mutator": 383.5,
25 |       "gc": "s"
26 |     },
27 |     "type": "nvp"
28 |   },
29 |   {
30 |     "pid": 51548,
31 |     "isolate": "0x102004600",
32 |     "time_since_init": 3912,
33 |     "data": {
34 |       "pause": 2.4,
35 |       "mutator": 383.5,
36 |       "gc": "s"
37 |     },
38 |     "type": "nvp"
39 |   },
40 |   {
41 |     "pid": 51548,
42 |     "isolate": "0x102004600",
43 |     "time_since_init": 3912,
44 |     "data": {
45 |       "pause": 2.4,
46 |       "mutator": 383.5,
47 |       "gc": "s"
48 |     },
49 |     "type": "nvp"
50 |   },
51 |   {
52 |     "pid": 15368,
53 |     "isolate": "0x102004600",
54 |     "type": "verbose",
55 |     "data": {
56 |       "memory_allocator": {
57 |         "used": 375108,
58 |         "available": 1091260
59 |       },
60 |       "new_space": {
61 |         "used": 5428,
62 |         "available": 10691,
63 |         "committed": 32768
64 |       },
65 |       "old_space": {
66 |         "used": 201516,
67 |         "available": 13911,
68 |         "committed": 219092
69 |       },
70 |       "code_space": {
71 |         "used": 1287,
72 |         "available": 974
73 |       },
74 |       "map_space": {
75 |         "used": 267,
76 |         "available": 802,
77 |         "committed": 1104
78 |       },
79 |       "large_object_space": {
80 |         "used": 113283,
81 |         "available": 1090219,
82 |         "committed": 116000
83 |       },
84 |       "all_spaces": {
85 |         "used": 321784,
86 |         "available": 1116598,
87 |         "committed": 372036
88 |       },
89 |       "external_memory_reported": 16,
90 |       "total_time_spent_in_gc": 198.4
91 |     }
92 |   }
93 | ]


--------------------------------------------------------------------------------
/test/data/v012_nvp.in:
--------------------------------------------------------------------------------
1 | [87623]    21738 ms: pause=1.2 mutator=69.5 gc=s external=0.0 mark=0.0 sweep=0.00 sweepns=0.00 sweepos=0.00 sweepcode=0.00 sweepcell=0.00 sweepmap=0.00 evacuate=0.0 new_new=0.0 root_new=0.0 old_new=0.0 compaction_ptrs=0.0 intracompaction_ptrs=0.0 misc_compaction=0.0 weakcollection_process=0.0 weakcollection_clear=0.0 weakcollection_abort=0.0 total_size_before=410249136 total_size_after=396809216 holes_size_before=12582792 holes_size_after=12614440 allocated=14873496 promoted=1428088 semi_space_copied=1435056 nodes_died_in_new=29 nodes_copied_in_new=2 nodes_promoted=0 promotion_rate=8.7% semi_space_copy_rate=8.7% steps_count=0 steps_took=0.0 
2 | [87623]    21795 ms: pause=4.8 mutator=52.5 gc=ms external=0.0 mark=0.6 sweep=3.71 sweepns=2.72 sweepos=0.33 sweepcode=0.28 sweepcell=0.01 sweepmap=0.07 evacuate=0.0 new_new=0.1 root_new=0.0 old_new=0.0 compaction_ptrs=0.0 intracompaction_ptrs=0.0 misc_compaction=0.1 weakcollection_process=0.0 weakcollection_clear=0.0 weakcollection_abort=0.0 total_size_before=406663248 total_size_after=391420328 holes_size_before=12614440 holes_size_after=13991208 allocated=9854032 promoted=1409952 semi_space_copied=1626888 nodes_died_in_new=16 nodes_copied_in_new=2 nodes_promoted=1 promotion_rate=12.7% semi_space_copy_rate=14.6% steps_count=17 steps_took=9.0 longest_step=2.1 incremental_marking_throughput=848273
3 | 


--------------------------------------------------------------------------------
/test/data/v012_nvp.out:
--------------------------------------------------------------------------------
 1 | [
 2 |   {
 3 |     "pid": 87623,
 4 |     "version": "v0.12.x",
 5 |     "time_since_init": 21738,
 6 |     "data": {
 7 |       "pause": 1.2,
 8 |       "mutator": 69.5,
 9 |       "gc": "s",
10 |       "external": 0,
11 |       "mark": 0,
12 |       "sweep": 0,
13 |       "sweepns": 0,
14 |       "sweepos": 0,
15 |       "sweepcode": 0,
16 |       "sweepcell": 0,
17 |       "sweepmap": 0,
18 |       "evacuate": 0,
19 |       "new_new": 0,
20 |       "root_new": 0,
21 |       "old_new": 0,
22 |       "compaction_ptrs": 0,
23 |       "intracompaction_ptrs": 0,
24 |       "misc_compaction": 0,
25 |       "weakcollection_process": 0,
26 |       "weakcollection_clear": 0,
27 |       "weakcollection_abort": 0,
28 |       "total_size_before": 410249136,
29 |       "total_size_after": 396809216,
30 |       "holes_size_before": 12582792,
31 |       "holes_size_after": 12614440,
32 |       "allocated": 14873496,
33 |       "promoted": 1428088,
34 |       "semi_space_copied": 1435056,
35 |       "nodes_died_in_new": 29,
36 |       "nodes_copied_in_new": 2,
37 |       "nodes_promoted": 0,
38 |       "promotion_rate": 8.7,
39 |       "semi_space_copy_rate": 8.7,
40 |       "steps_count": 0,
41 |       "steps_took": 0
42 |     },
43 |     "type": "nvp"
44 |   },
45 |   {
46 |     "pid": 87623,
47 |     "version": "v0.12.x",
48 |     "time_since_init": 21795,
49 |     "data": {
50 |       "pause": 4.8,
51 |       "mutator": 52.5,
52 |       "gc": "ms",
53 |       "external": 0,
54 |       "mark": 0.6,
55 |       "sweep": 3.71,
56 |       "sweepns": 2.72,
57 |       "sweepos": 0.33,
58 |       "sweepcode": 0.28,
59 |       "sweepcell": 0.01,
60 |       "sweepmap": 0.07,
61 |       "evacuate": 0,
62 |       "new_new": 0.1,
63 |       "root_new": 0,
64 |       "old_new": 0,
65 |       "compaction_ptrs": 0,
66 |       "intracompaction_ptrs": 0,
67 |       "misc_compaction": 0.1,
68 |       "weakcollection_process": 0,
69 |       "weakcollection_clear": 0,
70 |       "weakcollection_abort": 0,
71 |       "total_size_before": 406663248,
72 |       "total_size_after": 391420328,
73 |       "holes_size_before": 12614440,
74 |       "holes_size_after": 13991208,
75 |       "allocated": 9854032,
76 |       "promoted": 1409952,
77 |       "semi_space_copied": 1626888,
78 |       "nodes_died_in_new": 16,
79 |       "nodes_copied_in_new": 2,
80 |       "nodes_promoted": 1,
81 |       "promotion_rate": 12.7,
82 |       "semi_space_copy_rate": 14.6,
83 |       "steps_count": 17,
84 |       "steps_took": 9,
85 |       "longest_step": 2.1,
86 |       "incremental_marking_throughput": 848273
87 |     },
88 |     "type": "nvp"
89 |   }
90 | ]


--------------------------------------------------------------------------------
/test/data/v012_trace.in:
--------------------------------------------------------------------------------
1 | [88872]    90523 ms: Scavenge 1132.1 (1214.5) -> 1119.2 (1215.5) MB, 1.5 ms [allocation failure].
2 | [88872]    90612 ms: Mark-sweep 1130.7 (1215.5) -> 1115.4 (1217.5) MB, 10.3 ms (+ 14.3 ms in 21 steps since start of marking, biggest step 3.5 ms) [GC interrupt] [GC in old space requested].
3 | [88872]   111427 ms: Mark-sweep 1357.4 (1444.5) -> 1357.4 (1444.5) MB, 38.7 ms [last resort gc].
4 | 


--------------------------------------------------------------------------------
/test/data/v012_trace.out:
--------------------------------------------------------------------------------
 1 | [
 2 |   {
 3 |     "pid": 88872,
 4 |     "version": "v0.12.x",
 5 |     "time_since_init": 90523,
 6 |     "data": {
 7 |       "collector": "scavenge",
 8 |       "start_object_size": 1132.1,
 9 |       "end_object_size": 1119.2,
10 |       "start_memory_size": 1214.5,
11 |       "end_memory_size": 1215.5,
12 |       "pause": 1.5,
13 |       "gc_reason": "allocation failure"
14 |     },
15 |     "type": "trace"
16 |   },
17 |   {
18 |     "pid": 88872,
19 |     "version": "v0.12.x",
20 |     "time_since_init": 90612,
21 |     "data": {
22 |       "collector": "mark_sweep",
23 |       "start_object_size": 1130.7,
24 |       "end_object_size": 1115.4,
25 |       "start_memory_size": 1215.5,
26 |       "end_memory_size": 1217.5,
27 |       "pause": 10.3,
28 |       "step_description": "+ 14.3 ms in 21 steps since start of marking, biggest step 3.5 ms",
29 |       "gc_reason": "GC interrupt",
30 |       "collector_reason": "GC in old space requested"
31 |     },
32 |     "type": "trace"
33 |   },
34 |   {
35 |     "pid": 88872,
36 |     "version": "v0.12.x",
37 |     "time_since_init": 111427,
38 |     "data": {
39 |       "collector": "mark_sweep",
40 |       "start_object_size": 1357.4,
41 |       "end_object_size": 1357.4,
42 |       "start_memory_size": 1444.5,
43 |       "end_memory_size": 1444.5,
44 |       "pause": 38.7,
45 |       "gc_reason": "last resort gc"
46 |     },
47 |     "type": "trace"
48 |   }
49 | ]


--------------------------------------------------------------------------------
/test/data/v012_verbose.in:
--------------------------------------------------------------------------------
 1 | [87120] Memory allocator,   used:  40420 KB, available: 1458716 KB
 2 | [87120] New space,          used:    532 KB, available:   1515 KB, committed:   4096 KB
 3 | [87120] Old pointers,       used:    972 KB, available:      0 KB, committed:   1903 KB
 4 | [87120] Old data space,     used:    801 KB, available:      1 KB, committed:   1199 KB
 5 | [87120] Code space,         used:    558 KB, available:      0 KB, committed:    996 KB
 6 | [87120] Map space,          used:    118 KB, available:      0 KB, committed:    128 KB
 7 | [87120] Cell space,         used:      4 KB, available:      0 KB, committed:    128 KB
 8 | [87120] PropertyCell space, used:     26 KB, available:      0 KB, committed:     64 KB
 9 | [87120] Large object space, used:      0 KB, available: 1457675 KB, committed:      0 KB
10 | [87120] All spaces,         used:   3013 KB, available:   1517 KB, committed:   8515 KB
11 | [87120] External memory reported:      8 KB
12 | [87120] Total time spent in GC  : 1.8 ms
13 | 


--------------------------------------------------------------------------------
/test/data/v012_verbose.out:
--------------------------------------------------------------------------------
 1 | [
 2 |   {
 3 |     "pid": 87120,
 4 |     "version": "v0.12.x",
 5 |     "type": "verbose",
 6 |     "data": {
 7 |       "memory_allocator": {
 8 |         "used": 40420,
 9 |         "available": 1458716
10 |       },
11 |       "new_space": {
12 |         "used": 532,
13 |         "available": 1515,
14 |         "committed": 4096
15 |       },
16 |       "old_pointers": {
17 |         "used": 972,
18 |         "available": 0,
19 |         "committed": 1903
20 |       },
21 |       "old_data_space": {
22 |         "used": 801,
23 |         "available": 1,
24 |         "committed": 1199
25 |       },
26 |       "code_space": {
27 |         "used": 558,
28 |         "available": 0,
29 |         "committed": 996
30 |       },
31 |       "map_space": {
32 |         "used": 118,
33 |         "available": 0,
34 |         "committed": 128
35 |       },
36 |       "cell_space": {
37 |         "used": 4,
38 |         "available": 0,
39 |         "committed": 128
40 |       },
41 |       "property_cell_space": {
42 |         "used": 26,
43 |         "available": 0,
44 |         "committed": 64
45 |       },
46 |       "large_object_space": {
47 |         "used": 0,
48 |         "available": 1457675,
49 |         "committed": 0
50 |       },
51 |       "all_spaces": {
52 |         "used": 3013,
53 |         "available": 1517,
54 |         "committed": 8515
55 |       },
56 |       "external_memory_reported": 8,
57 |       "total_time_spent_in_gc": 1.8
58 |     }
59 |   }
60 | ]


--------------------------------------------------------------------------------
/test/data/v10_nvp.in:
--------------------------------------------------------------------------------
1 | [25830:0x4523210]    30789 ms: pause=3.2 mutator=43.1 gc=s reduce_memory=0 heap.prologue=0.00 heap.epilogue=0.15 heap.epilogue.reduce_new_space=0.00 heap.external.prologue=0.00 heap.external.epilogue=0.00 heap.external_weak_global_handles=0.01 fast_promote=0.00 scavenge=2.78 scavenge.process_array_buffers=0.05 scavenge.roots=0.08 scavenge.weak=0.00 scavenge.weak_global_handles.identify=0.00 scavenge.weak_global_handles.process=0.00 scavenge.parallel=1.35 background.scavenge.parallel=6.59 background.array_buffer_free=0.01 background.store_buffer=0.37 background.unmapper=0.00 incremental.steps_count=0 incremental.steps_took=0.0 scavenge_throughput=5800832 total_size_before=625752008 total_size_after=612270272 holes_size_before=69089232 holes_size_after=68755816 allocated=15073704 promoted=1364328 semi_space_copied=1459824 nodes_died_in_new=9 nodes_copied_in_new=3 nodes_promoted=2 promotion_ratio=8.3% average_survival_ratio=15.1% promotion_rate=98.9% semi_space_copy_rate=8.8% new_space_allocation_throughput=388670.3 unmapper_chunks=0 context_disposal_rate=0.0
2 | [25830:0x4523210]    33956 ms: pause=16.6 mutator=164.4 gc=ms reduce_memory=0 heap.prologue=0.00 heap.epilogue=0.00 heap.epilogue.reduce_new_space=0.00 heap.external.prologue=0.0 heap.external.epilogue=0.0 heap.external.weak_global_handles=0.0 clear=2 clear.dependent_code=0.0 clear.maps=0.2 clear.slots_buffer=0.0 clear.store_buffer=0.0 clear.string_table=1.2 clear.weak_cells=0.2 clear.weak_collections=0.0 clear.weak_lists=0.3 clear.weak_references=0.4 epilogue=0.0 evacuate=5.4 evacuate.candidates=0.0 evacuate.clean_up=0.0 evacuate.copy=2.6 evacuate.prologue=0.1 evacuate.epilogue=0.0 evacuate.rebalance=0.1 evacuate.update_pointers=2.5 evacuate.update_pointers.to_new_roots=0.1 evacuate.update_pointers.slots.main=2.2 evacuate.update_pointers.slots.map_space=0.2 evacuate.update_pointers.weak=0.0 finish=5.9 mark=1.1 mark.finish_incremental=0.0 mark.roots=0.1 mark.main=0.8 mark.weak_closure=0.1 mark.weak_closure.ephemeral=0.1 mark.weak_closure.weak_handles=0.0 mark.weak_closure.weak_roots=0.0 mark.weak_closure.harmony=0.0 mark.wrapper_prologue=0.0 mark.wrapper_epilogue=0.0 mark.wrapper_tracing=0.0 prologue=0.1 sweep=1.0 sweep.code=0.0 sweep.map=0.0 sweep.old=0.5 incremental=172.2 incremental.finalize=0.1 incremental.finalize.body=0.1 incremental.finalize.external.prologue=0.0 incremental.finalize.external.epilogue=0.0 incremental.sweeping=0.0 incremental.wrapper_prologue=0.0 incremental.wrapper_tracing=0.0 incremental_wrapper_tracing_longest_step=0.0 incremental_finalize_longest_step=0.1 incremental_finalize_steps_count=1 incremental_longest_step=6.5 incremental_steps_count=370 incremental_marking_throughput=418834 incremental_walltime_duration=282 background.mark=1013.2 background.sweep=156.5 background.evacuate.copy=12.4 background.evacuate.update_pointers=8.5 background.array_buffer_free=0.05 background.store_buffer=0.04 background.unmapper=11.2 total_size_before=704722192 total_size_after=421646664 holes_size_before=28930320 holes_size_after=677512 allocated=15313888 promoted=1094832 semi_space_copied=10685304 nodes_died_in_new=3 nodes_copied_in_new=4 nodes_promoted=1 promotion_ratio=6.6% average_survival_ratio=21.5% promotion_rate=99.6% semi_space_copy_rate=64.8% new_space_allocation_throughput=200996.0 unmapper_chunks=0 context_disposal_rate=0.0 compaction_speed=1392438
3 | 


--------------------------------------------------------------------------------
/test/data/v10_nvp.out:
--------------------------------------------------------------------------------
  1 | [
  2 |   {
  3 |     "pid": 25830,
  4 |     "isolate": "0x4523210",
  5 |     "time_since_init": 30789,
  6 |     "data": {
  7 |       "pause": 3.2,
  8 |       "mutator": 43.1,
  9 |       "gc": "s",
 10 |       "reduce_memory": 0,
 11 |       "heap.prologue": 0,
 12 |       "heap.epilogue": 0.15,
 13 |       "heap.epilogue.reduce_new_space": 0,
 14 |       "heap.external.prologue": 0,
 15 |       "heap.external.epilogue": 0,
 16 |       "heap.external_weak_global_handles": 0.01,
 17 |       "fast_promote": 0,
 18 |       "scavenge": 2.78,
 19 |       "scavenge.process_array_buffers": 0.05,
 20 |       "scavenge.roots": 0.08,
 21 |       "scavenge.weak": 0,
 22 |       "scavenge.weak_global_handles.identify": 0,
 23 |       "scavenge.weak_global_handles.process": 0,
 24 |       "scavenge.parallel": 1.35,
 25 |       "background.scavenge.parallel": 6.59,
 26 |       "background.array_buffer_free": 0.01,
 27 |       "background.store_buffer": 0.37,
 28 |       "background.unmapper": 0,
 29 |       "incremental.steps_count": 0,
 30 |       "incremental.steps_took": 0,
 31 |       "scavenge_throughput": 5800832,
 32 |       "total_size_before": 625752008,
 33 |       "total_size_after": 612270272,
 34 |       "holes_size_before": 69089232,
 35 |       "holes_size_after": 68755816,
 36 |       "allocated": 15073704,
 37 |       "promoted": 1364328,
 38 |       "semi_space_copied": 1459824,
 39 |       "nodes_died_in_new": 9,
 40 |       "nodes_copied_in_new": 3,
 41 |       "nodes_promoted": 2,
 42 |       "promotion_ratio": 8.3,
 43 |       "average_survival_ratio": 15.1,
 44 |       "promotion_rate": 98.9,
 45 |       "semi_space_copy_rate": 8.8,
 46 |       "new_space_allocation_throughput": 388670.3,
 47 |       "unmapper_chunks": 0,
 48 |       "context_disposal_rate": 0
 49 |     },
 50 |     "type": "nvp"
 51 |   },
 52 |   {
 53 |     "pid": 25830,
 54 |     "isolate": "0x4523210",
 55 |     "time_since_init": 33956,
 56 |     "data": {
 57 |       "pause": 16.6,
 58 |       "mutator": 164.4,
 59 |       "gc": "ms",
 60 |       "reduce_memory": 0,
 61 |       "heap.prologue": 0,
 62 |       "heap.epilogue": 0,
 63 |       "heap.epilogue.reduce_new_space": 0,
 64 |       "heap.external.prologue": 0,
 65 |       "heap.external.epilogue": 0,
 66 |       "heap.external.weak_global_handles": 0,
 67 |       "clear": 2,
 68 |       "clear.dependent_code": 0,
 69 |       "clear.maps": 0.2,
 70 |       "clear.slots_buffer": 0,
 71 |       "clear.store_buffer": 0,
 72 |       "clear.string_table": 1.2,
 73 |       "clear.weak_cells": 0.2,
 74 |       "clear.weak_collections": 0,
 75 |       "clear.weak_lists": 0.3,
 76 |       "clear.weak_references": 0.4,
 77 |       "epilogue": 0,
 78 |       "evacuate": 5.4,
 79 |       "evacuate.candidates": 0,
 80 |       "evacuate.clean_up": 0,
 81 |       "evacuate.copy": 2.6,
 82 |       "evacuate.prologue": 0.1,
 83 |       "evacuate.epilogue": 0,
 84 |       "evacuate.rebalance": 0.1,
 85 |       "evacuate.update_pointers": 2.5,
 86 |       "evacuate.update_pointers.to_new_roots": 0.1,
 87 |       "evacuate.update_pointers.slots.main": 2.2,
 88 |       "evacuate.update_pointers.slots.map_space": 0.2,
 89 |       "evacuate.update_pointers.weak": 0,
 90 |       "finish": 5.9,
 91 |       "mark": 1.1,
 92 |       "mark.finish_incremental": 0,
 93 |       "mark.roots": 0.1,
 94 |       "mark.main": 0.8,
 95 |       "mark.weak_closure": 0.1,
 96 |       "mark.weak_closure.ephemeral": 0.1,
 97 |       "mark.weak_closure.weak_handles": 0,
 98 |       "mark.weak_closure.weak_roots": 0,
 99 |       "mark.weak_closure.harmony": 0,
100 |       "mark.wrapper_prologue": 0,
101 |       "mark.wrapper_epilogue": 0,
102 |       "mark.wrapper_tracing": 0,
103 |       "prologue": 0.1,
104 |       "sweep": 1,
105 |       "sweep.code": 0,
106 |       "sweep.map": 0,
107 |       "sweep.old": 0.5,
108 |       "incremental": 172.2,
109 |       "incremental.finalize": 0.1,
110 |       "incremental.finalize.body": 0.1,
111 |       "incremental.finalize.external.prologue": 0,
112 |       "incremental.finalize.external.epilogue": 0,
113 |       "incremental.sweeping": 0,
114 |       "incremental.wrapper_prologue": 0,
115 |       "incremental.wrapper_tracing": 0,
116 |       "incremental_wrapper_tracing_longest_step": 0,
117 |       "incremental_finalize_longest_step": 0.1,
118 |       "incremental_finalize_steps_count": 1,
119 |       "incremental_longest_step": 6.5,
120 |       "incremental_steps_count": 370,
121 |       "incremental_marking_throughput": 418834,
122 |       "incremental_walltime_duration": 282,
123 |       "background.mark": 1013.2,
124 |       "background.sweep": 156.5,
125 |       "background.evacuate.copy": 12.4,
126 |       "background.evacuate.update_pointers": 8.5,
127 |       "background.array_buffer_free": 0.05,
128 |       "background.store_buffer": 0.04,
129 |       "background.unmapper": 11.2,
130 |       "total_size_before": 704722192,
131 |       "total_size_after": 421646664,
132 |       "holes_size_before": 28930320,
133 |       "holes_size_after": 677512,
134 |       "allocated": 15313888,
135 |       "promoted": 1094832,
136 |       "semi_space_copied": 10685304,
137 |       "nodes_died_in_new": 3,
138 |       "nodes_copied_in_new": 4,
139 |       "nodes_promoted": 1,
140 |       "promotion_ratio": 6.6,
141 |       "average_survival_ratio": 21.5,
142 |       "promotion_rate": 99.6,
143 |       "semi_space_copy_rate": 64.8,
144 |       "new_space_allocation_throughput": 200996,
145 |       "unmapper_chunks": 0,
146 |       "context_disposal_rate": 0,
147 |       "compaction_speed": 1392438
148 |     },
149 |     "type": "nvp"
150 |   }
151 | ]
152 | 


--------------------------------------------------------------------------------
/test/data/v10_trace.in:
--------------------------------------------------------------------------------
1 | [25830:0x4523210]    30656 ms: Scavenge 592.8 (689.7) -> 579.8 (690.2) MB, 2.6 / 0.0 ms  (average mu = 0.981, current mu = 0.986) allocation failure 
2 | [25830:0x4523210]    30694 ms: Scavenge 594.2 (690.2) -> 581.2 (691.2) MB, 3.0 / 0.0 ms  (average mu = 0.981, current mu = 0.986) allocation failure 
3 | [25830:0x4523210]    30743 ms: Scavenge 595.4 (691.2) -> 582.4 (691.7) MB, 3.0 / 0.0 ms  (average mu = 0.981, current mu = 0.986) allocation failure 
4 | 


--------------------------------------------------------------------------------
/test/data/v10_trace.out:
--------------------------------------------------------------------------------
 1 | [
 2 |   {
 3 |     "pid": 25830,
 4 |     "isolate": "0x4523210",
 5 |     "time_since_init": 30656,
 6 |     "data": {
 7 |       "collector": "scavenge",
 8 |       "start_object_size": 592.8,
 9 |       "end_object_size": 579.8,
10 |       "start_memory_size": 689.7,
11 |       "end_memory_size": 690.2,
12 |       "pause": 2.6,
13 |       "external_time": 0,
14 |       "step_description": "average mu = 0.981, current mu = 0.986"
15 |     },
16 |     "type": "trace"
17 |   },
18 |   {
19 |     "pid": 25830,
20 |     "isolate": "0x4523210",
21 |     "time_since_init": 30694,
22 |     "data": {
23 |       "collector": "scavenge",
24 |       "start_object_size": 594.2,
25 |       "end_object_size": 581.2,
26 |       "start_memory_size": 690.2,
27 |       "end_memory_size": 691.2,
28 |       "pause": 3,
29 |       "external_time": 0,
30 |       "step_description": "average mu = 0.981, current mu = 0.986"
31 |     },
32 |     "type": "trace"
33 |   },
34 |   {
35 |     "pid": 25830,
36 |     "isolate": "0x4523210",
37 |     "time_since_init": 30743,
38 |     "data": {
39 |       "collector": "scavenge",
40 |       "start_object_size": 595.4,
41 |       "end_object_size": 582.4,
42 |       "start_memory_size": 691.2,
43 |       "end_memory_size": 691.7,
44 |       "pause": 3,
45 |       "external_time": 0,
46 |       "step_description": "average mu = 0.981, current mu = 0.986"
47 |     },
48 |     "type": "trace"
49 |   }
50 | ]
51 | 


--------------------------------------------------------------------------------
/test/data/v10_trace_verbose.in:
--------------------------------------------------------------------------------
 1 | [25830:0x4523210]    30656 ms: Scavenge 592.8 (689.7) -> 579.8 (690.2) MB, 2.6 / 0.0 ms  (average mu = 0.981, current mu = 0.986) allocation failure 
 2 | [25830:0x4523210] Memory allocator,   start: 708308 KB, used: 709332 KB, promotion:   1332 KB, available: 782124 KB
 3 | [25830:0x4523210] Read-only space,   start:     34 KB, used:     34 KB, available:    469 KB, committed:    512 KB
 4 | [25830:0x4523210] New space,   start:  16111 KB, used:   1613 KB, available:  14498 KB, committed:  32768 KB, promoted:   1332 KB
 5 | [25830:0x4523210] Old space,          start: 567089 KB, used: 568421 KB, available:  65863 KB, committed: 645348 KB
 6 | [25830:0x4523210] Code space,         start:   3616 KB, used:   3616 KB, available:    807 KB, committed:   4608 KB
 7 | [25830:0x4523210] Map space,          start:   2072 KB, used:   2072 KB, available:    146 KB, committed:   2572 KB
 8 | [25830:0x4523210] Large object space, start:  22161 KB, used:  22161 KB, available: 781603 KB, committed:  23524 KB
 9 | [25830:0x4523210] All spaces,         start: 611051 KB, used: 597920 KB, available: 863388 KB, committed: 709332 KB
10 | [25830:0x4523210] External memory reported:  65369 KB
11 | [25830:0x4523210] External memory global 0 KB
12 | [25830:0x4523210] Total time spent in GC  : 1767.1 ms
13 | [25830:0x4523210] Fast promotion mode: false survival rate: 16%
14 | [25830:0x4523210] Memory allocator,   start: 709332 KB, used: 710868 KB, promotion:   1349 KB, available: 780588 KB
15 | [25830:0x4523210] Read-only space,   start:     34 KB, used:     34 KB, available:    469 KB, committed:    512 KB
16 | [25830:0x4523210] New space,   start:  16111 KB, used:   1361 KB, available:  14750 KB, committed:  32768 KB, promoted:   1349 KB
17 | [25830:0x4523210] Old space,          start: 568441 KB, used: 569790 KB, available:  66004 KB, committed: 646884 KB
18 | [25830:0x4523210] Code space,         start:   3616 KB, used:   3616 KB, available:    807 KB, committed:   4608 KB
19 | [25830:0x4523210] Map space,          start:   2072 KB, used:   2072 KB, available:    146 KB, committed:   2572 KB
20 | [25830:0x4523210] Large object space, start:  22161 KB, used:  22161 KB, available: 780067 KB, committed:  23524 KB
21 | [25830:0x4523210] All spaces,         start: 612404 KB, used: 599037 KB, available: 862246 KB, committed: 710868 KB
22 | [25830:0x4523210] External memory reported:  65530 KB
23 | [25830:0x4523210] External memory global 0 KB
24 | [25830:0x4523210] Total time spent in GC  : 1769.9 ms
25 | [25830:0x4523210] Fast promotion mode: false survival rate: 16%
26 | [25830:0x4523210] Memory allocator,   start: 710868 KB, used: 711892 KB, promotion:   1213 KB, available: 779564 KB
27 | [25830:0x4523210] Read-only space,   start:     34 KB, used:     34 KB, available:    469 KB, committed:    512 KB
28 | [25830:0x4523210] New space,   start:  16111 KB, used:   1535 KB, available:  14576 KB, committed:  32768 KB, promoted:   1213 KB
29 | [25830:0x4523210] Old space,          start: 569813 KB, used: 571026 KB, available:  65775 KB, committed: 647908 KB
30 | [25830:0x4523210] Code space,         start:   3616 KB, used:   3616 KB, available:    807 KB, committed:   4608 KB
31 | [25830:0x4523210] Map space,          start:   2073 KB, used:   2073 KB, available:    146 KB, committed:   2572 KB
32 | [25830:0x4523210] Large object space, start:  22161 KB, used:  22161 KB, available: 779043 KB, committed:  23524 KB
33 | [25830:0x4523210] All spaces,         start: 613776 KB, used: 600448 KB, available: 860818 KB, committed: 711892 KB
34 | [25830:0x4523210] External memory reported:  65799 KB
35 | [25830:0x4523210] External memory global 0 KB
36 | [25830:0x4523210] Total time spent in GC  : 1772.6 ms
37 | [25830:0x4523210] Fast promotion mode: false survival rate: 15%
38 | 


--------------------------------------------------------------------------------
/test/data/v10_trace_verbose.out:
--------------------------------------------------------------------------------
  1 | [
  2 |   {
  3 |     "pid": 25830,
  4 |     "isolate": "0x4523210",
  5 |     "time_since_init": 30656,
  6 |     "data": {
  7 |       "collector": "scavenge",
  8 |       "start_object_size": 592.8,
  9 |       "end_object_size": 579.8,
 10 |       "start_memory_size": 689.7,
 11 |       "end_memory_size": 690.2,
 12 |       "pause": 2.6,
 13 |       "external_time": 0,
 14 |       "step_description": "average mu = 0.981, current mu = 0.986"
 15 |     },
 16 |     "type": "trace"
 17 |   },
 18 |   {
 19 |     "pid": 25830,
 20 |     "isolate": "0x4523210",
 21 |     "external_memory_global": 0,
 22 |     "type": "verbose",
 23 |     "data": {
 24 |       "memory_allocator": {
 25 |         "start": 708308,
 26 |         "used": 709332,
 27 |         "promotion": 1332,
 28 |         "available": 782124
 29 |       },
 30 |       "read_only_space": {
 31 |         "start": 34,
 32 |         "used": 34,
 33 |         "available": 469,
 34 |         "committed": 512
 35 |       },
 36 |       "new_space": {
 37 |         "start": 16111,
 38 |         "used": 1613,
 39 |         "available": 14498,
 40 |         "committed": 32768,
 41 |         "promoted": 1332
 42 |       },
 43 |       "old_space": {
 44 |         "start": 567089,
 45 |         "used": 568421,
 46 |         "available": 65863,
 47 |         "committed": 645348
 48 |       },
 49 |       "code_space": {
 50 |         "start": 3616,
 51 |         "used": 3616,
 52 |         "available": 807,
 53 |         "committed": 4608
 54 |       },
 55 |       "map_space": {
 56 |         "start": 2072,
 57 |         "used": 2072,
 58 |         "available": 146,
 59 |         "committed": 2572
 60 |       },
 61 |       "large_object_space": {
 62 |         "start": 22161,
 63 |         "used": 22161,
 64 |         "available": 781603,
 65 |         "committed": 23524
 66 |       },
 67 |       "all_spaces": {
 68 |         "start": 611051,
 69 |         "used": 597920,
 70 |         "available": 863388,
 71 |         "committed": 709332
 72 |       },
 73 |       "external_memory_reported": 65369,
 74 |       "total_time_spent_in_gc": 1767.1
 75 |     }
 76 |   },
 77 |   {
 78 |     "pid": 25830,
 79 |     "isolate": "0x4523210",
 80 |     "external_memory_global": 0,
 81 |     "type": "verbose",
 82 |     "data": {
 83 |       "memory_allocator": {
 84 |         "start": 709332,
 85 |         "used": 710868,
 86 |         "promotion": 1349,
 87 |         "available": 780588
 88 |       },
 89 |       "read_only_space": {
 90 |         "start": 34,
 91 |         "used": 34,
 92 |         "available": 469,
 93 |         "committed": 512
 94 |       },
 95 |       "new_space": {
 96 |         "start": 16111,
 97 |         "used": 1361,
 98 |         "available": 14750,
 99 |         "committed": 32768,
100 |         "promoted": 1349
101 |       },
102 |       "old_space": {
103 |         "start": 568441,
104 |         "used": 569790,
105 |         "available": 66004,
106 |         "committed": 646884
107 |       },
108 |       "code_space": {
109 |         "start": 3616,
110 |         "used": 3616,
111 |         "available": 807,
112 |         "committed": 4608
113 |       },
114 |       "map_space": {
115 |         "start": 2072,
116 |         "used": 2072,
117 |         "available": 146,
118 |         "committed": 2572
119 |       },
120 |       "large_object_space": {
121 |         "start": 22161,
122 |         "used": 22161,
123 |         "available": 780067,
124 |         "committed": 23524
125 |       },
126 |       "all_spaces": {
127 |         "start": 612404,
128 |         "used": 599037,
129 |         "available": 862246,
130 |         "committed": 710868
131 |       },
132 |       "external_memory_reported": 65530,
133 |       "total_time_spent_in_gc": 1769.9
134 |     }
135 |   },
136 |   {
137 |     "pid": 25830,
138 |     "isolate": "0x4523210",
139 |     "external_memory_global": 0,
140 |     "type": "verbose",
141 |     "data": {
142 |       "memory_allocator": {
143 |         "start": 710868,
144 |         "used": 711892,
145 |         "promotion": 1213,
146 |         "available": 779564
147 |       },
148 |       "read_only_space": {
149 |         "start": 34,
150 |         "used": 34,
151 |         "available": 469,
152 |         "committed": 512
153 |       },
154 |       "new_space": {
155 |         "start": 16111,
156 |         "used": 1535,
157 |         "available": 14576,
158 |         "committed": 32768,
159 |         "promoted": 1213
160 |       },
161 |       "old_space": {
162 |         "start": 569813,
163 |         "used": 571026,
164 |         "available": 65775,
165 |         "committed": 647908
166 |       },
167 |       "code_space": {
168 |         "start": 3616,
169 |         "used": 3616,
170 |         "available": 807,
171 |         "committed": 4608
172 |       },
173 |       "map_space": {
174 |         "start": 2073,
175 |         "used": 2073,
176 |         "available": 146,
177 |         "committed": 2572
178 |       },
179 |       "large_object_space": {
180 |         "start": 22161,
181 |         "used": 22161,
182 |         "available": 779043,
183 |         "committed": 23524
184 |       },
185 |       "all_spaces": {
186 |         "start": 613776,
187 |         "used": 600448,
188 |         "available": 860818,
189 |         "committed": 711892
190 |       },
191 |       "external_memory_reported": 65799,
192 |       "total_time_spent_in_gc": 1772.6
193 |     }
194 |   }
195 | ]
196 | 


--------------------------------------------------------------------------------
/test/data/v10_verbose.in:
--------------------------------------------------------------------------------
 1 | [25830:0x4523210] Memory allocator,   start: 708308 KB, used: 709332 KB, promotion:   1332 KB, available: 782124 KB
 2 | [25830:0x4523210] Read-only space,   start:     34 KB, used:     34 KB, available:    469 KB, committed:    512 KB
 3 | [25830:0x4523210] New space,   start:  16111 KB, used:   1613 KB, available:  14498 KB, committed:  32768 KB, promoted:   1332 KB
 4 | [25830:0x4523210] Old space,          start: 567089 KB, used: 568421 KB, available:  65863 KB, committed: 645348 KB
 5 | [25830:0x4523210] Code space,         start:   3616 KB, used:   3616 KB, available:    807 KB, committed:   4608 KB
 6 | [25830:0x4523210] Map space,          start:   2072 KB, used:   2072 KB, available:    146 KB, committed:   2572 KB
 7 | [25830:0x4523210] Large object space, start:  22161 KB, used:  22161 KB, available: 781603 KB, committed:  23524 KB
 8 | [25830:0x4523210] All spaces,         start: 611051 KB, used: 597920 KB, available: 863388 KB, committed: 709332 KB
 9 | [25830:0x4523210] External memory reported:  65369 KB
10 | [25830:0x4523210] External memory global 0 KB
11 | [25830:0x4523210] Total time spent in GC  : 1767.1 ms
12 | [25830:0x4523210] Fast promotion mode: false survival rate: 16%
13 | [25830:0x4523210] Memory allocator,   start: 709332 KB, used: 710868 KB, promotion:   1349 KB, available: 780588 KB
14 | [25830:0x4523210] Read-only space,   start:     34 KB, used:     34 KB, available:    469 KB, committed:    512 KB
15 | [25830:0x4523210] New space,   start:  16111 KB, used:   1361 KB, available:  14750 KB, committed:  32768 KB, promoted:   1349 KB
16 | [25830:0x4523210] Old space,          start: 568441 KB, used: 569790 KB, available:  66004 KB, committed: 646884 KB
17 | [25830:0x4523210] Code space,         start:   3616 KB, used:   3616 KB, available:    807 KB, committed:   4608 KB
18 | [25830:0x4523210] Map space,          start:   2072 KB, used:   2072 KB, available:    146 KB, committed:   2572 KB
19 | [25830:0x4523210] Large object space, start:  22161 KB, used:  22161 KB, available: 780067 KB, committed:  23524 KB
20 | [25830:0x4523210] All spaces,         start: 612404 KB, used: 599037 KB, available: 862246 KB, committed: 710868 KB
21 | [25830:0x4523210] External memory reported:  65530 KB
22 | [25830:0x4523210] External memory global 0 KB
23 | [25830:0x4523210] Total time spent in GC  : 1769.9 ms
24 | [25830:0x4523210] Fast promotion mode: false survival rate: 16%
25 | [25830:0x4523210] Memory allocator,   start: 710868 KB, used: 711892 KB, promotion:   1213 KB, available: 779564 KB
26 | [25830:0x4523210] Read-only space,   start:     34 KB, used:     34 KB, available:    469 KB, committed:    512 KB
27 | [25830:0x4523210] New space,   start:  16111 KB, used:   1535 KB, available:  14576 KB, committed:  32768 KB, promoted:   1213 KB
28 | [25830:0x4523210] Old space,          start: 569813 KB, used: 571026 KB, available:  65775 KB, committed: 647908 KB
29 | [25830:0x4523210] Code space,         start:   3616 KB, used:   3616 KB, available:    807 KB, committed:   4608 KB
30 | [25830:0x4523210] Map space,          start:   2073 KB, used:   2073 KB, available:    146 KB, committed:   2572 KB
31 | [25830:0x4523210] Large object space, start:  22161 KB, used:  22161 KB, available: 779043 KB, committed:  23524 KB
32 | [25830:0x4523210] All spaces,         start: 613776 KB, used: 600448 KB, available: 860818 KB, committed: 711892 KB
33 | [25830:0x4523210] External memory reported:  65799 KB
34 | [25830:0x4523210] External memory global 0 KB
35 | [25830:0x4523210] Total time spent in GC  : 1772.6 ms
36 | [25830:0x4523210] Fast promotion mode: false survival rate: 15%


--------------------------------------------------------------------------------
/test/data/v10_verbose.out:
--------------------------------------------------------------------------------
  1 | [
  2 |   {
  3 |     "pid": 25830,
  4 |     "isolate": "0x4523210",
  5 |     "external_memory_global": 0,
  6 |     "type": "verbose",
  7 |     "data": {
  8 |       "memory_allocator": {
  9 |         "start": 708308,
 10 |         "used": 709332,
 11 |         "promotion": 1332,
 12 |         "available": 782124
 13 |       },
 14 |       "read_only_space": {
 15 |         "start": 34,
 16 |         "used": 34,
 17 |         "available": 469,
 18 |         "committed": 512
 19 |       },
 20 |       "new_space": {
 21 |         "start": 16111,
 22 |         "used": 1613,
 23 |         "available": 14498,
 24 |         "committed": 32768,
 25 |         "promoted": 1332
 26 |       },
 27 |       "old_space": {
 28 |         "start": 567089,
 29 |         "used": 568421,
 30 |         "available": 65863,
 31 |         "committed": 645348
 32 |       },
 33 |       "code_space": {
 34 |         "start": 3616,
 35 |         "used": 3616,
 36 |         "available": 807,
 37 |         "committed": 4608
 38 |       },
 39 |       "map_space": {
 40 |         "start": 2072,
 41 |         "used": 2072,
 42 |         "available": 146,
 43 |         "committed": 2572
 44 |       },
 45 |       "large_object_space": {
 46 |         "start": 22161,
 47 |         "used": 22161,
 48 |         "available": 781603,
 49 |         "committed": 23524
 50 |       },
 51 |       "all_spaces": {
 52 |         "start": 611051,
 53 |         "used": 597920,
 54 |         "available": 863388,
 55 |         "committed": 709332
 56 |       },
 57 |       "external_memory_reported": 65369,
 58 |       "total_time_spent_in_gc": 1767.1
 59 |     }
 60 |   },
 61 |   {
 62 |     "pid": 25830,
 63 |     "isolate": "0x4523210",
 64 |     "external_memory_global": 0,
 65 |     "type": "verbose",
 66 |     "data": {
 67 |       "memory_allocator": {
 68 |         "start": 709332,
 69 |         "used": 710868,
 70 |         "promotion": 1349,
 71 |         "available": 780588
 72 |       },
 73 |       "read_only_space": {
 74 |         "start": 34,
 75 |         "used": 34,
 76 |         "available": 469,
 77 |         "committed": 512
 78 |       },
 79 |       "new_space": {
 80 |         "start": 16111,
 81 |         "used": 1361,
 82 |         "available": 14750,
 83 |         "committed": 32768,
 84 |         "promoted": 1349
 85 |       },
 86 |       "old_space": {
 87 |         "start": 568441,
 88 |         "used": 569790,
 89 |         "available": 66004,
 90 |         "committed": 646884
 91 |       },
 92 |       "code_space": {
 93 |         "start": 3616,
 94 |         "used": 3616,
 95 |         "available": 807,
 96 |         "committed": 4608
 97 |       },
 98 |       "map_space": {
 99 |         "start": 2072,
100 |         "used": 2072,
101 |         "available": 146,
102 |         "committed": 2572
103 |       },
104 |       "large_object_space": {
105 |         "start": 22161,
106 |         "used": 22161,
107 |         "available": 780067,
108 |         "committed": 23524
109 |       },
110 |       "all_spaces": {
111 |         "start": 612404,
112 |         "used": 599037,
113 |         "available": 862246,
114 |         "committed": 710868
115 |       },
116 |       "external_memory_reported": 65530,
117 |       "total_time_spent_in_gc": 1769.9
118 |     }
119 |   },
120 |   {
121 |     "pid": 25830,
122 |     "isolate": "0x4523210",
123 |     "external_memory_global": 0,
124 |     "type": "verbose",
125 |     "data": {
126 |       "memory_allocator": {
127 |         "start": 710868,
128 |         "used": 711892,
129 |         "promotion": 1213,
130 |         "available": 779564
131 |       },
132 |       "read_only_space": {
133 |         "start": 34,
134 |         "used": 34,
135 |         "available": 469,
136 |         "committed": 512
137 |       },
138 |       "new_space": {
139 |         "start": 16111,
140 |         "used": 1535,
141 |         "available": 14576,
142 |         "committed": 32768,
143 |         "promoted": 1213
144 |       },
145 |       "old_space": {
146 |         "start": 569813,
147 |         "used": 571026,
148 |         "available": 65775,
149 |         "committed": 647908
150 |       },
151 |       "code_space": {
152 |         "start": 3616,
153 |         "used": 3616,
154 |         "available": 807,
155 |         "committed": 4608
156 |       },
157 |       "map_space": {
158 |         "start": 2073,
159 |         "used": 2073,
160 |         "available": 146,
161 |         "committed": 2572
162 |       },
163 |       "large_object_space": {
164 |         "start": 22161,
165 |         "used": 22161,
166 |         "available": 779043,
167 |         "committed": 23524
168 |       },
169 |       "all_spaces": {
170 |         "start": 613776,
171 |         "used": 600448,
172 |         "available": 860818,
173 |         "committed": 711892
174 |       },
175 |       "external_memory_reported": 65799,
176 |       "total_time_spent_in_gc": 1772.6
177 |     }
178 |   }
179 | ]
180 | 


--------------------------------------------------------------------------------
/test/data/v10_verbose_nvp.in:
--------------------------------------------------------------------------------
 1 | [25830:0x4523210] Fast promotion mode: false survival rate: 14%
 2 | [25830:0x4523210]    33096 ms: pause=2.8 mutator=45.4 gc=s reduce_memory=0 heap.prologue=0.00 heap.epilogue=0.11 heap.epilogue.reduce_new_space=0.00 heap.external.prologue=0.00 heap.external.epilogue=0.00 heap.external_weak_global_handles=0.01 fast_promote=0.00 scavenge=2.35 scavenge.process_array_buffers=0.05 scavenge.roots=0.08 scavenge.weak=0.00 scavenge.weak_global_handles.identify=0.00 scavenge.weak_global_handles.process=0.00 scavenge.parallel=1.18 background.scavenge.parallel=5.76 background.array_buffer_free=0.01 background.store_buffer=0.21 background.unmapper=0.00 incremental.steps_count=0 incremental.steps_took=0.0 scavenge_throughput=5727295 total_size_before=689505456 total_size_after=675649728 holes_size_before=57201352 holes_size_after=56581496 allocated=15239384 promoted=1135416 semi_space_copied=1295280 nodes_died_in_new=4 nodes_copied_in_new=4 nodes_promoted=2 promotion_ratio=6.9% average_survival_ratio=15.5% promotion_rate=97.6% semi_space_copy_rate=7.9% new_space_allocation_throughput=276608.4 unmapper_chunks=0 context_disposal_rate=0.0
 3 | [25830:0x4523210] Memory allocator,   start: 760020 KB, used: 760532 KB, promotion:   1108 KB, available: 730924 KB
 4 | [25830:0x4523210] Read-only space,   start:     34 KB, used:     34 KB, available:    469 KB, committed:    512 KB
 5 | [25830:0x4523210] New space,   start:  16111 KB, used:   1472 KB, available:  14639 KB, committed:  32768 KB, promoted:   1108 KB
 6 | [25830:0x4523210] Old space,          start: 629025 KB, used: 630134 KB, available:  53991 KB, committed: 696036 KB
 7 | [25830:0x4523210] Code space,         start:   3887 KB, used:   3887 KB, available:    786 KB, committed:   5120 KB
 8 | [25830:0x4523210] Map space,          start:   2124 KB, used:   2124 KB, available:    146 KB, committed:   2572 KB
 9 | [25830:0x4523210] Large object space, start:  22161 KB, used:  22161 KB, available: 730403 KB, committed:  23524 KB
10 | [25830:0x4523210] All spaces,         start: 673310 KB, used: 659814 KB, available: 800437 KB, committed: 760532 KB
11 | [25830:0x4523210] External memory reported:  77766 KB
12 | [25830:0x4523210] External memory global 0 KB
13 | [25830:0x4523210] Total time spent in GC  : 1898.3 ms
14 | [25830:0x4523210] Fast promotion mode: false survival rate: 13%
15 | [25830:0x4523210]    33125 ms: pause=2.3 mutator=26.6 gc=s reduce_memory=0 heap.prologue=0.00 heap.epilogue=0.09 heap.epilogue.reduce_new_space=0.00 heap.external.prologue=0.00 heap.external.epilogue=0.00 heap.external_weak_global_handles=0.00 fast_promote=0.00 scavenge=1.97 scavenge.process_array_buffers=0.02 scavenge.roots=0.05 scavenge.weak=0.00 scavenge.weak_global_handles.identify=0.00 scavenge.weak_global_handles.process=0.00 scavenge.parallel=0.93 background.scavenge.parallel=4.53 background.array_buffer_free=0.01 background.store_buffer=0.31 background.unmapper=0.00 incremental.steps_count=0 incremental.steps_took=0.0 scavenge_throughput=5813301 total_size_before=690660664 total_size_after=676403752 holes_size_before=56560944 holes_size_after=56330096 allocated=15010936 promoted=1261968 semi_space_copied=923800 nodes_died_in_new=4 nodes_copied_in_new=1 nodes_promoted=0 promotion_ratio=7.6% average_survival_ratio=15.3% promotion_rate=97.4% semi_space_copy_rate=5.6% new_space_allocation_throughput=283805.8 unmapper_chunks=0 context_disposal_rate=0.0
16 | [25830:0x4523210] Memory allocator,   start: 760532 KB, used: 761556 KB, promotion:   1232 KB, available: 729900 KB
17 | [25830:0x4523210] Read-only space,   start:     34 KB, used:     34 KB, available:    469 KB, committed:    512 KB
18 | [25830:0x4523210] New space,   start:  16111 KB, used:    956 KB, available:  15155 KB, committed:  32768 KB, promoted:   1232 KB
19 | [25830:0x4523210] Old space,          start: 630153 KB, used: 631385 KB, available:  53746 KB, committed: 697060 KB
20 | [25830:0x4523210] Code space,         start:   3887 KB, used:   3887 KB, available:    786 KB, committed:   5120 KB
21 | [25830:0x4523210] Map space,          start:   2124 KB, used:   2124 KB, available:    146 KB, committed:   2572 KB
22 | [25830:0x4523210] Large object space, start:  22161 KB, used:  22161 KB, available: 729379 KB, committed:  23524 KB
23 | [25830:0x4523210] All spaces,         start: 674438 KB, used: 660550 KB, available: 799683 KB, committed: 761556 KB
24 | [25830:0x4523210] External memory reported:  77801 KB
25 | [25830:0x4523210] External memory global 0 KB
26 | [25830:0x4523210] Total time spent in GC  : 1900.6 ms
27 | [25830:0x4523210] Fast promotion mode: false survival rate: 12%
28 | [25830:0x4523210]    33166 ms: pause=2.4 mutator=38.8 gc=s reduce_memory=0 heap.prologue=0.00 heap.epilogue=0.10 heap.epilogue.reduce_new_space=0.00 heap.external.prologue=0.00 heap.external.epilogue=0.00 heap.external_weak_global_handles=0.00 fast_promote=0.00 scavenge=2.08 scavenge.process_array_buffers=0.02 scavenge.roots=0.07 scavenge.weak=0.00 scavenge.weak_global_handles.identify=0.00 scavenge.weak_global_handles.process=0.00 scavenge.parallel=0.98 background.scavenge.parallel=4.81 background.array_buffer_free=0.01 background.store_buffer=0.19 background.unmapper=0.00 incremental.steps_count=0 incremental.steps_took=0.0 scavenge_throughput=5857373 total_size_before=691948808 total_size_after=677554576 holes_size_before=56304936 holes_size_after=56507688 allocated=15545056 promoted=828416 semi_space_copied=1187312 nodes_died_in_new=5 nodes_copied_in_new=2 nodes_promoted=0 promotion_ratio=5.0% average_survival_ratio=15.0% promotion_rate=89.7% semi_space_copy_rate=7.2% new_space_allocation_throughput=282227.0 unmapper_chunks=0 context_disposal_rate=0.0
29 | [25830:0x4523210] Memory allocator,   start: 761556 KB, used: 762580 KB, promotion:    809 KB, available: 728876 KB
30 | [25830:0x4523210] Read-only space,   start:     34 KB, used:     34 KB, available:    469 KB, committed:    512 KB
31 | [25830:0x4523210] New space,   start:  16111 KB, used:   1245 KB, available:  14866 KB, committed:  32768 KB, promoted:    809 KB
32 | [25830:0x4523210] Old space,          start: 631411 KB, used: 632220 KB, available:  53919 KB, committed: 698084 KB
33 | [25830:0x4523210] Code space,         start:   3887 KB, used:   3887 KB, available:    786 KB, committed:   5120 KB
34 | [25830:0x4523210] Map space,          start:   2125 KB, used:   2125 KB, available:    146 KB, committed:   2572 KB
35 | [25830:0x4523210] Large object space, start:  22161 KB, used:  22161 KB, available: 728355 KB, committed:  23524 KB
36 | [25830:0x4523210] All spaces,         start: 675696 KB, used: 661674 KB, available: 798543 KB, committed: 762580 KB
37 | [25830:0x4523210] External memory reported:  78105 KB
38 | [25830:0x4523210] External memory global 0 KB
39 | [25830:0x4523210] Total time spent in GC  : 1903.0 ms


--------------------------------------------------------------------------------
/test/data/v10_verbose_nvp.out:
--------------------------------------------------------------------------------
  1 | [
  2 |   {
  3 |     "pid": 25830,
  4 |     "isolate": "0x4523210",
  5 |     "time_since_init": 33096,
  6 |     "data": {
  7 |       "pause": 2.8,
  8 |       "mutator": 45.4,
  9 |       "gc": "s",
 10 |       "reduce_memory": 0,
 11 |       "heap.prologue": 0,
 12 |       "heap.epilogue": 0.11,
 13 |       "heap.epilogue.reduce_new_space": 0,
 14 |       "heap.external.prologue": 0,
 15 |       "heap.external.epilogue": 0,
 16 |       "heap.external_weak_global_handles": 0.01,
 17 |       "fast_promote": 0,
 18 |       "scavenge": 2.35,
 19 |       "scavenge.process_array_buffers": 0.05,
 20 |       "scavenge.roots": 0.08,
 21 |       "scavenge.weak": 0,
 22 |       "scavenge.weak_global_handles.identify": 0,
 23 |       "scavenge.weak_global_handles.process": 0,
 24 |       "scavenge.parallel": 1.18,
 25 |       "background.scavenge.parallel": 5.76,
 26 |       "background.array_buffer_free": 0.01,
 27 |       "background.store_buffer": 0.21,
 28 |       "background.unmapper": 0,
 29 |       "incremental.steps_count": 0,
 30 |       "incremental.steps_took": 0,
 31 |       "scavenge_throughput": 5727295,
 32 |       "total_size_before": 689505456,
 33 |       "total_size_after": 675649728,
 34 |       "holes_size_before": 57201352,
 35 |       "holes_size_after": 56581496,
 36 |       "allocated": 15239384,
 37 |       "promoted": 1135416,
 38 |       "semi_space_copied": 1295280,
 39 |       "nodes_died_in_new": 4,
 40 |       "nodes_copied_in_new": 4,
 41 |       "nodes_promoted": 2,
 42 |       "promotion_ratio": 6.9,
 43 |       "average_survival_ratio": 15.5,
 44 |       "promotion_rate": 97.6,
 45 |       "semi_space_copy_rate": 7.9,
 46 |       "new_space_allocation_throughput": 276608.4,
 47 |       "unmapper_chunks": 0,
 48 |       "context_disposal_rate": 0
 49 |     },
 50 |     "type": "nvp"
 51 |   },
 52 |   {
 53 |     "pid": 25830,
 54 |     "isolate": "0x4523210",
 55 |     "external_memory_global": 0,
 56 |     "type": "verbose",
 57 |     "data": {
 58 |       "memory_allocator": {
 59 |         "start": 760020,
 60 |         "used": 760532,
 61 |         "promotion": 1108,
 62 |         "available": 730924
 63 |       },
 64 |       "read_only_space": {
 65 |         "start": 34,
 66 |         "used": 34,
 67 |         "available": 469,
 68 |         "committed": 512
 69 |       },
 70 |       "new_space": {
 71 |         "start": 16111,
 72 |         "used": 1472,
 73 |         "available": 14639,
 74 |         "committed": 32768,
 75 |         "promoted": 1108
 76 |       },
 77 |       "old_space": {
 78 |         "start": 629025,
 79 |         "used": 630134,
 80 |         "available": 53991,
 81 |         "committed": 696036
 82 |       },
 83 |       "code_space": {
 84 |         "start": 3887,
 85 |         "used": 3887,
 86 |         "available": 786,
 87 |         "committed": 5120
 88 |       },
 89 |       "map_space": {
 90 |         "start": 2124,
 91 |         "used": 2124,
 92 |         "available": 146,
 93 |         "committed": 2572
 94 |       },
 95 |       "large_object_space": {
 96 |         "start": 22161,
 97 |         "used": 22161,
 98 |         "available": 730403,
 99 |         "committed": 23524
100 |       },
101 |       "all_spaces": {
102 |         "start": 673310,
103 |         "used": 659814,
104 |         "available": 800437,
105 |         "committed": 760532
106 |       },
107 |       "external_memory_reported": 77766,
108 |       "total_time_spent_in_gc": 1898.3
109 |     }
110 |   },
111 |   {
112 |     "pid": 25830,
113 |     "isolate": "0x4523210",
114 |     "time_since_init": 33125,
115 |     "data": {
116 |       "pause": 2.3,
117 |       "mutator": 26.6,
118 |       "gc": "s",
119 |       "reduce_memory": 0,
120 |       "heap.prologue": 0,
121 |       "heap.epilogue": 0.09,
122 |       "heap.epilogue.reduce_new_space": 0,
123 |       "heap.external.prologue": 0,
124 |       "heap.external.epilogue": 0,
125 |       "heap.external_weak_global_handles": 0,
126 |       "fast_promote": 0,
127 |       "scavenge": 1.97,
128 |       "scavenge.process_array_buffers": 0.02,
129 |       "scavenge.roots": 0.05,
130 |       "scavenge.weak": 0,
131 |       "scavenge.weak_global_handles.identify": 0,
132 |       "scavenge.weak_global_handles.process": 0,
133 |       "scavenge.parallel": 0.93,
134 |       "background.scavenge.parallel": 4.53,
135 |       "background.array_buffer_free": 0.01,
136 |       "background.store_buffer": 0.31,
137 |       "background.unmapper": 0,
138 |       "incremental.steps_count": 0,
139 |       "incremental.steps_took": 0,
140 |       "scavenge_throughput": 5813301,
141 |       "total_size_before": 690660664,
142 |       "total_size_after": 676403752,
143 |       "holes_size_before": 56560944,
144 |       "holes_size_after": 56330096,
145 |       "allocated": 15010936,
146 |       "promoted": 1261968,
147 |       "semi_space_copied": 923800,
148 |       "nodes_died_in_new": 4,
149 |       "nodes_copied_in_new": 1,
150 |       "nodes_promoted": 0,
151 |       "promotion_ratio": 7.6,
152 |       "average_survival_ratio": 15.3,
153 |       "promotion_rate": 97.4,
154 |       "semi_space_copy_rate": 5.6,
155 |       "new_space_allocation_throughput": 283805.8,
156 |       "unmapper_chunks": 0,
157 |       "context_disposal_rate": 0
158 |     },
159 |     "type": "nvp"
160 |   },
161 |   {
162 |     "pid": 25830,
163 |     "isolate": "0x4523210",
164 |     "external_memory_global": 0,
165 |     "type": "verbose",
166 |     "data": {
167 |       "memory_allocator": {
168 |         "start": 760532,
169 |         "used": 761556,
170 |         "promotion": 1232,
171 |         "available": 729900
172 |       },
173 |       "read_only_space": {
174 |         "start": 34,
175 |         "used": 34,
176 |         "available": 469,
177 |         "committed": 512
178 |       },
179 |       "new_space": {
180 |         "start": 16111,
181 |         "used": 956,
182 |         "available": 15155,
183 |         "committed": 32768,
184 |         "promoted": 1232
185 |       },
186 |       "old_space": {
187 |         "start": 630153,
188 |         "used": 631385,
189 |         "available": 53746,
190 |         "committed": 697060
191 |       },
192 |       "code_space": {
193 |         "start": 3887,
194 |         "used": 3887,
195 |         "available": 786,
196 |         "committed": 5120
197 |       },
198 |       "map_space": {
199 |         "start": 2124,
200 |         "used": 2124,
201 |         "available": 146,
202 |         "committed": 2572
203 |       },
204 |       "large_object_space": {
205 |         "start": 22161,
206 |         "used": 22161,
207 |         "available": 729379,
208 |         "committed": 23524
209 |       },
210 |       "all_spaces": {
211 |         "start": 674438,
212 |         "used": 660550,
213 |         "available": 799683,
214 |         "committed": 761556
215 |       },
216 |       "external_memory_reported": 77801,
217 |       "total_time_spent_in_gc": 1900.6
218 |     }
219 |   },
220 |   {
221 |     "pid": 25830,
222 |     "isolate": "0x4523210",
223 |     "time_since_init": 33166,
224 |     "data": {
225 |       "pause": 2.4,
226 |       "mutator": 38.8,
227 |       "gc": "s",
228 |       "reduce_memory": 0,
229 |       "heap.prologue": 0,
230 |       "heap.epilogue": 0.1,
231 |       "heap.epilogue.reduce_new_space": 0,
232 |       "heap.external.prologue": 0,
233 |       "heap.external.epilogue": 0,
234 |       "heap.external_weak_global_handles": 0,
235 |       "fast_promote": 0,
236 |       "scavenge": 2.08,
237 |       "scavenge.process_array_buffers": 0.02,
238 |       "scavenge.roots": 0.07,
239 |       "scavenge.weak": 0,
240 |       "scavenge.weak_global_handles.identify": 0,
241 |       "scavenge.weak_global_handles.process": 0,
242 |       "scavenge.parallel": 0.98,
243 |       "background.scavenge.parallel": 4.81,
244 |       "background.array_buffer_free": 0.01,
245 |       "background.store_buffer": 0.19,
246 |       "background.unmapper": 0,
247 |       "incremental.steps_count": 0,
248 |       "incremental.steps_took": 0,
249 |       "scavenge_throughput": 5857373,
250 |       "total_size_before": 691948808,
251 |       "total_size_after": 677554576,
252 |       "holes_size_before": 56304936,
253 |       "holes_size_after": 56507688,
254 |       "allocated": 15545056,
255 |       "promoted": 828416,
256 |       "semi_space_copied": 1187312,
257 |       "nodes_died_in_new": 5,
258 |       "nodes_copied_in_new": 2,
259 |       "nodes_promoted": 0,
260 |       "promotion_ratio": 5,
261 |       "average_survival_ratio": 15,
262 |       "promotion_rate": 89.7,
263 |       "semi_space_copy_rate": 7.2,
264 |       "new_space_allocation_throughput": 282227,
265 |       "unmapper_chunks": 0,
266 |       "context_disposal_rate": 0
267 |     },
268 |     "type": "nvp"
269 |   },
270 |   {
271 |     "pid": 25830,
272 |     "isolate": "0x4523210",
273 |     "external_memory_global": 0,
274 |     "type": "verbose",
275 |     "data": {
276 |       "memory_allocator": {
277 |         "start": 761556,
278 |         "used": 762580,
279 |         "promotion": 809,
280 |         "available": 728876
281 |       },
282 |       "read_only_space": {
283 |         "start": 34,
284 |         "used": 34,
285 |         "available": 469,
286 |         "committed": 512
287 |       },
288 |       "new_space": {
289 |         "start": 16111,
290 |         "used": 1245,
291 |         "available": 14866,
292 |         "committed": 32768,
293 |         "promoted": 809
294 |       },
295 |       "old_space": {
296 |         "start": 631411,
297 |         "used": 632220,
298 |         "available": 53919,
299 |         "committed": 698084
300 |       },
301 |       "code_space": {
302 |         "start": 3887,
303 |         "used": 3887,
304 |         "available": 786,
305 |         "committed": 5120
306 |       },
307 |       "map_space": {
308 |         "start": 2125,
309 |         "used": 2125,
310 |         "available": 146,
311 |         "committed": 2572
312 |       },
313 |       "large_object_space": {
314 |         "start": 22161,
315 |         "used": 22161,
316 |         "available": 728355,
317 |         "committed": 23524
318 |       },
319 |       "all_spaces": {
320 |         "start": 675696,
321 |         "used": 661674,
322 |         "available": 798543,
323 |         "committed": 762580
324 |       },
325 |       "external_memory_reported": 78105,
326 |       "total_time_spent_in_gc": 1903
327 |     }
328 |   }
329 | ]
330 | 


--------------------------------------------------------------------------------
/test/data/v4_nvp.in:
--------------------------------------------------------------------------------
1 | [90819:0x101804a00] [I:0x101804a00]    30388 ms: pause=1.5 mutator=106.6 gc=s external=0.0 mark=0.0 sweep=0.00 sweepns=0.00 sweepos=0.00 sweepcode=0.00 sweepcell=0.00 sweepmap=0.00 evacuate=0.0 new_new=0.0 root_new=0.0 old_new=0.0 compaction_ptrs=0.0 intracompaction_ptrs=0.0 misc_compaction=0.0 weak_closure=0.0 inc_weak_closure=0.0 weakcollection_process=0.0 weakcollection_clear=0.0 weakcollection_abort=0.0 total_size_before=360401216 total_size_after=346970376 holes_size_before=111429384 holes_size_after=112050664 allocated=14874664 promoted=1435056 semi_space_copied=1441408 nodes_died_in_new=16 nodes_copied_in_new=1 nodes_promoted=0 promotion_ratio=8.8% average_survival_ratio=17.5% promotion_rate=99.6% semi_space_copy_rate=8.8% new_space_allocation_throughput=134525 context_disposal_rate=0.0 steps_count=29 steps_took=0.1 scavenge_throughput=9463255
2 | [90819:0x101804a00] [I:0x101804a00]    30444 ms: pause=6.5 mutator=48.8 gc=ms external=0.0 mark=0.6 sweep=5.23 sweepns=4.34 sweepos=0.36 sweepcode=0.15 sweepcell=0.00 sweepmap=0.05 evacuate=0.0 new_new=0.0 root_new=0.0 old_new=0.1 compaction_ptrs=0.0 intracompaction_ptrs=0.0 misc_compaction=0.2 weak_closure=0.0 inc_weak_closure=0.0 weakcollection_process=0.0 weakcollection_clear=0.0 weakcollection_abort=0.0 total_size_before=354597632 total_size_after=345617768 holes_size_before=112050664 holes_size_after=113357064 allocated=7627256 promoted=1402920 semi_space_copied=718712 nodes_died_in_new=8 nodes_copied_in_new=1 nodes_promoted=0 promotion_ratio=15.3% average_survival_ratio=18.1% promotion_rate=97.3% semi_space_copy_rate=7.8% new_space_allocation_throughput=135048 context_disposal_rate=0.0 steps_count=623 steps_took=9.9 longest_step=1.0 incremental_marking_throughput=19200959
3 | 


--------------------------------------------------------------------------------
/test/data/v4_nvp.out:
--------------------------------------------------------------------------------
  1 | [
  2 |   {
  3 |     "pid": 90819,
  4 |     "isolate": "0x101804a00",
  5 |     "type": "nvp",
  6 |     "time_since_init": 30388,
  7 |     "data": {
  8 |       "pause": 1.5,
  9 |       "mutator": 106.6,
 10 |       "gc": "s",
 11 |       "external": 0,
 12 |       "mark": 0,
 13 |       "sweep": 0,
 14 |       "sweepns": 0,
 15 |       "sweepos": 0,
 16 |       "sweepcode": 0,
 17 |       "sweepcell": 0,
 18 |       "sweepmap": 0,
 19 |       "evacuate": 0,
 20 |       "new_new": 0,
 21 |       "root_new": 0,
 22 |       "old_new": 0,
 23 |       "compaction_ptrs": 0,
 24 |       "intracompaction_ptrs": 0,
 25 |       "misc_compaction": 0,
 26 |       "weak_closure": 0,
 27 |       "inc_weak_closure": 0,
 28 |       "weakcollection_process": 0,
 29 |       "weakcollection_clear": 0,
 30 |       "weakcollection_abort": 0,
 31 |       "total_size_before": 360401216,
 32 |       "total_size_after": 346970376,
 33 |       "holes_size_before": 111429384,
 34 |       "holes_size_after": 112050664,
 35 |       "allocated": 14874664,
 36 |       "promoted": 1435056,
 37 |       "semi_space_copied": 1441408,
 38 |       "nodes_died_in_new": 16,
 39 |       "nodes_copied_in_new": 1,
 40 |       "nodes_promoted": 0,
 41 |       "promotion_ratio": 8.8,
 42 |       "average_survival_ratio": 17.5,
 43 |       "promotion_rate": 99.6,
 44 |       "semi_space_copy_rate": 8.8,
 45 |       "new_space_allocation_throughput": 134525,
 46 |       "context_disposal_rate": 0,
 47 |       "steps_count": 29,
 48 |       "steps_took": 0.1,
 49 |       "scavenge_throughput": 9463255
 50 |     }
 51 |   },
 52 |   {
 53 |     "pid": 90819,
 54 |     "isolate": "0x101804a00",
 55 |     "type": "nvp",
 56 |     "time_since_init": 30444,
 57 |     "data": {
 58 |       "pause": 6.5,
 59 |       "mutator": 48.8,
 60 |       "gc": "ms",
 61 |       "external": 0,
 62 |       "mark": 0.6,
 63 |       "sweep": 5.23,
 64 |       "sweepns": 4.34,
 65 |       "sweepos": 0.36,
 66 |       "sweepcode": 0.15,
 67 |       "sweepcell": 0,
 68 |       "sweepmap": 0.05,
 69 |       "evacuate": 0,
 70 |       "new_new": 0,
 71 |       "root_new": 0,
 72 |       "old_new": 0.1,
 73 |       "compaction_ptrs": 0,
 74 |       "intracompaction_ptrs": 0,
 75 |       "misc_compaction": 0.2,
 76 |       "weak_closure": 0,
 77 |       "inc_weak_closure": 0,
 78 |       "weakcollection_process": 0,
 79 |       "weakcollection_clear": 0,
 80 |       "weakcollection_abort": 0,
 81 |       "total_size_before": 354597632,
 82 |       "total_size_after": 345617768,
 83 |       "holes_size_before": 112050664,
 84 |       "holes_size_after": 113357064,
 85 |       "allocated": 7627256,
 86 |       "promoted": 1402920,
 87 |       "semi_space_copied": 718712,
 88 |       "nodes_died_in_new": 8,
 89 |       "nodes_copied_in_new": 1,
 90 |       "nodes_promoted": 0,
 91 |       "promotion_ratio": 15.3,
 92 |       "average_survival_ratio": 18.1,
 93 |       "promotion_rate": 97.3,
 94 |       "semi_space_copy_rate": 7.8,
 95 |       "new_space_allocation_throughput": 135048,
 96 |       "context_disposal_rate": 0,
 97 |       "steps_count": 623,
 98 |       "steps_took": 9.9,
 99 |       "longest_step": 1,
100 |       "incremental_marking_throughput": 19200959
101 |     }
102 |   }
103 | ]


--------------------------------------------------------------------------------
/test/data/v4_trace.in:
--------------------------------------------------------------------------------
1 | [28987:0x101804a00]    12759 ms: Scavenge 63.0 (90.9) -> 50.2 (92.9) MB, 1.4 / 0 ms (+ 0.1 ms in 29 steps since last GC) [allocation failure].
2 | [28987:0x101804a00]    12860 ms: Scavenge 64.4 (92.9) -> 51.6 (95.9) MB, 2.7 / 0 ms (+ 0.1 ms in 29 steps since last GC) [allocation failure].
3 | [28987:0x101804a00]    12910 ms: Mark-sweep 58.8 (95.9) -> 51.0 (96.9) MB, 3.8 / 0 ms (+ 8.2 ms in 101 steps since start of marking, biggest step 0.9 ms) [GC interrupt] [GC in old space requested].
4 | 


--------------------------------------------------------------------------------
/test/data/v4_trace.out:
--------------------------------------------------------------------------------
 1 | [
 2 |   {
 3 |     "pid": 28987,
 4 |     "isolate": "0x101804a00",
 5 |     "time_since_init": 12759,
 6 |     "data": {
 7 |       "collector": "scavenge",
 8 |       "start_object_size": 63,
 9 |       "end_object_size": 50.2,
10 |       "start_memory_size": 90.9,
11 |       "end_memory_size": 92.9,
12 |       "pause": 1.4,
13 |       "external_time": 0,
14 |       "step_description": "+ 0.1 ms in 29 steps since last GC",
15 |       "gc_reason": "allocation failure"
16 |     },
17 |     "type": "trace"
18 |   },
19 |   {
20 |     "pid": 28987,
21 |     "isolate": "0x101804a00",
22 |     "time_since_init": 12860,
23 |     "data": {
24 |       "collector": "scavenge",
25 |       "start_object_size": 64.4,
26 |       "end_object_size": 51.6,
27 |       "start_memory_size": 92.9,
28 |       "end_memory_size": 95.9,
29 |       "pause": 2.7,
30 |       "external_time": 0,
31 |       "step_description": "+ 0.1 ms in 29 steps since last GC",
32 |       "gc_reason": "allocation failure"
33 |     },
34 |     "type": "trace"
35 |   },
36 |   {
37 |     "pid": 28987,
38 |     "isolate": "0x101804a00",
39 |     "time_since_init": 12910,
40 |     "data": {
41 |       "collector": "mark_sweep",
42 |       "start_object_size": 58.8,
43 |       "end_object_size": 51,
44 |       "start_memory_size": 95.9,
45 |       "end_memory_size": 96.9,
46 |       "pause": 3.8,
47 |       "external_time": 0,
48 |       "step_description": "+ 8.2 ms in 101 steps since start of marking, biggest step 0.9 ms",
49 |       "gc_reason": "GC interrupt",
50 |       "collector_reason": "GC in old space requested"
51 |     },
52 |     "type": "trace"
53 |   }
54 | ]
55 | 


--------------------------------------------------------------------------------
/test/data/v4_verbose.in:
--------------------------------------------------------------------------------
 1 | [7144:0x102004a00] Memory allocator,   used: 111556 KB, available: 1387580 KB
 2 | [7144:0x102004a00] New space,          used:   1497 KB, available:  14626 KB, committed:  32248 KB
 3 | [7144:0x102004a00] Old space,          used:  60641 KB, available:   9666 KB, committed:  70398 KB
 4 | [7144:0x102004a00] Code space,         used:   1767 KB, available:    205 KB, committed:   2266 KB
 5 | [7144:0x102004a00] Map space,          used:    273 KB, available:    777 KB, committed:   1070 KB
 6 | [7144:0x102004a00] Large object space, used:      0 KB, available: 1386539 KB, committed:      0 KB
 7 | [7144:0x102004a00] All spaces,         used:  64179 KB, available: 1411816 KB, committed: 105982 KB
 8 | [7144:0x102004a00] External memory reported:     24 KB
 9 | [7144:0x102004a00] Total time spent in GC  : 64.9 ms
10 | [7144:0x102004a00] Memory allocator,   used: 112580 KB, available: 1386556 KB
11 | [7144:0x102004a00] New space,          used:    203 KB, available:  15920 KB, committed:  32248 KB
12 | [7144:0x102004a00] Old space,          used:  60652 KB, available:  10012 KB, committed:  71406 KB
13 | [7144:0x102004a00] Code space,         used:   1672 KB, available:    564 KB, committed:   2266 KB
14 | [7144:0x102004a00] Map space,          used:    238 KB, available:    812 KB, committed:   1070 KB
15 | [7144:0x102004a00] Large object space, used:      0 KB, available: 1385515 KB, committed:      0 KB
16 | [7144:0x102004a00] All spaces,         used:  62767 KB, available: 1412825 KB, committed: 106990 KB
17 | [7144:0x102004a00] External memory reported:     16 KB
18 | [7144:0x102004a00] Total time spent in GC  : 68.1 ms


--------------------------------------------------------------------------------
/test/data/v4_verbose.out:
--------------------------------------------------------------------------------
 1 | [
 2 |   {
 3 |     "pid": 7144,
 4 |     "isolate": "0x102004a00",
 5 |     "type": "verbose",
 6 |     "data": {
 7 |       "memory_allocator": {
 8 |         "used": 111556,
 9 |         "available": 1387580
10 |       },
11 |       "new_space": {
12 |         "used": 1497,
13 |         "available": 14626,
14 |         "committed": 32248
15 |       },
16 |       "old_space": {
17 |         "used": 60641,
18 |         "available": 9666,
19 |         "committed": 70398
20 |       },
21 |       "code_space": {
22 |         "used": 1767,
23 |         "available": 205,
24 |         "committed": 2266
25 |       },
26 |       "map_space": {
27 |         "used": 273,
28 |         "available": 777,
29 |         "committed": 1070
30 |       },
31 |       "large_object_space": {
32 |         "used": 0,
33 |         "available": 1386539,
34 |         "committed": 0
35 |       },
36 |       "all_spaces": {
37 |         "used": 64179,
38 |         "available": 1411816,
39 |         "committed": 105982
40 |       },
41 |       "external_memory_reported": 24,
42 |       "total_time_spent_in_gc": 64.9
43 |     }
44 |   },
45 |   {
46 |     "pid": 7144,
47 |     "isolate": "0x102004a00",
48 |     "type": "verbose",
49 |     "data": {
50 |       "memory_allocator": {
51 |         "used": 112580,
52 |         "available": 1386556
53 |       },
54 |       "new_space": {
55 |         "used": 203,
56 |         "available": 15920,
57 |         "committed": 32248
58 |       },
59 |       "old_space": {
60 |         "used": 60652,
61 |         "available": 10012,
62 |         "committed": 71406
63 |       },
64 |       "code_space": {
65 |         "used": 1672,
66 |         "available": 564,
67 |         "committed": 2266
68 |       },
69 |       "map_space": {
70 |         "used": 238,
71 |         "available": 812,
72 |         "committed": 1070
73 |       },
74 |       "large_object_space": {
75 |         "used": 0,
76 |         "available": 1385515,
77 |         "committed": 0
78 |       },
79 |       "all_spaces": {
80 |         "used": 62767,
81 |         "available": 1412825,
82 |         "committed": 106990
83 |       },
84 |       "external_memory_reported": 16,
85 |       "total_time_spent_in_gc": 68.1
86 |     }
87 |   }
88 | ]


--------------------------------------------------------------------------------
/test/data/v6_nvp.in:
--------------------------------------------------------------------------------
1 | [51548:0x102004600]     3912 ms: pause=2.4 mutator=383.5 gc=s reduce_memory=0 scavenge=2.18 old_new=0.12 weak=0.00 roots=0.05 code=0.00 semispace=1.97 object_groups=0.00 external_prologue=0.00 external_epilogue=0.00 external_weak_global_handles=0.01 steps_count=0 steps_took=0.0 scavenge_throughput=1073741824 total_size_before=52688696 total_size_after=52177656 holes_size_before=106616 holes_size_after=152344 allocated=16910984 promoted=1642176 semi_space_copied=1855136 nodes_died_in_new=20 nodes_copied_in_new=1 nodes_promoted=0 promotion_ratio=40.2% average_survival_ratio=70.3% promotion_rate=99.6% semi_space_copy_rate=45.4% new_space_allocation_throughput=3480.1 context_disposal_rate=0.0
2 | [51548:0x102004600]     4252 ms: pause=4.8 mutator=335.1 gc=ms reduce_memory=0 clear=0 clear.code_flush=0.0 clear.dependent_code=0.0 clear.global_handles=0.0 clear.maps=0.0 clear.slots_buffer=0.0 clear.store_buffer=0.0 clear.string_table=0.1 clear.weak_cells=0.0 clear.weak_collections=0.0 clear.weak_lists=0.2 evacuate=1.9 evacuate.candidates=0.0 evacuate.clean_up=0.0 evacuate.copy=1.7 evacuate.update_pointers=0.1 evacuate.update_pointers.between_evacuated=0.0 evacuate.update_pointers.to_evacuated=0.0 evacuate.update_pointers.to_new=0.1 evacuate.update_pointers.weak=0.0 external.mc_prologue=0.0 external.mc_epilogue=0.0 external.mc_incremental_prologue=0.0 external.mc_incremental_epilogue=0.0 external.weak_global_handles=0.0 finish=0.2 mark=2.1 mark.finish_incremental=0.0 mark.prepare_code_flush=1.8 mark.roots=0.2 mark.weak_closure=0.0 mark.weak_closure.ephemeral=0.0 mark.weak_closure.weak_handles=0.0 mark.weak_closure.weak_roots=0.0 mark.weak_closure.harmony=0.0 sweep=0.2 sweep.code=0.0 sweep.map=0.0 sweep.old=0.0 incremental_finalize=0.0 steps_count=14 steps_took=7.8 longest_step=2.6 finalization_steps_count=2 finalization_steps_took=0.2 finalization_longest_step=0.2 incremental_marking_throughput=1853084 total_size_before=67962160 total_size_after=16890240 holes_size_before=966256 holes_size_after=1783632 allocated=15784504 promoted=1805184 semi_space_copied=1765280 nodes_died_in_new=19 nodes_copied_in_new=2 nodes_promoted=0 promotion_ratio=44.2% average_survival_ratio=72.0% promotion_rate=97.3% semi_space_copy_rate=43.2% new_space_allocation_throughput=3712.6 context_disposal_rate=0.0 compaction_speed=2182435
3 | 


--------------------------------------------------------------------------------
/test/data/v6_nvp.out:
--------------------------------------------------------------------------------
  1 | [
  2 |   {
  3 |     "pid": 51548,
  4 |     "isolate": "0x102004600",
  5 |     "time_since_init": 3912,
  6 |     "data": {
  7 |       "pause": 2.4,
  8 |       "mutator": 383.5,
  9 |       "gc": "s",
 10 |       "reduce_memory": 0,
 11 |       "scavenge": 2.18,
 12 |       "old_new": 0.12,
 13 |       "weak": 0,
 14 |       "roots": 0.05,
 15 |       "code": 0,
 16 |       "semispace": 1.97,
 17 |       "object_groups": 0,
 18 |       "external_prologue": 0,
 19 |       "external_epilogue": 0,
 20 |       "external_weak_global_handles": 0.01,
 21 |       "steps_count": 0,
 22 |       "steps_took": 0,
 23 |       "scavenge_throughput": 1073741824,
 24 |       "total_size_before": 52688696,
 25 |       "total_size_after": 52177656,
 26 |       "holes_size_before": 106616,
 27 |       "holes_size_after": 152344,
 28 |       "allocated": 16910984,
 29 |       "promoted": 1642176,
 30 |       "semi_space_copied": 1855136,
 31 |       "nodes_died_in_new": 20,
 32 |       "nodes_copied_in_new": 1,
 33 |       "nodes_promoted": 0,
 34 |       "promotion_ratio": 40.2,
 35 |       "average_survival_ratio": 70.3,
 36 |       "promotion_rate": 99.6,
 37 |       "semi_space_copy_rate": 45.4,
 38 |       "new_space_allocation_throughput": 3480.1,
 39 |       "context_disposal_rate": 0
 40 |     },
 41 |     "type": "nvp"
 42 |   },
 43 |   {
 44 |     "pid": 51548,
 45 |     "isolate": "0x102004600",
 46 |     "time_since_init": 4252,
 47 |     "data": {
 48 |       "pause": 4.8,
 49 |       "mutator": 335.1,
 50 |       "gc": "ms",
 51 |       "reduce_memory": 0,
 52 |       "clear": 0,
 53 |       "clear.code_flush": 0,
 54 |       "clear.dependent_code": 0,
 55 |       "clear.global_handles": 0,
 56 |       "clear.maps": 0,
 57 |       "clear.slots_buffer": 0,
 58 |       "clear.store_buffer": 0,
 59 |       "clear.string_table": 0.1,
 60 |       "clear.weak_cells": 0,
 61 |       "clear.weak_collections": 0,
 62 |       "clear.weak_lists": 0.2,
 63 |       "evacuate": 1.9,
 64 |       "evacuate.candidates": 0,
 65 |       "evacuate.clean_up": 0,
 66 |       "evacuate.copy": 1.7,
 67 |       "evacuate.update_pointers": 0.1,
 68 |       "evacuate.update_pointers.between_evacuated": 0,
 69 |       "evacuate.update_pointers.to_evacuated": 0,
 70 |       "evacuate.update_pointers.to_new": 0.1,
 71 |       "evacuate.update_pointers.weak": 0,
 72 |       "external.mc_prologue": 0,
 73 |       "external.mc_epilogue": 0,
 74 |       "external.mc_incremental_prologue": 0,
 75 |       "external.mc_incremental_epilogue": 0,
 76 |       "external.weak_global_handles": 0,
 77 |       "finish": 0.2,
 78 |       "mark": 2.1,
 79 |       "mark.finish_incremental": 0,
 80 |       "mark.prepare_code_flush": 1.8,
 81 |       "mark.roots": 0.2,
 82 |       "mark.weak_closure": 0,
 83 |       "mark.weak_closure.ephemeral": 0,
 84 |       "mark.weak_closure.weak_handles": 0,
 85 |       "mark.weak_closure.weak_roots": 0,
 86 |       "mark.weak_closure.harmony": 0,
 87 |       "sweep": 0.2,
 88 |       "sweep.code": 0,
 89 |       "sweep.map": 0,
 90 |       "sweep.old": 0,
 91 |       "incremental_finalize": 0,
 92 |       "steps_count": 14,
 93 |       "steps_took": 7.8,
 94 |       "longest_step": 2.6,
 95 |       "finalization_steps_count": 2,
 96 |       "finalization_steps_took": 0.2,
 97 |       "finalization_longest_step": 0.2,
 98 |       "incremental_marking_throughput": 1853084,
 99 |       "total_size_before": 67962160,
100 |       "total_size_after": 16890240,
101 |       "holes_size_before": 966256,
102 |       "holes_size_after": 1783632,
103 |       "allocated": 15784504,
104 |       "promoted": 1805184,
105 |       "semi_space_copied": 1765280,
106 |       "nodes_died_in_new": 19,
107 |       "nodes_copied_in_new": 2,
108 |       "nodes_promoted": 0,
109 |       "promotion_ratio": 44.2,
110 |       "average_survival_ratio": 72,
111 |       "promotion_rate": 97.3,
112 |       "semi_space_copy_rate": 43.2,
113 |       "new_space_allocation_throughput": 3712.6,
114 |       "context_disposal_rate": 0,
115 |       "compaction_speed": 2182435
116 |     },
117 |     "type": "nvp"
118 |   }
119 | ]


--------------------------------------------------------------------------------
/test/data/v6_trace.in:
--------------------------------------------------------------------------------
1 | [43417:0x102004600]     9709 ms: Scavenge 344.4 (379.7) -> 342.8 (387.7) MB, 6.6 / 0.0 ms [allocation failure].
2 | [43417:0x102004600]     9869 ms: Scavenge 408.3 (445.5) -> 406.5 (456.5) MB, 6.5 / 0.0 ms (+ 8.0 ms in 60 steps since last GC) [allocation failure].
3 | [43417:0x102004600]     9932 ms: Mark-sweep 428.7 (477.0) -> 134.8 (181.8) MB, 10.7 / 0.0 ms (+ 9.0 ms in 110 steps since start of marking, biggest step 2.3 ms) [GC interrupt] [GC in old space requested].
4 | 


--------------------------------------------------------------------------------
/test/data/v6_trace.out:
--------------------------------------------------------------------------------
 1 | [
 2 |   {
 3 |     "pid": 43417,
 4 |     "isolate": "0x102004600",
 5 |     "time_since_init": 9709,
 6 |     "data": {
 7 |       "collector": "scavenge",
 8 |       "start_object_size": 344.4,
 9 |       "end_object_size": 342.8,
10 |       "start_memory_size": 379.7,
11 |       "end_memory_size": 387.7,
12 |       "pause": 6.6,
13 |       "external_time": 0,
14 |       "gc_reason": "allocation failure"
15 |     },
16 |     "type": "trace"
17 |   },
18 |   {
19 |     "pid": 43417,
20 |     "isolate": "0x102004600",
21 |     "time_since_init": 9869,
22 |     "data": {
23 |       "collector": "scavenge",
24 |       "start_object_size": 408.3,
25 |       "end_object_size": 406.5,
26 |       "start_memory_size": 445.5,
27 |       "end_memory_size": 456.5,
28 |       "pause": 6.5,
29 |       "external_time": 0,
30 |       "step_description": "+ 8.0 ms in 60 steps since last GC",
31 |       "gc_reason": "allocation failure"
32 |     },
33 |     "type": "trace"
34 |   },
35 |   {
36 |     "pid": 43417,
37 |     "isolate": "0x102004600",
38 |     "time_since_init": 9932,
39 |     "data": {
40 |       "collector": "mark_sweep",
41 |       "start_object_size": 428.7,
42 |       "end_object_size": 134.8,
43 |       "start_memory_size": 477,
44 |       "end_memory_size": 181.8,
45 |       "pause": 10.7,
46 |       "external_time": 0,
47 |       "step_description": "+ 9.0 ms in 110 steps since start of marking, biggest step 2.3 ms",
48 |       "gc_reason": "GC interrupt",
49 |       "collector_reason": "GC in old space requested"
50 |     },
51 |     "type": "trace"
52 |   }
53 | ]
54 | 


--------------------------------------------------------------------------------
/test/data/v6_trace_verbose.in:
--------------------------------------------------------------------------------
 1 | [15368:0x102004600]     6314 ms: Scavenge 181.6 (213.4) -> 180.5 (224.4) MB, 7.3 / 0.0 ms [allocation failure].
 2 | [15368:0x102004600] Memory allocator,   used: 229828 KB, available: 1236540 KB
 3 | [15368:0x102004600] New space,          used:   3903 KB, available:  12216 KB, committed:  32768 KB
 4 | [15368:0x102004600] Old space,          used:  62965 KB, available:   6373 KB, committed:  70612 KB
 5 | [15368:0x102004600] Code space,         used:   1270 KB, available:     43 KB, committed:   3072 KB
 6 | [15368:0x102004600] Map space,          used:    267 KB, available:    802 KB, committed:   1104 KB
 7 | [15368:0x102004600] Large object space, used: 116408 KB, available: 1235499 KB, committed: 119200 KB
 8 | [15368:0x102004600] All spaces,         used: 184814 KB, available: 1254935 KB, committed: 226756 KB
 9 | [15368:0x102004600] External memory reported:     16 KB
10 | [15368:0x102004600] Total time spent in GC  : 63.6 ms
11 | [15368:0x102004600] Increasing marking speed to 3 due to high promotion rate
12 | [15368:0x102004600] Heap growing factor 4.0 based on mu=0.970, speed_ratio=8 (gc=3103504, mutator=368116)
13 | [15368:0x102004600] Grow: old size: 68596 KB, new limit: 290507 KB (4.0)
14 | [15368:0x102004600]     8049 ms: Scavenge 406.0 (440.6) -> 404.3 (452.6) MB, 5.9 / 0.0 ms (+ 6.4 ms in 42 steps since last GC) [allocation failure].
15 | [15368:0x102004600] Memory allocator,   used: 463460 KB, available: 1002908 KB
16 | [15368:0x102004600] New space,          used:   7345 KB, available:   8774 KB, committed:  32768 KB
17 | [15368:0x102004600] Old space,          used: 128565 KB, available:   9346 KB, committed: 140244 KB
18 | [15368:0x102004600] Code space,         used:   1264 KB, available:     59 KB, committed:   3072 KB
19 | [15368:0x102004600] Map space,          used:    267 KB, available:    802 KB, committed:   1104 KB
20 | [15368:0x102004600] Large object space, used: 276568 KB, available: 1001867 KB, committed: 283200 KB
21 | [15368:0x102004600] All spaces,         used: 414010 KB, available: 1020849 KB, committed: 460388 KB
22 | [15368:0x102004600] External memory reported:     24 KB
23 | [15368:0x102004600] Total time spent in GC  : 128.8 ms
24 | [15368:0x102004600] Heap growing factor 4.0 based on mu=0.970, speed_ratio=11 (gc=4136271, mutator=377178)
25 | [15368:0x102004600] Grow: old size: 136882 KB, new limit: 563650 KB (4.0)
26 | [15368:0x102004600]     8149 ms: Mark-sweep 435.2 (480.9) -> 137.5 (184.8) MB, 6.4 / 0.0 ms (+ 7.6 ms in 112 steps since start of marking, biggest step 2.0 ms) [GC interrupt] [GC in old space requested].
27 | [15368:0x102004600] Memory allocator,   used: 189252 KB, available: 1277116 KB
28 | [15368:0x102004600] New space,          used:   3879 KB, available:  12240 KB, committed:  32768 KB
29 | [15368:0x102004600] Old space,          used: 134586 KB, available:   9839 KB, committed: 148436 KB
30 | [15368:0x102004600] Code space,         used:   1249 KB, available:      0 KB, committed:   3072 KB
31 | [15368:0x102004600] Map space,          used:    265 KB, available:      0 KB, committed:   1104 KB
32 | [15368:0x102004600] Large object space, used:    781 KB, available: 1276075 KB, committed:    800 KB
33 | [15368:0x102004600] All spaces,         used: 140762 KB, available: 1298154 KB, committed: 186180 KB
34 | [15368:0x102004600] External memory reported:     24 KB
35 | [15368:0x102004600] Total time spent in GC  : 135.2 ms
36 | [15368:0x102004600]     9874 ms: Scavenge 315.6 (357.3) -> 314.2 (366.3) MB, 6.7 / 0.0 ms [allocation failure].
37 | [15368:0x102004600] Memory allocator,   used: 375108 KB, available: 1091260 KB
38 | [15368:0x102004600] New space,          used:   5428 KB, available:  10691 KB, committed:  32768 KB
39 | [15368:0x102004600] Old space,          used: 201516 KB, available:  13911 KB, committed: 219092 KB
40 | [15368:0x102004600] Code space,         used:   1287 KB, available:    974 KB, committed:   3072 KB
41 | [15368:0x102004600] Map space,          used:    267 KB, available:    802 KB, committed:   1104 KB
42 | [15368:0x102004600] Large object space, used: 113283 KB, available: 1090219 KB, committed: 116000 KB
43 | [15368:0x102004600] All spaces,         used: 321784 KB, available: 1116598 KB, committed: 372036 KB
44 | [15368:0x102004600] External memory reported:     16 KB
45 | [15368:0x102004600] Total time spent in GC  : 198.4 ms
46 | [15368:0x102004600] Memory reducer: call rate 0.556, low alloc, foreground
47 | [15368:0x102004600] Memory reducer: started GC #1
48 | 


--------------------------------------------------------------------------------
/test/data/v6_trace_verbose.out:
--------------------------------------------------------------------------------
  1 | [
  2 |   {
  3 |     "pid": 15368,
  4 |     "isolate": "0x102004600",
  5 |     "time_since_init": 6314,
  6 |     "data": {
  7 |       "collector": "scavenge",
  8 |       "start_object_size": 181.6,
  9 |       "end_object_size": 180.5,
 10 |       "start_memory_size": 213.4,
 11 |       "end_memory_size": 224.4,
 12 |       "pause": 7.3,
 13 |       "external_time": 0,
 14 |       "gc_reason": "allocation failure"
 15 |     },
 16 |     "type": "trace"
 17 |   },
 18 |   {
 19 |     "pid": 15368,
 20 |     "isolate": "0x102004600",
 21 |     "type": "verbose",
 22 |     "data": {
 23 |       "memory_allocator": {
 24 |         "used": 229828,
 25 |         "available": 1236540
 26 |       },
 27 |       "new_space": {
 28 |         "used": 3903,
 29 |         "available": 12216,
 30 |         "committed": 32768
 31 |       },
 32 |       "old_space": {
 33 |         "used": 62965,
 34 |         "available": 6373,
 35 |         "committed": 70612
 36 |       },
 37 |       "code_space": {
 38 |         "used": 1270,
 39 |         "available": 43,
 40 |         "committed": 3072
 41 |       },
 42 |       "map_space": {
 43 |         "used": 267,
 44 |         "available": 802,
 45 |         "committed": 1104
 46 |       },
 47 |       "large_object_space": {
 48 |         "used": 116408,
 49 |         "available": 1235499,
 50 |         "committed": 119200
 51 |       },
 52 |       "all_spaces": {
 53 |         "used": 184814,
 54 |         "available": 1254935,
 55 |         "committed": 226756
 56 |       },
 57 |       "external_memory_reported": 16,
 58 |       "total_time_spent_in_gc": 63.6
 59 |     }
 60 |   },
 61 |   {
 62 |     "pid": 15368,
 63 |     "isolate": "0x102004600",
 64 |     "time_since_init": 8049,
 65 |     "data": {
 66 |       "collector": "scavenge",
 67 |       "start_object_size": 406,
 68 |       "end_object_size": 404.3,
 69 |       "start_memory_size": 440.6,
 70 |       "end_memory_size": 452.6,
 71 |       "pause": 5.9,
 72 |       "external_time": 0,
 73 |       "step_description": "+ 6.4 ms in 42 steps since last GC",
 74 |       "gc_reason": "allocation failure"
 75 |     },
 76 |     "type": "trace"
 77 |   },
 78 |   {
 79 |     "pid": 15368,
 80 |     "isolate": "0x102004600",
 81 |     "type": "verbose",
 82 |     "data": {
 83 |       "memory_allocator": {
 84 |         "used": 463460,
 85 |         "available": 1002908
 86 |       },
 87 |       "new_space": {
 88 |         "used": 7345,
 89 |         "available": 8774,
 90 |         "committed": 32768
 91 |       },
 92 |       "old_space": {
 93 |         "used": 128565,
 94 |         "available": 9346,
 95 |         "committed": 140244
 96 |       },
 97 |       "code_space": {
 98 |         "used": 1264,
 99 |         "available": 59,
100 |         "committed": 3072
101 |       },
102 |       "map_space": {
103 |         "used": 267,
104 |         "available": 802,
105 |         "committed": 1104
106 |       },
107 |       "large_object_space": {
108 |         "used": 276568,
109 |         "available": 1001867,
110 |         "committed": 283200
111 |       },
112 |       "all_spaces": {
113 |         "used": 414010,
114 |         "available": 1020849,
115 |         "committed": 460388
116 |       },
117 |       "external_memory_reported": 24,
118 |       "total_time_spent_in_gc": 128.8
119 |     }
120 |   },
121 |   {
122 |     "pid": 15368,
123 |     "isolate": "0x102004600",
124 |     "time_since_init": 8149,
125 |     "data": {
126 |       "collector": "mark_sweep",
127 |       "start_object_size": 435.2,
128 |       "end_object_size": 137.5,
129 |       "start_memory_size": 480.9,
130 |       "end_memory_size": 184.8,
131 |       "pause": 6.4,
132 |       "external_time": 0,
133 |       "step_description": "+ 7.6 ms in 112 steps since start of marking, biggest step 2.0 ms",
134 |       "gc_reason": "GC interrupt",
135 |       "collector_reason": "GC in old space requested"
136 |     },
137 |     "type": "trace"
138 |   },
139 |   {
140 |     "pid": 15368,
141 |     "isolate": "0x102004600",
142 |     "type": "verbose",
143 |     "data": {
144 |       "memory_allocator": {
145 |         "used": 189252,
146 |         "available": 1277116
147 |       },
148 |       "new_space": {
149 |         "used": 3879,
150 |         "available": 12240,
151 |         "committed": 32768
152 |       },
153 |       "old_space": {
154 |         "used": 134586,
155 |         "available": 9839,
156 |         "committed": 148436
157 |       },
158 |       "code_space": {
159 |         "used": 1249,
160 |         "available": 0,
161 |         "committed": 3072
162 |       },
163 |       "map_space": {
164 |         "used": 265,
165 |         "available": 0,
166 |         "committed": 1104
167 |       },
168 |       "large_object_space": {
169 |         "used": 781,
170 |         "available": 1276075,
171 |         "committed": 800
172 |       },
173 |       "all_spaces": {
174 |         "used": 140762,
175 |         "available": 1298154,
176 |         "committed": 186180
177 |       },
178 |       "external_memory_reported": 24,
179 |       "total_time_spent_in_gc": 135.2
180 |     }
181 |   },
182 |   {
183 |     "pid": 15368,
184 |     "isolate": "0x102004600",
185 |     "time_since_init": 9874,
186 |     "data": {
187 |       "collector": "scavenge",
188 |       "start_object_size": 315.6,
189 |       "end_object_size": 314.2,
190 |       "start_memory_size": 357.3,
191 |       "end_memory_size": 366.3,
192 |       "pause": 6.7,
193 |       "external_time": 0,
194 |       "gc_reason": "allocation failure"
195 |     },
196 |     "type": "trace"
197 |   },
198 |   {
199 |     "pid": 15368,
200 |     "isolate": "0x102004600",
201 |     "type": "verbose",
202 |     "data": {
203 |       "memory_allocator": {
204 |         "used": 375108,
205 |         "available": 1091260
206 |       },
207 |       "new_space": {
208 |         "used": 5428,
209 |         "available": 10691,
210 |         "committed": 32768
211 |       },
212 |       "old_space": {
213 |         "used": 201516,
214 |         "available": 13911,
215 |         "committed": 219092
216 |       },
217 |       "code_space": {
218 |         "used": 1287,
219 |         "available": 974,
220 |         "committed": 3072
221 |       },
222 |       "map_space": {
223 |         "used": 267,
224 |         "available": 802,
225 |         "committed": 1104
226 |       },
227 |       "large_object_space": {
228 |         "used": 113283,
229 |         "available": 1090219,
230 |         "committed": 116000
231 |       },
232 |       "all_spaces": {
233 |         "used": 321784,
234 |         "available": 1116598,
235 |         "committed": 372036
236 |       },
237 |       "external_memory_reported": 16,
238 |       "total_time_spent_in_gc": 198.4
239 |     }
240 |   }
241 | ]


--------------------------------------------------------------------------------
/test/data/v6_verbose.in:
--------------------------------------------------------------------------------
 1 | [43748:0x103000000] Memory allocator,   used:   7204 KB, available: 1459164 KB
 2 | [43748:0x103000000] New space,          used:    957 KB, available:     50 KB, committed:   2048 KB
 3 | [43748:0x103000000] Old space,          used:    888 KB, available:      0 KB, committed:    980 KB
 4 | [43748:0x103000000] Code space,         used:    242 KB, available:      0 KB, committed:   1024 KB
 5 | [43748:0x103000000] Map space,          used:     49 KB, available:      0 KB, committed:     80 KB
 6 | [43748:0x103000000] Large object space, used:      0 KB, available: 1458123 KB, committed:      0 KB
 7 | [43748:0x103000000] All spaces,         used:   2137 KB, available: 1458173 KB, committed:   4132 KB
 8 | [43748:0x103000000] External memory reported:      0 KB
 9 | [43748:0x103000000] Total time spent in GC  : 0.6 ms
10 | [6785:0x103000000] Memory allocator,   used: 142148 KB, available: 1324220 KB
11 | [6785:0x103000000] New space,          used:   7025 KB, available:   9094 KB, committed:  32768 KB
12 | [6785:0x103000000] Old space,          used:  91744 KB, available:   8954 KB, committed: 102356 KB
13 | [6785:0x103000000] Code space,         used:   1208 KB, available:      0 KB, committed:   2048 KB
14 | [6785:0x103000000] Map space,          used:    265 KB, available:      0 KB, committed:   1104 KB
15 | [6785:0x103000000] Large object space, used:    781 KB, available: 1323179 KB, committed:    800 KB
16 | [6785:0x103000000] All spaces,         used: 101026 KB, available: 1341228 KB, committed: 139076 KB
17 | [6785:0x103000000] External memory reported:     16 KB
18 | [6785:0x103000000] Total time spent in GC  : 102.0 ms


--------------------------------------------------------------------------------
/test/data/v6_verbose.out:
--------------------------------------------------------------------------------
 1 | [
 2 |   {
 3 |     "pid": 43748,
 4 |     "isolate": "0x103000000",
 5 |     "type": "verbose",
 6 |     "data": {
 7 |       "memory_allocator": {
 8 |         "used": 7204,
 9 |         "available": 1459164
10 |       },
11 |       "new_space": {
12 |         "used": 957,
13 |         "available": 50,
14 |         "committed": 2048
15 |       },
16 |       "old_space": {
17 |         "used": 888,
18 |         "available": 0,
19 |         "committed": 980
20 |       },
21 |       "code_space": {
22 |         "used": 242,
23 |         "available": 0,
24 |         "committed": 1024
25 |       },
26 |       "map_space": {
27 |         "used": 49,
28 |         "available": 0,
29 |         "committed": 80
30 |       },
31 |       "large_object_space": {
32 |         "used": 0,
33 |         "available": 1458123,
34 |         "committed": 0
35 |       },
36 |       "all_spaces": {
37 |         "used": 2137,
38 |         "available": 1458173,
39 |         "committed": 4132
40 |       },
41 |       "external_memory_reported": 0,
42 |       "total_time_spent_in_gc": 0.6
43 |     }
44 |   },
45 |   {
46 |     "pid": 6785,
47 |     "isolate": "0x103000000",
48 |     "type": "verbose",
49 |     "data": {
50 |       "memory_allocator": {
51 |         "used": 142148,
52 |         "available": 1324220
53 |       },
54 |       "new_space": {
55 |         "used": 7025,
56 |         "available": 9094,
57 |         "committed": 32768
58 |       },
59 |       "old_space": {
60 |         "used": 91744,
61 |         "available": 8954,
62 |         "committed": 102356
63 |       },
64 |       "code_space": {
65 |         "used": 1208,
66 |         "available": 0,
67 |         "committed": 2048
68 |       },
69 |       "map_space": {
70 |         "used": 265,
71 |         "available": 0,
72 |         "committed": 1104
73 |       },
74 |       "large_object_space": {
75 |         "used": 781,
76 |         "available": 1323179,
77 |         "committed": 800
78 |       },
79 |       "all_spaces": {
80 |         "used": 101026,
81 |         "available": 1341228,
82 |         "committed": 139076
83 |       },
84 |       "external_memory_reported": 16,
85 |       "total_time_spent_in_gc": 102
86 |     }
87 |   }
88 | ]


--------------------------------------------------------------------------------
/test/data/v6_verbose_nvp.in:
--------------------------------------------------------------------------------
 1 | [10114:0x102004600]    15896 ms: pause=8.9 mutator=229.5 gc=s reduce_memory=0 scavenge=8.82 old_new=0.28 weak=0.00 roots=0.05 code=0.00 semispace=8.41 object_groups=0.00 external_prologue=0.00 external_epilogue=0.00 external_weak_global_handles=0.01 steps_count=0 steps_took=0.0 scavenge_throughput=1073741824 total_size_before=196697104 total_size_after=195856384 holes_size_before=1622840 holes_size_after=2063008 allocated=22266768 promoted=13038240 semi_space_copied=2468976 nodes_died_in_new=26 nodes_copied_in_new=1 nodes_promoted=1 promotion_ratio=79.3% average_survival_ratio=87.6% promotion_rate=100.0% semi_space_copy_rate=15.0% new_space_allocation_throughput=12242.2 context_disposal_rate=0.0
 2 | [10114:0x102004600] Memory allocator,   used: 233252 KB, available: 1233116 KB
 3 | [10114:0x102004600] New space,          used:   2504 KB, available:  13615 KB, committed:  32768 KB
 4 | [10114:0x102004600] Old space,          used:  68492 KB, available:   1952 KB, committed:  71636 KB
 5 | [10114:0x102004600] Code space,         used:   1248 KB, available:     58 KB, committed:   3072 KB
 6 | [10114:0x102004600] Map space,          used:    268 KB, available:    800 KB, committed:   1104 KB
 7 | [10114:0x102004600] Large object space, used: 118752 KB, available: 1232075 KB, committed: 121600 KB
 8 | [10114:0x102004600] All spaces,         used: 191266 KB, available: 1248502 KB, committed: 230180 KB
 9 | [10114:0x102004600] External memory reported:     16 KB
10 | [10114:0x102004600] Total time spent in GC  : 70.1 ms
11 | [10114:0x102004600] Increasing marking speed to 3 due to high promotion rate
12 | [10114:0x102004600] Heap growing factor 4.0 based on mu=0.970, speed_ratio=43 (gc=3646688, mutator=85321)
13 | [10114:0x102004600] Grow: old size: 65932 KB, new limit: 279850 KB (4.0)
14 | [10114:0x102004600]    16771 ms: pause=6.2 mutator=869.1 gc=ms reduce_memory=0 clear=0 clear.code_flush=0.0 clear.dependent_code=0.0 clear.global_handles=0.0 clear.maps=0.0 clear.slots_buffer=0.0 clear.store_buffer=0.0 clear.string_table=0.2 clear.weak_cells=0.0 clear.weak_collections=0.0 clear.weak_lists=0.1 evacuate=4.9 evacuate.candidates=0.0 evacuate.clean_up=0.0 evacuate.copy=4.7 evacuate.update_pointers=0.3 evacuate.update_pointers.between_evacuated=0.0 evacuate.update_pointers.to_evacuated=0.0 evacuate.update_pointers.to_new=0.2 evacuate.update_pointers.weak=0.0 external.mc_prologue=0.0 external.mc_epilogue=0.0 external.mc_incremental_prologue=0.0 external.mc_incremental_epilogue=0.0 external.weak_global_handles=0.0 finish=0.1 mark=0.3 mark.finish_incremental=0.2 mark.prepare_code_flush=0.0 mark.roots=0.1 mark.weak_closure=0.0 mark.weak_closure.ephemeral=0.0 mark.weak_closure.weak_handles=0.0 mark.weak_closure.weak_roots=0.0 mark.weak_closure.harmony=0.0 sweep=0.2 sweep.code=0.0 sweep.map=0.0 sweep.old=0.0 incremental_finalize=0.0 steps_count=60 steps_took=8.7 longest_step=2.2 finalization_steps_count=2 finalization_steps_took=0.3 finalization_longest_step=0.2 incremental_marking_throughput=4900095 total_size_before=274849304 total_size_after=76672672 holes_size_before=1025688 holes_size_after=5743160 allocated=78992920 promoted=2404608 semi_space_copied=8804728 nodes_died_in_new=87 nodes_copied_in_new=2 nodes_promoted=0 promotion_ratio=17.8% average_survival_ratio=87.2% promotion_rate=97.4% semi_space_copy_rate=65.1% new_space_allocation_throughput=12313.5 context_disposal_rate=0.0 compaction_speed=2215244
15 | [10114:0x102004600] Memory allocator,   used: 116548 KB, available: 1349820 KB
16 | [10114:0x102004600] New space,          used:   8943 KB, available:   7176 KB, committed:  32768 KB
17 | [10114:0x102004600] Old space,          used:  63658 KB, available:   5604 KB, committed:  75732 KB
18 | [10114:0x102004600] Code space,         used:   1225 KB, available:      0 KB, committed:   3072 KB
19 | [10114:0x102004600] Map space,          used:    266 KB, available:      0 KB, committed:   1104 KB
20 | [10114:0x102004600] Large object space, used:    781 KB, available: 1348779 KB, committed:    800 KB
21 | [10114:0x102004600] All spaces,         used:  74875 KB, available: 1361561 KB, committed: 113476 KB
22 | [10114:0x102004600] External memory reported:     16 KB
23 | [10114:0x102004600] Total time spent in GC  : 76.3 ms
24 | [10114:0x102004600]    17340 ms: pause=7.4 mutator=561.7 gc=s reduce_memory=0 scavenge=7.31 old_new=0.18 weak=0.00 roots=0.06 code=0.00 semispace=6.99 object_groups=0.00 external_prologue=0.00 external_epilogue=0.00 external_weak_global_handles=0.01 steps_count=0 steps_took=0.0 scavenge_throughput=1073741824 total_size_before=129591504 total_size_after=127907376 holes_size_before=6773880 holes_size_after=11365384 allocated=52918832 promoted=8699016 semi_space_copied=5860016 nodes_died_in_new=60 nodes_copied_in_new=1 nodes_promoted=0 promotion_ratio=52.9% average_survival_ratio=87.5% promotion_rate=98.8% semi_space_copy_rate=35.6% new_space_allocation_throughput=12365.4 context_disposal_rate=0.0
25 | [10114:0x102004600] Memory allocator,   used: 170340 KB, available: 1296028 KB
26 | [10114:0x102004600] New space,          used:   5918 KB, available:  10201 KB, committed:  32768 KB
27 | [10114:0x102004600] Old space,          used:  72170 KB, available:  10070 KB, committed:  83924 KB
28 | [10114:0x102004600] Code space,         used:   1238 KB, available:   1024 KB, committed:   3072 KB
29 | [10114:0x102004600] Map space,          used:    268 KB, available:    800 KB, committed:   1104 KB
30 | [10114:0x102004600] Large object space, used:  45313 KB, available: 1294987 KB, committed:  46400 KB
31 | [10114:0x102004600] All spaces,         used: 124909 KB, available: 1317085 KB, committed: 167268 KB
32 | [10114:0x102004600] External memory reported:     16 KB
33 | [10114:0x102004600] Total time spent in GC  : 83.7 ms
34 | [10114:0x102004600]    18212 ms: pause=6.1 mutator=865.4 gc=s reduce_memory=0 scavenge=5.95 old_new=0.18 weak=0.00 roots=0.04 code=0.00 semispace=5.64 object_groups=0.00 external_prologue=0.00 external_epilogue=0.00 external_weak_global_handles=0.02 steps_count=0 steps_took=0.0 scavenge_throughput=1073741824 total_size_before=203127800 total_size_after=201103232 holes_size_before=10386984 holes_size_after=10587784 allocated=75220424 promoted=5857168 semi_space_copied=8328568 nodes_died_in_new=83 nodes_copied_in_new=2 nodes_promoted=0 promotion_ratio=35.6% average_survival_ratio=87.5% promotion_rate=100.0% semi_space_copy_rate=50.7% new_space_allocation_throughput=12293.8 context_disposal_rate=0.0
35 | [10114:0x102004600] Memory allocator,   used: 241284 KB, available: 1225084 KB
36 | [10114:0x102004600] New space,          used:   8354 KB, available:   7765 KB, committed:  32768 KB
37 | [10114:0x102004600] Old space,          used:  77921 KB, available:  10267 KB, committed:  90068 KB
38 | [10114:0x102004600] Code space,         used:   1249 KB, available:     68 KB, committed:   3072 KB
39 | [10114:0x102004600] Map space,          used:    268 KB, available:    800 KB, committed:   1104 KB
40 | [10114:0x102004600] Large object space, used: 108595 KB, available: 1224043 KB, committed: 111200 KB
41 | [10114:0x102004600] All spaces,         used: 196389 KB, available: 1242945 KB, committed: 238212 KB
42 | [10114:0x102004600] External memory reported:     24 KB
43 | [10114:0x102004600] Total time spent in GC  : 89.8 ms
44 | [10114:0x102004600] Memory reducer: call rate 3.227, high alloc, foreground
45 | [10114:0x102004600] Memory reducer: waiting for 8000 ms
46 | 


--------------------------------------------------------------------------------
/test/data/v8_nvp.in:
--------------------------------------------------------------------------------
1 | [21344:0x103000600]      765 ms: pause=0.5 mutator=166.7 gc=s reduce_memory=0 scavenge=0.50 evacuate=0.00 old_new=0.12 weak=0.00 roots=0.02 code=0.00 semispace=0.15 external.prologue=0.00 external.epilogue=0.00 external_weak_global_handles=0.00 steps_count=0 steps_took=0.0 scavenge_throughput=2910837 total_size_before=12413576 total_size_after=8408016 holes_size_before=3336 holes_size_after=3336 allocated=4542128 promoted=48816 semi_space_copied=70280 nodes_died_in_new=9 nodes_copied_in_new=3 nodes_promoted=0 promotion_ratio=1.2% average_survival_ratio=31.1% promotion_rate=83.2% semi_space_copy_rate=1.7% new_space_allocation_throughput=25575.6 context_disposal_rate=0.0
2 | [21344:0x103000600]      831 ms: pause=0.8 mutator=64.8 gc=ms reduce_memory=0 clear=0 clear.code_flush=0.0 clear.dependent_code=0.0 clear.maps=0.0 clear.slots_buffer=0.0 clear.store_buffer=0.0 clear.string_table=0.1 clear.weak_cells=0.0 clear.weak_collections=0.0 clear.weak_lists=0.1 epilogue=0.0 evacuate=0.3 evacuate.candidates=0.0 evacuate.clean_up=0.0 evacuate.copy=0.2 evacuate.prologue=0.0 evacuate.epilogue=0.0 evacuate.rebalance=0.0 evacuate.update_pointers=0.2 evacuate.update_pointers.to_evacuated=0.0 evacuate.update_pointers.to_new=0.2 evacuate.update_pointers.weak=0.0 external.prologue=0.0 external.epilogue=0.0 external.weak_global_handles=0.0 finish=0.1 mark=0.1 mark.finish_incremental=0.0 mark.prepare_code_flush=0.0 mark.roots=0.0 mark.weak_closure=0.0 mark.weak_closure.ephemeral=0.0 mark.weak_closure.weak_handles=0.0 mark.weak_closure.weak_roots=0.0 mark.weak_closure.harmony=0.0 mark.wrapper_prologue=0.0 mark.wrapper_epilogue=0.0 mark.wrapper_tracing=0.0 prologue=0.0 sweep=0.0 sweep.code=0.0 sweep.map=0.0 sweep.old=0.0 incremental=6.1 incremental.finalize=0.1 incremental.finalize.body=0.1 incremental.finalize.external.prologue=0.0 incremental.finalize.external.epilogue=0.0 incremental.sweeping=0.0 incremental.wrapper_prologue=0.0 incremental.wrapper_tracing=0.0 incremental_wrapper_tracing_longest_step=0.0 incremental_finalize_longest_step=0.1 incremental_finalize_steps_count=1 incremental_longest_step=1.0 incremental_steps_count=10 incremental_marking_throughput=1138176 incremental_walltime_duration=12 total_size_before=10164656 total_size_after=7156704 holes_size_before=453360 holes_size_after=513992 allocated=1756640 promoted=344 semi_space_copied=179048 nodes_died_in_new=7 nodes_copied_in_new=7 nodes_promoted=0 promotion_ratio=0.0% average_survival_ratio=25.8% promotion_rate=0.5% semi_space_copy_rate=10.2% new_space_allocation_throughput=25614.9 context_disposal_rate=0.0 compaction_speed=793770


--------------------------------------------------------------------------------
/test/data/v8_nvp.out:
--------------------------------------------------------------------------------
  1 | [
  2 |   {
  3 |     "pid": 21344,
  4 |     "isolate": "0x103000600",
  5 |     "time_since_init": 765,
  6 |     "data": {
  7 |       "pause": 0.5,
  8 |       "mutator": 166.7,
  9 |       "gc": "s",
 10 |       "reduce_memory": 0,
 11 |       "scavenge": 0.5,
 12 |       "evacuate": 0,
 13 |       "old_new": 0.12,
 14 |       "weak": 0,
 15 |       "roots": 0.02,
 16 |       "code": 0,
 17 |       "semispace": 0.15,
 18 |       "external.prologue": 0,
 19 |       "external.epilogue": 0,
 20 |       "external_weak_global_handles": 0,
 21 |       "steps_count": 0,
 22 |       "steps_took": 0,
 23 |       "scavenge_throughput": 2910837,
 24 |       "total_size_before": 12413576,
 25 |       "total_size_after": 8408016,
 26 |       "holes_size_before": 3336,
 27 |       "holes_size_after": 3336,
 28 |       "allocated": 4542128,
 29 |       "promoted": 48816,
 30 |       "semi_space_copied": 70280,
 31 |       "nodes_died_in_new": 9,
 32 |       "nodes_copied_in_new": 3,
 33 |       "nodes_promoted": 0,
 34 |       "promotion_ratio": 1.2,
 35 |       "average_survival_ratio": 31.1,
 36 |       "promotion_rate": 83.2,
 37 |       "semi_space_copy_rate": 1.7,
 38 |       "new_space_allocation_throughput": 25575.6,
 39 |       "context_disposal_rate": 0
 40 |     },
 41 |     "type": "nvp"
 42 |   },
 43 |   {
 44 |     "pid": 21344,
 45 |     "isolate": "0x103000600",
 46 |     "time_since_init": 831,
 47 |     "data": {
 48 |       "pause": 0.8,
 49 |       "mutator": 64.8,
 50 |       "gc": "ms",
 51 |       "reduce_memory": 0,
 52 |       "clear": 0,
 53 |       "clear.code_flush": 0,
 54 |       "clear.dependent_code": 0,
 55 |       "clear.maps": 0,
 56 |       "clear.slots_buffer": 0,
 57 |       "clear.store_buffer": 0,
 58 |       "clear.string_table": 0.1,
 59 |       "clear.weak_cells": 0,
 60 |       "clear.weak_collections": 0,
 61 |       "clear.weak_lists": 0.1,
 62 |       "epilogue": 0,
 63 |       "evacuate": 0.3,
 64 |       "evacuate.candidates": 0,
 65 |       "evacuate.clean_up": 0,
 66 |       "evacuate.copy": 0.2,
 67 |       "evacuate.prologue": 0,
 68 |       "evacuate.epilogue": 0,
 69 |       "evacuate.rebalance": 0,
 70 |       "evacuate.update_pointers": 0.2,
 71 |       "evacuate.update_pointers.to_evacuated": 0,
 72 |       "evacuate.update_pointers.to_new": 0.2,
 73 |       "evacuate.update_pointers.weak": 0,
 74 |       "external.prologue": 0,
 75 |       "external.epilogue": 0,
 76 |       "external.weak_global_handles": 0,
 77 |       "finish": 0.1,
 78 |       "mark": 0.1,
 79 |       "mark.finish_incremental": 0,
 80 |       "mark.prepare_code_flush": 0,
 81 |       "mark.roots": 0,
 82 |       "mark.weak_closure": 0,
 83 |       "mark.weak_closure.ephemeral": 0,
 84 |       "mark.weak_closure.weak_handles": 0,
 85 |       "mark.weak_closure.weak_roots": 0,
 86 |       "mark.weak_closure.harmony": 0,
 87 |       "mark.wrapper_prologue": 0,
 88 |       "mark.wrapper_epilogue": 0,
 89 |       "mark.wrapper_tracing": 0,
 90 |       "prologue": 0,
 91 |       "sweep": 0,
 92 |       "sweep.code": 0,
 93 |       "sweep.map": 0,
 94 |       "sweep.old": 0,
 95 |       "incremental": 6.1,
 96 |       "incremental.finalize": 0.1,
 97 |       "incremental.finalize.body": 0.1,
 98 |       "incremental.finalize.external.prologue": 0,
 99 |       "incremental.finalize.external.epilogue": 0,
100 |       "incremental.sweeping": 0,
101 |       "incremental.wrapper_prologue": 0,
102 |       "incremental.wrapper_tracing": 0,
103 |       "incremental_wrapper_tracing_longest_step": 0,
104 |       "incremental_finalize_longest_step": 0.1,
105 |       "incremental_finalize_steps_count": 1,
106 |       "incremental_longest_step": 1,
107 |       "incremental_steps_count": 10,
108 |       "incremental_marking_throughput": 1138176,
109 |       "incremental_walltime_duration": 12,
110 |       "total_size_before": 10164656,
111 |       "total_size_after": 7156704,
112 |       "holes_size_before": 453360,
113 |       "holes_size_after": 513992,
114 |       "allocated": 1756640,
115 |       "promoted": 344,
116 |       "semi_space_copied": 179048,
117 |       "nodes_died_in_new": 7,
118 |       "nodes_copied_in_new": 7,
119 |       "nodes_promoted": 0,
120 |       "promotion_ratio": 0,
121 |       "average_survival_ratio": 25.8,
122 |       "promotion_rate": 0.5,
123 |       "semi_space_copy_rate": 10.2,
124 |       "new_space_allocation_throughput": 25614.9,
125 |       "context_disposal_rate": 0,
126 |       "compaction_speed": 793770
127 |     },
128 |     "type": "nvp"
129 |   }
130 | ]
131 | 


--------------------------------------------------------------------------------
/test/data/v8_trace.in:
--------------------------------------------------------------------------------
1 | [20671:0x103000000]      687 ms: Scavenge 11.5 (18.0) -> 7.7 (18.0) MB, 0.6 / 0.0 ms  allocation failure
2 | [20869:0x103001000]      812 ms: Mark-sweep 11.0 (19.0) -> 6.8 (19.0) MB, 0.8 / 0.0 ms  (+ 5.8 ms in 9 steps since start of marking, biggest step 1.0 ms, walltime since start of marking 12 ms) finalize incremental marking via task GC in old space requested
3 | [20671:0x103000000]      930 ms: Scavenge 10.9 (18.5) -> 7.2 (18.5) MB, 0.8 / 0.0 ms  allocation failure
4 | 


--------------------------------------------------------------------------------
/test/data/v8_trace.out:
--------------------------------------------------------------------------------
 1 | [
 2 |   {
 3 |     "pid": 20671,
 4 |     "isolate": "0x103000000",
 5 |     "time_since_init": 687,
 6 |     "data": {
 7 |       "collector": "scavenge",
 8 |       "start_object_size": 11.5,
 9 |       "end_object_size": 7.7,
10 |       "start_memory_size": 18,
11 |       "end_memory_size": 18,
12 |       "pause": 0.6,
13 |       "external_time": 0
14 |     },
15 |     "type": "trace"
16 |   },
17 |   {
18 |     "pid": 20869,
19 |     "isolate": "0x103001000",
20 |     "time_since_init": 812,
21 |     "data": {
22 |       "collector": "mark_sweep",
23 |       "start_object_size": 11,
24 |       "end_object_size": 6.8,
25 |       "start_memory_size": 19,
26 |       "end_memory_size": 19,
27 |       "pause": 0.8,
28 |       "external_time": 0,
29 |       "step_description": "+ 5.8 ms in 9 steps since start of marking, biggest step 1.0 ms, walltime since start of marking 12 ms"
30 |     },
31 |     "type": "trace"
32 |   },
33 |   {
34 |     "pid": 20671,
35 |     "isolate": "0x103000000",
36 |     "time_since_init": 930,
37 |     "data": {
38 |       "collector": "scavenge",
39 |       "start_object_size": 10.9,
40 |       "end_object_size": 7.2,
41 |       "start_memory_size": 18.5,
42 |       "end_memory_size": 18.5,
43 |       "pause": 0.8,
44 |       "external_time": 0
45 |     },
46 |     "type": "trace"
47 |   }
48 | ]
49 | 


--------------------------------------------------------------------------------
/test/data/v8_trace_verbose.in:
--------------------------------------------------------------------------------
 1 | [23252:0x102801600]      769 ms: Scavenge 11.8 (18.5) -> 8.0 (18.5) MB, 0.5 / 0.0 ms  allocation failure
 2 | [23252:0x102801600] Memory allocator,   used:  18944 KB, available: 1447424 KB
 3 | [23252:0x102801600] New space,          used:     90 KB, available:   3937 KB, committed:   8192 KB
 4 | [23252:0x102801600] Old space,          used:   4983 KB, available:      0 KB, committed:   5120 KB
 5 | [23252:0x102801600] Code space,         used:   2523 KB, available:      3 KB, committed:   3072KB
 6 | [23252:0x102801600] Map space,          used:    621 KB, available:      0 KB, committed:   1024 KB
 7 | [23252:0x102801600] Large object space, used:      0 KB, available: 1446903 KB, committed:      0 KB
 8 | [23252:0x102801600] All spaces,         used:   8218 KB, available: 1450845 KB, committed:  17408KB
 9 | [23252:0x102801600] External memory reported:     56 KB
10 | [23252:0x102801600] Total time spent in GC  : 7.0 ms
11 | [23252:0x102801600] Fast promotion mode: false survival rate: 3%
12 | [23252:0x102801600]      921 ms: Scavenge 12.0 (19.0) -> 8.2 (19.0) MB, 0.6 / 0.0 ms  allocation failure
13 | [23252:0x102801600] Memory allocator,   used:  19456 KB, available: 1446912 KB
14 | [23252:0x102801600] New space,          used:     47 KB, available:   3980 KB, committed:   8192 KB
15 | [23252:0x102801600] Old space,          used:   5110 KB, available:    375 KB, committed:   5632 KB
16 | [23252:0x102801600] Code space,         used:   2534 KB, available:      3 KB, committed:   3072KB
17 | [23252:0x102801600] Map space,          used:    677 KB, available:      0 KB, committed:   1024 KB
18 | [23252:0x102801600] Large object space, used:      0 KB, available: 1446391 KB, committed:      0 KB
19 | [23252:0x102801600] All spaces,         used:   8369 KB, available: 1450751 KB, committed:  17920KB
20 | [23252:0x102801600] External memory reported:     58 KB
21 | [23252:0x102801600] Total time spent in GC  : 7.6 ms
22 | [23252:0x102801600] Fast promotion mode: false survival rate: 4%
23 | [23252:0x102801600]      930 ms: Heap growing factor 4.0 based on mu=0.970, speed_ratio=0 (gc=0, mutator=7009)
24 | [23252:0x102801600]      930 ms: Grow: old size: 6813 KB, new limit: 31280 KB (4.0)
25 | [23252:0x102801600]      930 ms: Mark-sweep 8.4 (19.0) -> 6.8 (19.0) MB, 0.8 / 0.0 ms  (+ 6.2 ms in 10 steps since start of marking, biggest step 1.0 ms, walltime since start of marking 14 ms) finalize incremental marking via task GC in old space requested
26 | [23252:0x102801600] Memory allocator,   used:  19456 KB, available: 1446912 KB
27 | [23252:0x102801600] New space,          used:    145 KB, available:   3882 KB, committed:   8192 KB
28 | [23252:0x102801600] Old space,          used:   4233 KB, available:    469 KB, committed:   5632 KB
29 | [23252:0x102801600] Code space,         used:   2287 KB, available:      0 KB, committed:   3072KB
30 | [23252:0x102801600] Map space,          used:    292 KB, available:      0 KB, committed:   1024 KB
31 | [23252:0x102801600] Large object space, used:      0 KB, available: 1446391 KB, committed:      0 KB
32 | [23252:0x102801600] All spaces,         used:   6958 KB, available: 1450743 KB, committed:  17920KB
33 | [23252:0x102801600] External memory reported:     74 KB
34 | [23252:0x102801600] Total time spent in GC  : 8.4 ms
35 | [23252:0x102801600] Fast promotion mode: false survival rate: 1%
36 | 


--------------------------------------------------------------------------------
/test/data/v8_trace_verbose.out:
--------------------------------------------------------------------------------
  1 | [
  2 |   {
  3 |     "pid": 23252,
  4 |     "isolate": "0x102801600",
  5 |     "time_since_init": 769,
  6 |     "data": {
  7 |       "collector": "scavenge",
  8 |       "start_object_size": 11.8,
  9 |       "end_object_size": 8,
 10 |       "start_memory_size": 18.5,
 11 |       "end_memory_size": 18.5,
 12 |       "pause": 0.5,
 13 |       "external_time": 0
 14 |     },
 15 |     "type": "trace"
 16 |   },
 17 |   {
 18 |     "pid": 23252,
 19 |     "isolate": "0x102801600",
 20 |     "type": "verbose",
 21 |     "data": {
 22 |       "memory_allocator": {
 23 |         "used": 18944,
 24 |         "available": 1447424
 25 |       },
 26 |       "new_space": {
 27 |         "used": 90,
 28 |         "available": 3937,
 29 |         "committed": 8192
 30 |       },
 31 |       "old_space": {
 32 |         "used": 4983,
 33 |         "available": 0,
 34 |         "committed": 5120
 35 |       },
 36 |       "code_space": {
 37 |         "used": 2523,
 38 |         "available": 3,
 39 |         "committed": 3072
 40 |       },
 41 |       "map_space": {
 42 |         "used": 621,
 43 |         "available": 0,
 44 |         "committed": 1024
 45 |       },
 46 |       "large_object_space": {
 47 |         "used": 0,
 48 |         "available": 1446903,
 49 |         "committed": 0
 50 |       },
 51 |       "all_spaces": {
 52 |         "used": 8218,
 53 |         "available": 1450845,
 54 |         "committed": 17408
 55 |       },
 56 |       "external_memory_reported": 56,
 57 |       "total_time_spent_in_gc": 7
 58 |     }
 59 |   },
 60 |   {
 61 |     "pid": 23252,
 62 |     "isolate": "0x102801600",
 63 |     "time_since_init": 921,
 64 |     "data": {
 65 |       "collector": "scavenge",
 66 |       "start_object_size": 12,
 67 |       "end_object_size": 8.2,
 68 |       "start_memory_size": 19,
 69 |       "end_memory_size": 19,
 70 |       "pause": 0.6,
 71 |       "external_time": 0
 72 |     },
 73 |     "type": "trace"
 74 |   },
 75 |   {
 76 |     "pid": 23252,
 77 |     "isolate": "0x102801600",
 78 |     "type": "verbose",
 79 |     "data": {
 80 |       "memory_allocator": {
 81 |         "used": 19456,
 82 |         "available": 1446912
 83 |       },
 84 |       "new_space": {
 85 |         "used": 47,
 86 |         "available": 3980,
 87 |         "committed": 8192
 88 |       },
 89 |       "old_space": {
 90 |         "used": 5110,
 91 |         "available": 375,
 92 |         "committed": 5632
 93 |       },
 94 |       "code_space": {
 95 |         "used": 2534,
 96 |         "available": 3,
 97 |         "committed": 3072
 98 |       },
 99 |       "map_space": {
100 |         "used": 677,
101 |         "available": 0,
102 |         "committed": 1024
103 |       },
104 |       "large_object_space": {
105 |         "used": 0,
106 |         "available": 1446391,
107 |         "committed": 0
108 |       },
109 |       "all_spaces": {
110 |         "used": 8369,
111 |         "available": 1450751,
112 |         "committed": 17920
113 |       },
114 |       "external_memory_reported": 58,
115 |       "total_time_spent_in_gc": 7.6
116 |     }
117 |   },
118 |   {
119 |     "pid": 23252,
120 |     "isolate": "0x102801600",
121 |     "time_since_init": 930,
122 |     "data": {
123 |       "collector": "mark_sweep",
124 |       "start_object_size": 8.4,
125 |       "end_object_size": 6.8,
126 |       "start_memory_size": 19,
127 |       "end_memory_size": 19,
128 |       "pause": 0.8,
129 |       "external_time": 0,
130 |       "step_description": "+ 6.2 ms in 10 steps since start of marking, biggest step 1.0 ms, walltime since start of marking 14 ms"
131 |     },
132 |     "type": "trace"
133 |   },
134 |   {
135 |     "pid": 23252,
136 |     "isolate": "0x102801600",
137 |     "type": "verbose",
138 |     "data": {
139 |       "memory_allocator": {
140 |         "used": 19456,
141 |         "available": 1446912
142 |       },
143 |       "new_space": {
144 |         "used": 145,
145 |         "available": 3882,
146 |         "committed": 8192
147 |       },
148 |       "old_space": {
149 |         "used": 4233,
150 |         "available": 469,
151 |         "committed": 5632
152 |       },
153 |       "code_space": {
154 |         "used": 2287,
155 |         "available": 0,
156 |         "committed": 3072
157 |       },
158 |       "map_space": {
159 |         "used": 292,
160 |         "available": 0,
161 |         "committed": 1024
162 |       },
163 |       "large_object_space": {
164 |         "used": 0,
165 |         "available": 1446391,
166 |         "committed": 0
167 |       },
168 |       "all_spaces": {
169 |         "used": 6958,
170 |         "available": 1450743,
171 |         "committed": 17920
172 |       },
173 |       "external_memory_reported": 74,
174 |       "total_time_spent_in_gc": 8.4
175 |     }
176 |   }
177 | ]
178 | 


--------------------------------------------------------------------------------
/test/data/v8_verbose.in:
--------------------------------------------------------------------------------
 1 | [23648:0x103001600] Memory allocator,   used:  18944 KB, available: 1447424 KB
 2 | [23648:0x103001600] New space,          used:     78 KB, available:   3949 KB, committed:   8192 KB
 3 | [23648:0x103001600] Old space,          used:   4973 KB, available:      0 KB, committed:   5120 KB
 4 | [23648:0x103001600] Code space,         used:   2525 KB, available:      2 KB, committed:   3072KB
 5 | [23648:0x103001600] Map space,          used:    621 KB, available:      0 KB, committed:   1024 KB
 6 | [23648:0x103001600] Large object space, used:      0 KB, available: 1446903 KB, committed:      0 KB
 7 | [23648:0x103001600] All spaces,         used:   8198 KB, available: 1450855 KB, committed:  17408KB
 8 | [23648:0x103001600] External memory reported:     58 KB
 9 | [23648:0x103001600] Total time spent in GC  : 6.7 ms
10 | [23648:0x103001600] Fast promotion mode: false survival rate: 2%
11 | [23648:0x103001600] Memory allocator,   used:  19456 KB, available: 1446912 KB
12 | [23648:0x103001600] New space,          used:     29 KB, available:   3998 KB, committed:   8192 KB
13 | [23648:0x103001600] Old space,          used:   5091 KB, available:      0 KB, committed:   5632 KB
14 | [23648:0x103001600] Code space,         used:   2537 KB, available:      2 KB, committed:   3072KB
15 | [23648:0x103001600] Map space,          used:    678 KB, available:      0 KB, committed:   1024 KB
16 | [23648:0x103001600] Large object space, used:      0 KB, available: 1446391 KB, committed:      0 KB
17 | [23648:0x103001600] All spaces,         used:   8337 KB, available: 1450392 KB, committed:  17920KB
18 | [23648:0x103001600] External memory reported:     59 KB
19 | [23648:0x103001600] Total time spent in GC  : 7.3 ms
20 | [23648:0x103001600] Fast promotion mode: false survival rate: 5%
21 | [23648:0x103001600]      933 ms: Heap growing factor 4.0 based on mu=0.970, speed_ratio=0 (gc=0, mutator=6982)
22 | [23648:0x103001600]      933 ms: Grow: old size: 6819 KB, new limit: 31305 KB (4.0)
23 | [23648:0x103001600] Memory allocator,   used:  19456 KB, available: 1446912 KB
24 | [23648:0x103001600] New space,          used:    253 KB, available:   3774 KB, committed:   8192 KB
25 | [23648:0x103001600] Old space,          used:   4224 KB, available:    494 KB, committed:   5632 KB
26 | [23648:0x103001600] Code space,         used:   2302 KB, available:      0 KB, committed:   3072KB
27 | [23648:0x103001600] Map space,          used:    291 KB, available:      0 KB, committed:   1024 KB
28 | [23648:0x103001600] Large object space, used:      0 KB, available: 1446391 KB, committed:      0 KB
29 | [23648:0x103001600] All spaces,         used:   7072 KB, available: 1450660 KB, committed:  17920KB
30 | [23648:0x103001600] External memory reported:     90 KB
31 | [23648:0x103001600] Total time spent in GC  : 8.3 ms
32 | [23648:0x103001600] Fast promotion mode: false survival rate: 0%
33 | 


--------------------------------------------------------------------------------
/test/data/v8_verbose.out:
--------------------------------------------------------------------------------
  1 | [
  2 |   {
  3 |     "pid": 23648,
  4 |     "isolate": "0x103001600",
  5 |     "type": "verbose",
  6 |     "data": {
  7 |       "memory_allocator": {
  8 |         "used": 18944,
  9 |         "available": 1447424
 10 |       },
 11 |       "new_space": {
 12 |         "used": 78,
 13 |         "available": 3949,
 14 |         "committed": 8192
 15 |       },
 16 |       "old_space": {
 17 |         "used": 4973,
 18 |         "available": 0,
 19 |         "committed": 5120
 20 |       },
 21 |       "code_space": {
 22 |         "used": 2525,
 23 |         "available": 2,
 24 |         "committed": 3072
 25 |       },
 26 |       "map_space": {
 27 |         "used": 621,
 28 |         "available": 0,
 29 |         "committed": 1024
 30 |       },
 31 |       "large_object_space": {
 32 |         "used": 0,
 33 |         "available": 1446903,
 34 |         "committed": 0
 35 |       },
 36 |       "all_spaces": {
 37 |         "used": 8198,
 38 |         "available": 1450855,
 39 |         "committed": 17408
 40 |       },
 41 |       "external_memory_reported": 58,
 42 |       "total_time_spent_in_gc": 6.7
 43 |     }
 44 |   },
 45 |   {
 46 |     "pid": 23648,
 47 |     "isolate": "0x103001600",
 48 |     "type": "verbose",
 49 |     "data": {
 50 |       "memory_allocator": {
 51 |         "used": 19456,
 52 |         "available": 1446912
 53 |       },
 54 |       "new_space": {
 55 |         "used": 29,
 56 |         "available": 3998,
 57 |         "committed": 8192
 58 |       },
 59 |       "old_space": {
 60 |         "used": 5091,
 61 |         "available": 0,
 62 |         "committed": 5632
 63 |       },
 64 |       "code_space": {
 65 |         "used": 2537,
 66 |         "available": 2,
 67 |         "committed": 3072
 68 |       },
 69 |       "map_space": {
 70 |         "used": 678,
 71 |         "available": 0,
 72 |         "committed": 1024
 73 |       },
 74 |       "large_object_space": {
 75 |         "used": 0,
 76 |         "available": 1446391,
 77 |         "committed": 0
 78 |       },
 79 |       "all_spaces": {
 80 |         "used": 8337,
 81 |         "available": 1450392,
 82 |         "committed": 17920
 83 |       },
 84 |       "external_memory_reported": 59,
 85 |       "total_time_spent_in_gc": 7.3
 86 |     }
 87 |   },
 88 |   {
 89 |     "pid": 23648,
 90 |     "isolate": "0x103001600",
 91 |     "type": "verbose",
 92 |     "data": {
 93 |       "memory_allocator": {
 94 |         "used": 19456,
 95 |         "available": 1446912
 96 |       },
 97 |       "new_space": {
 98 |         "used": 253,
 99 |         "available": 3774,
100 |         "committed": 8192
101 |       },
102 |       "old_space": {
103 |         "used": 4224,
104 |         "available": 494,
105 |         "committed": 5632
106 |       },
107 |       "code_space": {
108 |         "used": 2302,
109 |         "available": 0,
110 |         "committed": 3072
111 |       },
112 |       "map_space": {
113 |         "used": 291,
114 |         "available": 0,
115 |         "committed": 1024
116 |       },
117 |       "large_object_space": {
118 |         "used": 0,
119 |         "available": 1446391,
120 |         "committed": 0
121 |       },
122 |       "all_spaces": {
123 |         "used": 7072,
124 |         "available": 1450660,
125 |         "committed": 17920
126 |       },
127 |       "external_memory_reported": 90,
128 |       "total_time_spent_in_gc": 8.3
129 |     }
130 |   }
131 | ]
132 | 


--------------------------------------------------------------------------------
/test/data/v8_verbose_nvp.in:
--------------------------------------------------------------------------------
 1 | [24348:0x102801600] Fast promotion mode: false survival rate: 0%
 2 | [24348:0x102801600]      803 ms: Heap growing factor 4.0 based on mu=0.970, speed_ratio=0 (gc=0, mutator=8070)
 3 | [24348:0x102801600]      803 ms: Grow: old size: 6820 KB, new limit: 31310 KB (4.0)
 4 | [24348:0x102801600]      803 ms: pause=0.8 mutator=57.7 gc=ms reduce_memory=0 clear=0 clear.code_flush=0.0 clear.dependent_code=0.0 clear.maps=0.0 clear.slots_buffer=0.0 clear.store_buffer=0.0 clear.string_table=0.1 clear.weak_cells=0.0 clear.weak_collections=0.0 clear.weak_lists=0.1 epilogue=0.0 evacuate=0.3 evacuate.candidates=0.0 evacuate.clean_up=0.0 evacuate.copy=0.2 evacuate.prologue=0.0 evacuate.epilogue=0.0 evacuate.rebalance=0.0 evacuate.update_pointers=0.1 evacuate.update_pointers.to_evacuated=0.0 evacuate.update_pointers.to_new=0.1 evacuate.update_pointers.weak=0.0 external.prologue=0.0 external.epilogue=0.0 external.weak_global_handles=0.0 finish=0.1 mark=0.1 mark.finish_incremental=0.0 mark.prepare_code_flush=0.0 mark.roots=0.0 mark.weak_closure=0.0 mark.weak_closure.ephemeral=0.0 mark.weak_closure.weak_handles=0.0 mark.weak_closure.weak_roots=0.0 mark.weak_closure.harmony=0.0 mark.wrapper_prologue=0.0 mark.wrapper_epilogue=0.0 mark.wrapper_tracing=0.0 prologue=0.0 sweep=0.0 sweep.code=0.0 sweep.map=0.0 sweep.old=0.0 incremental=6.2 incremental.finalize=0.1 incremental.finalize.body=0.1 incremental.finalize.external.prologue=0.0 incremental.finalize.external.epilogue=0.0 incremental.sweeping=0.0 incremental.wrapper_prologue=0.0 incremental.wrapper_tracing=0.0 incremental_wrapper_tracing_longest_step=0.0 incremental_finalize_longest_step=0.1 incremental_finalize_steps_count=1 incremental_longest_step=1.8 incremental_steps_count=9 incremental_marking_throughput=1124075 incremental_walltime_duration=12 total_size_before=9890232 total_size_after=7134184 holes_size_before=452400 holes_size_after=500016 allocated=1461472 promoted=408 semi_space_copied=144096 nodes_died_in_new=6 nodes_copied_in_new=8 nodes_promoted=0 promotion_ratio=0.0% average_survival_ratio=25.8% promotion_rate=0.5% semi_space_copy_rate=9.9% new_space_allocation_throughput=26122.7 context_disposal_rate=0.0 compaction_speed=726151
 5 | [24348:0x102801600] Memory allocator,   used:  19456 KB, available: 1446912 KB
 6 | [24348:0x102801600] New space,          used:    146 KB, available:   3881 KB, committed:   8192 KB
 7 | [24348:0x102801600] Old space,          used:   4220 KB, available:    488 KB, committed:   5632 KB
 8 | [24348:0x102801600] Code space,         used:   2308 KB, available:      0 KB, committed:   3072KB
 9 | [24348:0x102801600] Map space,          used:    291 KB, available:      0 KB, committed:   1024 KB
10 | [24348:0x102801600] Large object space, used:      0 KB, available: 1446391 KB, committed:      0 KB
11 | [24348:0x102801600] All spaces,         used:   6966 KB, available: 1450761 KB, committed:  17920KB
12 | [24348:0x102801600] External memory reported:    126 KB
13 | [24348:0x102801600] Total time spent in GC  : 10.0 ms
14 | [24348:0x102801600] Fast promotion mode: false survival rate: 0%
15 | [24348:0x102801600]      945 ms: pause=0.5 mutator=141.7 gc=s reduce_memory=0 scavenge=0.42 evacuate=0.00 old_new=0.12 weak=0.00 roots=0.02 code=0.00 semispace=0.02 external.prologue=0.00 external.epilogue=0.00 external_weak_global_handles=0.00 steps_count=0 steps_took=0.0 scavenge_throughput=2882856 total_size_before=11209816 total_size_after=7114304 holes_size_before=657728 holes_size_after=657728 allocated=4075632 promoted=5840 semi_space_copied=23264 nodes_died_in_new=13 nodes_copied_in_new=1 nodes_promoted=0 promotion_ratio=0.1% average_survival_ratio=16.7% promotion_rate=4.1% semi_space_copy_rate=0.6% new_space_allocation_throughput=26360.8 context_disposal_rate=0.0
16 | [24348:0x102801600] Memory allocator,   used:  19456 KB, available: 1446912 KB
17 | [24348:0x102801600] New space,          used:     22 KB, available:   4005 KB, committed:   8192 KB
18 | [24348:0x102801600] Old space,          used:   4264 KB, available:      0 KB, committed:   5632 KB
19 | [24348:0x102801600] Code space,         used:   2311 KB, available:    640 KB, committed:   3072KB
20 | [24348:0x102801600] Map space,          used:    348 KB, available:    656 KB, committed:   1024 KB
21 | [24348:0x102801600] Large object space, used:      0 KB, available: 1446391 KB, committed:      0 KB
22 | [24348:0x102801600] All spaces,         used:   6947 KB, available: 1451694 KB, committed:  17920KB
23 | [24348:0x102801600] External memory reported:     17 KB
24 | [24348:0x102801600] Total time spent in GC  : 10.5 ms
25 | [24348:0x102801600] Fast promotion mode: false survival rate: 1%
26 | [24348:0x102801600]     1109 ms: pause=0.6 mutator=163.6 gc=s reduce_memory=0 scavenge=0.51 evacuate=0.00 old_new=0.21 weak=0.00 roots=0.02 code=0.00 semispace=0.04 external.prologue=0.00 external.epilogue=0.00 external_weak_global_handles=0.00 steps_count=0 steps_took=0.0 scavenge_throughput=3540719 total_size_before=11307920 total_size_after=7228632 holes_size_before=657728 holes_size_after=657728 allocated=4193616 promoted=18448 semi_space_copied=26936 nodes_died_in_new=11 nodes_copied_in_new=1 nodes_promoted=0 promotion_ratio=0.4% average_survival_ratio=8.7% promotion_rate=79.3% semi_space_copy_rate=0.7% new_space_allocation_throughput=26302.5 context_disposal_rate=0.0
27 | [24348:0x102801600] Memory allocator,   used:  19456 KB, available: 1446912 KB
28 | [24348:0x102801600] New space,          used:     26 KB, available:   4001 KB, committed:   8192 KB
29 | [24348:0x102801600] Old space,          used:   4314 KB, available:      0 KB, committed:   5632 KB
30 | [24348:0x102801600] Code space,         used:   2311 KB, available:    640 KB, committed:   3072KB
31 | [24348:0x102801600] Map space,          used:    406 KB, available:    550 KB, committed:   1024 KB
32 | [24348:0x102801600] Large object space, used:      0 KB, available: 1446391 KB, committed:      0 KB
33 | [24348:0x102801600] All spaces,         used:   7059 KB, available: 1451584 KB, committed:  17920KB
34 | [24348:0x102801600] External memory reported:     17 KB
35 | [24348:0x102801600] Total time spent in GC  : 11.0 ms


--------------------------------------------------------------------------------
/test/data/v8_verbose_nvp.out:
--------------------------------------------------------------------------------
  1 | [
  2 |   {
  3 |     "pid": 24348,
  4 |     "isolate": "0x102801600",
  5 |     "time_since_init": 803,
  6 |     "data": {
  7 |       "pause": 0.8,
  8 |       "mutator": 57.7,
  9 |       "gc": "ms",
 10 |       "reduce_memory": 0,
 11 |       "clear": 0,
 12 |       "clear.code_flush": 0,
 13 |       "clear.dependent_code": 0,
 14 |       "clear.maps": 0,
 15 |       "clear.slots_buffer": 0,
 16 |       "clear.store_buffer": 0,
 17 |       "clear.string_table": 0.1,
 18 |       "clear.weak_cells": 0,
 19 |       "clear.weak_collections": 0,
 20 |       "clear.weak_lists": 0.1,
 21 |       "epilogue": 0,
 22 |       "evacuate": 0.3,
 23 |       "evacuate.candidates": 0,
 24 |       "evacuate.clean_up": 0,
 25 |       "evacuate.copy": 0.2,
 26 |       "evacuate.prologue": 0,
 27 |       "evacuate.epilogue": 0,
 28 |       "evacuate.rebalance": 0,
 29 |       "evacuate.update_pointers": 0.1,
 30 |       "evacuate.update_pointers.to_evacuated": 0,
 31 |       "evacuate.update_pointers.to_new": 0.1,
 32 |       "evacuate.update_pointers.weak": 0,
 33 |       "external.prologue": 0,
 34 |       "external.epilogue": 0,
 35 |       "external.weak_global_handles": 0,
 36 |       "finish": 0.1,
 37 |       "mark": 0.1,
 38 |       "mark.finish_incremental": 0,
 39 |       "mark.prepare_code_flush": 0,
 40 |       "mark.roots": 0,
 41 |       "mark.weak_closure": 0,
 42 |       "mark.weak_closure.ephemeral": 0,
 43 |       "mark.weak_closure.weak_handles": 0,
 44 |       "mark.weak_closure.weak_roots": 0,
 45 |       "mark.weak_closure.harmony": 0,
 46 |       "mark.wrapper_prologue": 0,
 47 |       "mark.wrapper_epilogue": 0,
 48 |       "mark.wrapper_tracing": 0,
 49 |       "prologue": 0,
 50 |       "sweep": 0,
 51 |       "sweep.code": 0,
 52 |       "sweep.map": 0,
 53 |       "sweep.old": 0,
 54 |       "incremental": 6.2,
 55 |       "incremental.finalize": 0.1,
 56 |       "incremental.finalize.body": 0.1,
 57 |       "incremental.finalize.external.prologue": 0,
 58 |       "incremental.finalize.external.epilogue": 0,
 59 |       "incremental.sweeping": 0,
 60 |       "incremental.wrapper_prologue": 0,
 61 |       "incremental.wrapper_tracing": 0,
 62 |       "incremental_wrapper_tracing_longest_step": 0,
 63 |       "incremental_finalize_longest_step": 0.1,
 64 |       "incremental_finalize_steps_count": 1,
 65 |       "incremental_longest_step": 1.8,
 66 |       "incremental_steps_count": 9,
 67 |       "incremental_marking_throughput": 1124075,
 68 |       "incremental_walltime_duration": 12,
 69 |       "total_size_before": 9890232,
 70 |       "total_size_after": 7134184,
 71 |       "holes_size_before": 452400,
 72 |       "holes_size_after": 500016,
 73 |       "allocated": 1461472,
 74 |       "promoted": 408,
 75 |       "semi_space_copied": 144096,
 76 |       "nodes_died_in_new": 6,
 77 |       "nodes_copied_in_new": 8,
 78 |       "nodes_promoted": 0,
 79 |       "promotion_ratio": 0,
 80 |       "average_survival_ratio": 25.8,
 81 |       "promotion_rate": 0.5,
 82 |       "semi_space_copy_rate": 9.9,
 83 |       "new_space_allocation_throughput": 26122.7,
 84 |       "context_disposal_rate": 0,
 85 |       "compaction_speed": 726151
 86 |     },
 87 |     "type": "nvp"
 88 |   },
 89 |   {
 90 |     "pid": 24348,
 91 |     "isolate": "0x102801600",
 92 |     "type": "verbose",
 93 |     "data": {
 94 |       "memory_allocator": {
 95 |         "used": 19456,
 96 |         "available": 1446912
 97 |       },
 98 |       "new_space": {
 99 |         "used": 146,
100 |         "available": 3881,
101 |         "committed": 8192
102 |       },
103 |       "old_space": {
104 |         "used": 4220,
105 |         "available": 488,
106 |         "committed": 5632
107 |       },
108 |       "code_space": {
109 |         "used": 2308,
110 |         "available": 0,
111 |         "committed": 3072
112 |       },
113 |       "map_space": {
114 |         "used": 291,
115 |         "available": 0,
116 |         "committed": 1024
117 |       },
118 |       "large_object_space": {
119 |         "used": 0,
120 |         "available": 1446391,
121 |         "committed": 0
122 |       },
123 |       "all_spaces": {
124 |         "used": 6966,
125 |         "available": 1450761,
126 |         "committed": 17920
127 |       },
128 |       "external_memory_reported": 126,
129 |       "total_time_spent_in_gc": 10
130 |     }
131 |   },
132 |   {
133 |     "pid": 24348,
134 |     "isolate": "0x102801600",
135 |     "time_since_init": 945,
136 |     "data": {
137 |       "pause": 0.5,
138 |       "mutator": 141.7,
139 |       "gc": "s",
140 |       "reduce_memory": 0,
141 |       "scavenge": 0.42,
142 |       "evacuate": 0,
143 |       "old_new": 0.12,
144 |       "weak": 0,
145 |       "roots": 0.02,
146 |       "code": 0,
147 |       "semispace": 0.02,
148 |       "external.prologue": 0,
149 |       "external.epilogue": 0,
150 |       "external_weak_global_handles": 0,
151 |       "steps_count": 0,
152 |       "steps_took": 0,
153 |       "scavenge_throughput": 2882856,
154 |       "total_size_before": 11209816,
155 |       "total_size_after": 7114304,
156 |       "holes_size_before": 657728,
157 |       "holes_size_after": 657728,
158 |       "allocated": 4075632,
159 |       "promoted": 5840,
160 |       "semi_space_copied": 23264,
161 |       "nodes_died_in_new": 13,
162 |       "nodes_copied_in_new": 1,
163 |       "nodes_promoted": 0,
164 |       "promotion_ratio": 0.1,
165 |       "average_survival_ratio": 16.7,
166 |       "promotion_rate": 4.1,
167 |       "semi_space_copy_rate": 0.6,
168 |       "new_space_allocation_throughput": 26360.8,
169 |       "context_disposal_rate": 0
170 |     },
171 |     "type": "nvp"
172 |   },
173 |   {
174 |     "pid": 24348,
175 |     "isolate": "0x102801600",
176 |     "type": "verbose",
177 |     "data": {
178 |       "memory_allocator": {
179 |         "used": 19456,
180 |         "available": 1446912
181 |       },
182 |       "new_space": {
183 |         "used": 22,
184 |         "available": 4005,
185 |         "committed": 8192
186 |       },
187 |       "old_space": {
188 |         "used": 4264,
189 |         "available": 0,
190 |         "committed": 5632
191 |       },
192 |       "code_space": {
193 |         "used": 2311,
194 |         "available": 640,
195 |         "committed": 3072
196 |       },
197 |       "map_space": {
198 |         "used": 348,
199 |         "available": 656,
200 |         "committed": 1024
201 |       },
202 |       "large_object_space": {
203 |         "used": 0,
204 |         "available": 1446391,
205 |         "committed": 0
206 |       },
207 |       "all_spaces": {
208 |         "used": 6947,
209 |         "available": 1451694,
210 |         "committed": 17920
211 |       },
212 |       "external_memory_reported": 17,
213 |       "total_time_spent_in_gc": 10.5
214 |     }
215 |   },
216 |   {
217 |     "pid": 24348,
218 |     "isolate": "0x102801600",
219 |     "time_since_init": 1109,
220 |     "data": {
221 |       "pause": 0.6,
222 |       "mutator": 163.6,
223 |       "gc": "s",
224 |       "reduce_memory": 0,
225 |       "scavenge": 0.51,
226 |       "evacuate": 0,
227 |       "old_new": 0.21,
228 |       "weak": 0,
229 |       "roots": 0.02,
230 |       "code": 0,
231 |       "semispace": 0.04,
232 |       "external.prologue": 0,
233 |       "external.epilogue": 0,
234 |       "external_weak_global_handles": 0,
235 |       "steps_count": 0,
236 |       "steps_took": 0,
237 |       "scavenge_throughput": 3540719,
238 |       "total_size_before": 11307920,
239 |       "total_size_after": 7228632,
240 |       "holes_size_before": 657728,
241 |       "holes_size_after": 657728,
242 |       "allocated": 4193616,
243 |       "promoted": 18448,
244 |       "semi_space_copied": 26936,
245 |       "nodes_died_in_new": 11,
246 |       "nodes_copied_in_new": 1,
247 |       "nodes_promoted": 0,
248 |       "promotion_ratio": 0.4,
249 |       "average_survival_ratio": 8.7,
250 |       "promotion_rate": 79.3,
251 |       "semi_space_copy_rate": 0.7,
252 |       "new_space_allocation_throughput": 26302.5,
253 |       "context_disposal_rate": 0
254 |     },
255 |     "type": "nvp"
256 |   },
257 |   {
258 |     "pid": 24348,
259 |     "isolate": "0x102801600",
260 |     "type": "verbose",
261 |     "data": {
262 |       "memory_allocator": {
263 |         "used": 19456,
264 |         "available": 1446912
265 |       },
266 |       "new_space": {
267 |         "used": 26,
268 |         "available": 4001,
269 |         "committed": 8192
270 |       },
271 |       "old_space": {
272 |         "used": 4314,
273 |         "available": 0,
274 |         "committed": 5632
275 |       },
276 |       "code_space": {
277 |         "used": 2311,
278 |         "available": 640,
279 |         "committed": 3072
280 |       },
281 |       "map_space": {
282 |         "used": 406,
283 |         "available": 550,
284 |         "committed": 1024
285 |       },
286 |       "large_object_space": {
287 |         "used": 0,
288 |         "available": 1446391,
289 |         "committed": 0
290 |       },
291 |       "all_spaces": {
292 |         "used": 7059,
293 |         "available": 1451584,
294 |         "committed": 17920
295 |       },
296 |       "external_memory_reported": 17,
297 |       "total_time_spent_in_gc": 11
298 |     }
299 |   }
300 | ]
301 | 


--------------------------------------------------------------------------------
/test/data/verbose_misc.in:
--------------------------------------------------------------------------------
1 | [10114:0x102004600] Increasing marking speed to 3 due to high promotion rate[10114:0x102004600] Heap growing factor 1.1 based on mu=0.970, speed_ratio=500 (gc=24949572, mutator=49856)
2 | [10114:0x102004600] Grow: old size: 1317506 KB, new limit: 1375553 KB (1.1)
3 | [10114:0x102004600] Memory reducer: call rate 3.227, high alloc, foreground
4 | [10114:0x102004600] Memory reducer: waiting for 8000 ms
5 | [15368:0x102004600] Memory reducer: started GC #1
6 | 


--------------------------------------------------------------------------------
/test/fixtures/work.js:
--------------------------------------------------------------------------------
 1 | 'use strict';
 2 | 
 3 | const assert = require('assert');
 4 | const http = require('http');
 5 | const v8 = require('v8');
 6 | 
 7 | const DURATION = parseInt(process.env.TEST_DURATION, 10) || 5 * 1000;
 8 | const INTERVAL = parseInt(process.env.TEST_INTERVAL, 10) || 1;
 9 | 
10 | function makeRequest(host, port, data) {
11 |   const req = http.request({
12 |     method: 'POST',
13 |     host: host,
14 |     port: port
15 |   });
16 | 
17 |   req.on('response', function(res) {
18 |     const data = [];
19 |     res.on('data', function(chunk) {
20 |       data.push(chunk);
21 |     });
22 |     res.on('end', function() {
23 |       const str = Buffer.concat(data).toString();
24 |       assert(str.length > 0);
25 |     });
26 |   });
27 | 
28 |   req.end();
29 | }
30 | 
31 | let shouldStop = false;
32 | const server = http.createServer(function(req, res) {
33 |   res.write(new Date().toLocaleTimeString());
34 |   res.write(JSON.stringify(v8.getHeapSpaceStatistics()));
35 |   res.write(JSON.stringify(v8.getHeapStatistics()));
36 |   res.end('ok');
37 | }).listen(0, '127.0.0.1', function() {
38 |   const host = server.address().address;
39 |   const port = server.address().port;
40 | 
41 |   const interval = setInterval(() => {
42 |     if (shouldStop) {
43 |       server.close();
44 |       return clearInterval(interval);
45 |     }
46 |     makeRequest(host, port);
47 |   }, INTERVAL);
48 | });
49 | 
50 | setTimeout(() => {
51 |   shouldStop = true;
52 | }, DURATION);
53 | 


--------------------------------------------------------------------------------
/test/index.test.js:
--------------------------------------------------------------------------------
  1 | const Parser = require('../');
  2 | const fs = require('fs');
  3 | const datadir = __dirname + '/data';
  4 | 
  5 | let files = {};
  6 | 
  7 | beforeAll(() => {
  8 |   const filenames = fs.readdirSync(datadir);
  9 |   for (const filename of filenames) {
 10 |     if (/\.in$/.test(filename)) {
 11 |       let key = filename.replace('.in', '');
 12 |       files[key] = files[key] || {};
 13 |       files[key].input = fs.readFileSync(datadir + '/' + filename, {
 14 |         encoding: 'utf8'
 15 |       });
 16 |     }
 17 |     if (/\.out$/.test(filename)) {
 18 |       let key = filename.replace('.out', '');
 19 |       files[key] = files[key] || {};
 20 |       files[key].output = fs.readFileSync(datadir + '/' + filename, {
 21 |         encoding: 'utf8'
 22 |       });
 23 |     }
 24 |   }
 25 | });
 26 | 
 27 | test('partial input', () => {
 28 |   let parser = new Parser();
 29 |   let result = parser.parseAllToData(files.partial.input);
 30 |   let expected = JSON.parse(files.partial.output);
 31 |   expect(result).toEqual(expected);
 32 | });
 33 | 
 34 | test('minus value', () => {
 35 |   let parser = new Parser();
 36 |   let result = parser.parseAllToData(files.minus_value.input);
 37 |   let expected = JSON.parse(files.minus_value.output);
 38 |   expect(result).toEqual(expected);
 39 | });
 40 | 
 41 | test('ignore ill-formed verbose traces', () => {
 42 |   let parser = new Parser();
 43 |   let result = parser.parseAllToData(files.ill_formed_verbose.input);
 44 |   expect(result.length).toBe(0);
 45 | });
 46 | 
 47 | test('ignore ill-formed simple traces', () => {
 48 |   let parser = new Parser();
 49 |   let result = parser.parseAllToData(files.ill_formed_trace.input);
 50 |   expect(result.length).toBe(0);
 51 | });
 52 | 
 53 | test('ignore ill-formed nvp input', () => {
 54 |   let parser = new Parser();
 55 |   let result = parser.parseAllToData(files.ill_formed_nvp.input);
 56 |   expect(result.length).toBe(0);
 57 | });
 58 | 
 59 | test('oom message', () => {
 60 |   let parser = new Parser();
 61 |   let result = parser.parseAllToData(files.oom.input);
 62 |   expect(result.length).toBe(0);
 63 | });
 64 | 
 65 | test('verbose misc', () => {
 66 |   let parser = new Parser();
 67 |   let result = parser.parseAllToData(files.verbose_misc.input);
 68 |   expect(result.length).toBe(0);
 69 | });
 70 | 
 71 | const argDict = {
 72 |   trace: '--trace_gc',
 73 |   nvp: '--trace_gc_nvp',
 74 |   verbose: '--trace_gc --trace_gc_verbose (verbose only)',
 75 |   trace_verbose: '--trace_gc --trace_gc_verbose',
 76 |   verbose_nvp: '--trace_gc --trace_gc_verbose --trace_gc_nvp'
 77 | };
 78 | 
 79 | const cases = [{
 80 |   version: 'alinode_v3',
 81 |   types: ['trace', 'nvp', 'verbose', 'trace_verbose', 'verbose_nvp']
 82 | }, {
 83 |   version: 'v10',
 84 |   types: ['trace', 'nvp', 'verbose', 'trace_verbose', 'verbose_nvp']
 85 | }, {
 86 |   version: 'v8',
 87 |   types: ['trace', 'nvp', 'verbose', 'trace_verbose', 'verbose_nvp']
 88 | }, {
 89 |   version: 'v6',
 90 |   types: ['trace', 'nvp', 'verbose', 'trace_verbose', 'verbose_nvp']
 91 | }, {
 92 |   version: 'v4',
 93 |   types: ['trace', 'nvp', 'verbose']
 94 | }, {
 95 |   version: 'v012',
 96 |   types: ['trace', 'nvp', 'verbose']
 97 | }];
 98 | 
 99 | cases.forEach((cs) => {
100 |   cs.types.forEach((type) => {
101 |     test(`${cs.version} ${argDict[type]}`, () => {
102 |       const key = `${cs.version}_${type}`;
103 |       let parser = new Parser();
104 |       let result = parser.parseAllToData(files[key].input);
105 |       let expected = JSON.parse(files[key].output);
106 |       expect(result).toEqual(expected);
107 |     });
108 |   });
109 | });
110 | 


--------------------------------------------------------------------------------