Permalink
Fetching contributors…
Cannot retrieve contributors at this time
521 lines (511 sloc) 14.9 KB
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`importFromChromeCPUProfile 1`] = `
Object {
"frames": Array [
Frame {
"col": 0,
"file": "",
"key": "(anonymous)::0:0",
"line": 0,
"name": "(anonymous)",
"selfWeight": 1060,
"totalWeight": 34345,
},
Frame {
"col": 10,
"file": "",
"key": "a::0:10",
"line": 0,
"name": "a",
"selfWeight": 0,
"totalWeight": 33285,
},
Frame {
"col": 10,
"file": "",
"key": "b::5:10",
"line": 5,
"name": "b",
"selfWeight": 0,
"totalWeight": 17002,
},
Frame {
"col": 10,
"file": "",
"key": "d::13:10",
"line": 13,
"name": "d",
"selfWeight": 33285,
"totalWeight": 33285,
},
Frame {
"col": 10,
"file": "",
"key": "c::9:10",
"line": 9,
"name": "c",
"selfWeight": 0,
"totalWeight": 16283,
},
],
"name": "simple.cpuprofile",
"stacks": Array [
" 11.57ms",
"(anonymous) 1.06ms",
"(anonymous);a;b;d 17.00ms",
"(anonymous);a;c;d 16.28ms",
],
}
`;
exports[`importFromChromeCPUProfile: indexToView 1`] = `0`;
exports[`importFromChromeCPUProfile: profileGroup.name 1`] = `"simple.cpuprofile"`;
exports[`importFromChromeTimeline 1`] = `
Object {
"frames": Array [
Frame {
"col": -1,
"file": "",
"key": "(program)::-1:-1",
"line": -1,
"name": "(program)",
"selfWeight": 2299,
"totalWeight": 2299,
},
Frame {
"col": 10,
"file": "file:///Users/jlfwong/code/speedscope/sample/programs/javascript/simple.js",
"key": "a:file:///Users/jlfwong/code/speedscope/sample/programs/javascript/simple.js:0:10",
"line": 0,
"name": "a",
"selfWeight": 0,
"totalWeight": 33186,
},
Frame {
"col": 10,
"file": "file:///Users/jlfwong/code/speedscope/sample/programs/javascript/simple.js",
"key": "c:file:///Users/jlfwong/code/speedscope/sample/programs/javascript/simple.js:13:10",
"line": 13,
"name": "c",
"selfWeight": 16275,
"totalWeight": 16275,
},
Frame {
"col": 10,
"file": "file:///Users/jlfwong/code/speedscope/sample/programs/javascript/simple.js",
"key": "b:file:///Users/jlfwong/code/speedscope/sample/programs/javascript/simple.js:7:10",
"line": 7,
"name": "b",
"selfWeight": 16911,
"totalWeight": 16911,
},
],
"name": "simple-timeline.json",
"stacks": Array [
" 10.06ms",
"(program) 202.00µs",
" 1.97ms",
"(program) 1.04ms",
" 85.89ms",
"(program) 132.00µs",
" 8.40ms",
"(program) 134.00µs",
"a;c 273.00µs",
"a;b 513.00µs",
"a;c 512.00µs",
"a;b 513.00µs",
"a;c 262.00µs",
"a;b 514.00µs",
"a;c 517.00µs",
"a;b 261.00µs",
"a;c 515.00µs",
"a;b 273.00µs",
"a;c 134.00µs",
"a;b 146.00µs",
"a;c 291.00µs",
"a;b 256.00µs",
"a;c 145.00µs",
"a;b 134.00µs",
"a;c 273.00µs",
"a;b 141.00µs",
"a;c 139.00µs",
"a;b 130.00µs",
"a;c 393.00µs",
"a;b 131.00µs",
"a;c 126.00µs",
"a;b 129.00µs",
"a;c 520.00µs",
"a;b 129.00µs",
"a;c 259.00µs",
"a;b 130.00µs",
"a;c 128.00µs",
"a;b 136.00µs",
"a;c 137.00µs",
"a;b 281.00µs",
"a;c 150.00µs",
"a;b 624.00µs",
"a;c 135.00µs",
"a;b 129.00µs",
"a;c 604.00µs",
"a;b 292.00µs",
"a;c 257.00µs",
"a;b 127.00µs",
"a;c 128.00µs",
"a;b 118.00µs",
"a;c 256.00µs",
"a;b 524.00µs",
"a;c 129.00µs",
"a;b 131.00µs",
"a;c 125.00µs",
"a;b 263.00µs",
"a;c 123.00µs",
"a;b 128.00µs",
"a;c 129.00µs",
"a;b 265.00µs",
"a;c 128.00µs",
"a;b 280.00µs",
"a;c 366.00µs",
"a;b 931.00µs",
"a;c 148.00µs",
"a;b 147.00µs",
"a;c 302.00µs",
"a;b 151.00µs",
"a;c 158.00µs",
"a;b 456.00µs",
"a;c 170.00µs",
"a;b 139.00µs",
"a;c 145.00µs",
"a;b 260.00µs",
"a;c 141.00µs",
"a;b 280.00µs",
"a;c 268.00µs",
"a;b 289.00µs",
"a;c 146.00µs",
"a;b 120.00µs",
"a;c 436.00µs",
"a;b 147.00µs",
"a;c 164.00µs",
"a;b 294.00µs",
"a;c 147.00µs",
"a;b 856.00µs",
"a;c 273.00µs",
"a;b 139.00µs",
"a;c 269.00µs",
"a;b 256.00µs",
"a;c 258.00µs",
"a;b 128.00µs",
"a;c 255.00µs",
"a;b 140.00µs",
"a;c 514.00µs",
"a;b 129.00µs",
"a;c 395.00µs",
"a;b 389.00µs",
"a;c 257.00µs",
"a;b 686.00µs",
"a;c 147.00µs",
"a;b 156.00µs",
"a;c 137.00µs",
"a;b 141.00µs",
"a;c 140.00µs",
"a;b 141.00µs",
"a;c 141.00µs",
"a;b 140.00µs",
"a;c 140.00µs",
"a;b 139.00µs",
"a;c 129.00µs",
"a;b 149.00µs",
"a;c 267.00µs",
"a;b 294.00µs",
"a;c 145.00µs",
"a;b 294.00µs",
"a;c 294.00µs",
"a;b 295.00µs",
"a;c 140.00µs",
"a;b 139.00µs",
"a;c 139.00µs",
"a;b 127.00µs",
"a;c 513.00µs",
"a;b 516.00µs",
"a;c 385.00µs",
"a;b 520.00µs",
"a;c 252.00µs",
"a;b 255.00µs",
"a;c 134.00µs",
"a;b 112.00µs",
"a;c 140.00µs",
"a;b 296.00µs",
"a;c 441.00µs",
"a;b 145.00µs",
"a;c 292.00µs",
"a;b 130.00µs",
"a;c 277.00µs",
"a;b 147.00µs",
"a;c 286.00µs",
"a;b 140.00µs",
"a;c 136.00µs",
" 61.59ms",
"(program) 134.00µs",
" 128.00µs",
"(program) 141.00µs",
" 16.39ms",
"(program) 145.00µs",
" 16.63ms",
"(program) 131.00µs",
" 16.71ms",
"(program) 131.00µs",
" 294.15ms",
"(program) 109.00µs",
],
}
`;
exports[`importFromChromeTimeline Chrome 69 1`] = `
Object {
"frames": Array [
Frame {
"col": 0,
"file": "extensions::SafeBuiltins",
"key": "(anonymous):extensions::SafeBuiltins:0:0",
"line": 0,
"name": "(anonymous)",
"selfWeight": 0,
"totalWeight": 3188,
},
Frame {
"col": 9,
"file": "extensions::SafeBuiltins",
"key": "(anonymous):extensions::SafeBuiltins:0:9",
"line": 0,
"name": "(anonymous)",
"selfWeight": 0,
"totalWeight": 3188,
},
Frame {
"col": 20,
"file": "extensions::SafeBuiltins",
"key": "saveBuiltin:extensions::SafeBuiltins:24:20",
"line": 24,
"name": "saveBuiltin",
"selfWeight": 302,
"totalWeight": 3188,
},
Frame {
"col": undefined,
"file": undefined,
"key": "(program):undefined:undefined:undefined",
"line": undefined,
"name": "(program)",
"selfWeight": 6862,
"totalWeight": 6862,
},
Frame {
"col": 0,
"file": "file:///Users/jlfwong/code/speedscope/sample/programs/javascript/simple.js",
"key": "(anonymous):file:///Users/jlfwong/code/speedscope/sample/programs/javascript/simple.js:0:0",
"line": 0,
"name": "(anonymous)",
"selfWeight": 136,
"totalWeight": 37217,
},
Frame {
"col": 14,
"file": "file:///Users/jlfwong/code/speedscope/sample/programs/javascript/simple.js",
"key": "alpha:file:///Users/jlfwong/code/speedscope/sample/programs/javascript/simple.js:0:14",
"line": 0,
"name": "alpha",
"selfWeight": 873,
"totalWeight": 37081,
},
Frame {
"col": 13,
"file": "file:///Users/jlfwong/code/speedscope/sample/programs/javascript/simple.js",
"key": "beta:file:///Users/jlfwong/code/speedscope/sample/programs/javascript/simple.js:7:13",
"line": 7,
"name": "beta",
"selfWeight": 7552,
"totalWeight": 17562,
},
Frame {
"col": 14,
"file": "file:///Users/jlfwong/code/speedscope/sample/programs/javascript/simple.js",
"key": "gamma:file:///Users/jlfwong/code/speedscope/sample/programs/javascript/simple.js:19:14",
"line": 19,
"name": "gamma",
"selfWeight": 20018,
"totalWeight": 20018,
},
Frame {
"col": 14,
"file": "file:///Users/jlfwong/code/speedscope/sample/programs/javascript/simple.js",
"key": "delta:file:///Users/jlfwong/code/speedscope/sample/programs/javascript/simple.js:13:14",
"line": 13,
"name": "delta",
"selfWeight": 7179,
"totalWeight": 18646,
},
Frame {
"col": undefined,
"file": undefined,
"key": "(garbage collector):undefined:undefined:undefined",
"line": undefined,
"name": "(garbage collector)",
"selfWeight": 646,
"totalWeight": 778,
},
],
"name": "simple.json",
"stacks": Array [
" 6.85ms",
"(anonymous);(anonymous);saveBuiltin 302.00µs",
"(anonymous);(anonymous);saveBuiltin;(program) 2.89ms",
" 230.00µs",
"(program) 828.00µs",
" 110.00µs",
"(program) 118.00µs",
" 323.00µs",
"(program) 123.00µs",
" 139.00µs",
"(program) 400.00µs",
"(anonymous) 136.00µs",
"(anonymous);alpha;beta 108.00µs",
"(anonymous);alpha;beta;gamma 268.00µs",
"(anonymous);alpha 137.00µs",
"(anonymous);alpha;delta 139.00µs",
"(anonymous);alpha;delta;gamma 261.00µs",
"(anonymous);alpha;beta;gamma 964.00µs",
"(anonymous);alpha;delta;gamma 268.00µs",
"(anonymous);alpha;beta;gamma 265.00µs",
"(anonymous);alpha;delta;gamma 582.00µs",
"(anonymous);alpha;beta;gamma 135.00µs",
"(anonymous);alpha;delta;gamma 147.00µs",
"(anonymous);alpha;beta;gamma 163.00µs",
"(anonymous);alpha;delta;gamma 133.00µs",
"(anonymous);alpha;beta;gamma 144.00µs",
"(anonymous);alpha;delta;gamma 276.00µs",
"(anonymous);alpha;delta 136.00µs",
"(anonymous);alpha;beta;gamma 144.00µs",
"(anonymous);alpha;delta;gamma 431.00µs",
"(anonymous);alpha;beta;gamma 419.00µs",
"(anonymous);alpha;delta;gamma 134.00µs",
"(anonymous);alpha;beta;gamma 136.00µs",
"(anonymous);alpha;delta;gamma 144.00µs",
"(anonymous);alpha;beta;gamma 269.00µs",
"(anonymous);alpha;delta;gamma 160.00µs",
"(anonymous);alpha;beta;gamma 141.00µs",
"(anonymous);alpha;delta;gamma 292.00µs",
"(anonymous);alpha;beta;gamma 583.00µs",
"(anonymous);alpha;delta;gamma 149.00µs",
"(anonymous);alpha;beta;gamma 139.00µs",
"(anonymous);alpha;delta;gamma 133.00µs",
"(anonymous);alpha;beta;gamma 386.00µs",
"(anonymous);alpha;delta;gamma 385.00µs",
"(anonymous);alpha;beta;gamma 391.00µs",
"(anonymous);alpha;delta;gamma 261.00µs",
"(anonymous);alpha;beta;gamma 131.00µs",
"(anonymous);alpha;delta;gamma 132.00µs",
"(anonymous);alpha 144.00µs",
"(anonymous);alpha;delta;gamma 134.00µs",
"(anonymous);alpha;beta;gamma 146.00µs",
"(anonymous);alpha;delta;gamma 119.00µs",
"(anonymous);alpha;beta;gamma 120.00µs",
"(anonymous);alpha;delta;gamma 134.00µs",
"(anonymous);alpha;beta;gamma 1.47ms",
"(anonymous);alpha;delta;gamma 148.00µs",
"(anonymous);alpha;beta;gamma 147.00µs",
"(anonymous);alpha;delta;gamma 146.00µs",
"(anonymous);alpha;beta;gamma 269.00µs",
"(anonymous);alpha;delta;gamma 138.00µs",
"(anonymous);alpha;beta;gamma 509.00µs",
"(anonymous);alpha;delta;gamma 1.63ms",
"(anonymous);alpha;beta;gamma 432.00µs",
"(anonymous);alpha;delta;gamma 129.00µs",
"(anonymous);alpha;beta;gamma 139.00µs",
"(anonymous);alpha;delta;gamma 389.00µs",
"(anonymous);alpha;beta 133.00µs",
"(anonymous);alpha;beta;gamma 133.00µs",
"(anonymous);alpha;delta;gamma 803.00µs",
"(anonymous);alpha;beta;gamma 283.00µs",
"(anonymous);alpha;delta;gamma 152.00µs",
"(anonymous);alpha;beta;gamma 135.00µs",
"(anonymous);alpha;delta;gamma 132.00µs",
"(anonymous);alpha;beta;gamma 134.00µs",
"(anonymous);alpha;delta;gamma 154.00µs",
"(anonymous);alpha;beta;gamma 145.00µs",
"(anonymous);alpha;delta;gamma 516.00µs",
"(anonymous);alpha;delta 128.00µs",
"(anonymous);alpha;delta;gamma 138.00µs",
"(anonymous);alpha;beta;gamma 139.00µs",
"(anonymous);alpha;delta;gamma 253.00µs",
"(anonymous);alpha;beta;gamma 145.00µs",
"(anonymous);alpha;delta;gamma 450.00µs",
"(anonymous);alpha;beta;gamma 142.00µs",
"(anonymous);alpha;delta;gamma 125.00µs",
"(anonymous);alpha;beta;gamma 289.00µs",
"(anonymous);alpha;delta;gamma 293.00µs",
"(anonymous);alpha;beta;gamma 147.00µs",
"(anonymous);alpha 443.00µs",
"(anonymous);alpha;delta;gamma 133.00µs",
"(anonymous);alpha;beta;gamma 409.00µs",
"(anonymous);alpha;beta 385.00µs",
"(anonymous);alpha;delta 659.00µs",
"(anonymous);alpha;beta 253.00µs",
"(anonymous);alpha;delta 257.00µs",
"(anonymous);alpha;beta 256.00µs",
"(anonymous);alpha;delta 129.00µs",
"(anonymous);alpha;beta 260.00µs",
"(anonymous);alpha;delta 255.00µs",
"(anonymous);alpha;beta 129.00µs",
"(anonymous);alpha;delta 140.00µs",
"(anonymous);alpha;beta 136.00µs",
"(anonymous);alpha;delta 134.00µs",
"(anonymous);alpha;beta 283.00µs",
"(anonymous);alpha;delta 253.00µs",
"(anonymous);alpha;beta 397.00µs",
"(anonymous);alpha;delta 401.00µs",
"(anonymous);alpha;beta 267.00µs",
"(anonymous);alpha;delta 283.00µs",
"(anonymous);alpha;beta 137.00µs",
"(anonymous);alpha;delta 134.00µs",
"(anonymous);alpha;beta 403.00µs",
"(anonymous);alpha;delta 135.00µs",
"(anonymous);alpha;beta 658.00µs",
"(anonymous);alpha;delta 117.00µs",
"(anonymous);alpha;beta 257.00µs",
"(anonymous);alpha;delta 134.00µs",
"(anonymous);alpha;beta 143.00µs",
"(anonymous);alpha;delta 260.00µs",
"(anonymous);alpha 149.00µs",
"(anonymous);alpha;delta 146.00µs",
"(anonymous);alpha;beta 129.00µs",
"(anonymous);alpha;delta 131.00µs",
"(anonymous);alpha;beta 130.00µs",
"(anonymous);alpha;delta 665.00µs",
"(anonymous);alpha;beta 415.00µs",
"(anonymous);alpha;delta 264.00µs",
"(anonymous);alpha;beta 527.00µs",
"(anonymous);alpha;delta 140.00µs",
"(anonymous);alpha;beta 269.00µs",
"(anonymous);alpha;delta 135.00µs",
"(anonymous);alpha;beta 386.00µs",
"(anonymous);alpha;delta 559.00µs",
"(anonymous);alpha;beta 131.00µs",
"(anonymous);alpha;delta 140.00µs",
"(anonymous);alpha;beta 129.00µs",
"(anonymous);alpha;delta 400.00µs",
"(anonymous);alpha;beta 134.00µs",
"(anonymous);alpha;delta 634.00µs",
"(anonymous);alpha;beta 1.10ms",
"(anonymous);alpha;delta 271.00µs",
"(anonymous);alpha;delta;(program) 1.46ms",
" 430.00µs",
"(program) 781.00µs",
" 273.00µs",
"(garbage collector) 646.00µs",
"(garbage collector);(program) 132.00µs",
" 26.36ms",
"(program) 135.00µs",
],
}
`;
exports[`importFromChromeTimeline Chrome 69: indexToView 1`] = `0`;
exports[`importFromChromeTimeline Chrome 69: profileGroup.name 1`] = `"simple.json"`;
exports[`importFromChromeTimeline: indexToView 1`] = `0`;
exports[`importFromChromeTimeline: profileGroup.name 1`] = `"simple-timeline.json"`;