add file and line information (#365)

* add file and line to tooltips
* add file and line to anonymous methods

## Before:

![image](https://user-images.githubusercontent.com/1365881/134863173-0d5635e8-1884-4276-a2cc-b0b7af5a579b.png)

![image](https://user-images.githubusercontent.com/1365881/134863456-f56aca3b-2742-4194-ba1e-823ff871a316.png)

While you was able to get this info with clicking in "Time Order" and "Left Heavy" view, it was impossible to receive in the sandwich view.

## After:

![image](https://user-images.githubusercontent.com/1365881/134863282-6719db20-e528-4eb5-b876-b35f99c34da4.png)

![image](https://user-images.githubusercontent.com/1365881/134863365-b6a550d4-56d8-4cf0-a17f-f682f1d2fe57.png)
This commit is contained in:
Tobias Koppers 2022-05-17 08:59:17 +02:00 committed by GitHub
parent 9a2c2a270b
commit 1ac88cc09a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 758 additions and 732 deletions

View File

@ -268,18 +268,18 @@ Object {
Frame {
"col": 1,
"file": "extensions::SafeBuiltins",
"key": "(anonymous):extensions::SafeBuiltins:1:1",
"key": "(anonymous extensions::SafeBuiltins:1):extensions::SafeBuiltins:1:1",
"line": 1,
"name": "(anonymous)",
"name": "(anonymous extensions::SafeBuiltins:1)",
"selfWeight": 0,
"totalWeight": 3188,
},
Frame {
"col": 10,
"file": "extensions::SafeBuiltins",
"key": "(anonymous):extensions::SafeBuiltins:1:10",
"key": "(anonymous extensions::SafeBuiltins:1):extensions::SafeBuiltins:1:10",
"line": 1,
"name": "(anonymous)",
"name": "(anonymous extensions::SafeBuiltins:1)",
"selfWeight": 0,
"totalWeight": 3188,
},
@ -304,9 +304,9 @@ Object {
Frame {
"col": 1,
"file": "file:///Users/jlfwong/code/speedscope/sample/programs/javascript/simple.js",
"key": "(anonymous):file:///Users/jlfwong/code/speedscope/sample/programs/javascript/simple.js:1:1",
"key": "(anonymous simple.js:1):file:///Users/jlfwong/code/speedscope/sample/programs/javascript/simple.js:1:1",
"line": 1,
"name": "(anonymous)",
"name": "(anonymous simple.js:1)",
"selfWeight": 136,
"totalWeight": 37217,
},
@ -359,8 +359,8 @@ Object {
"name": "simple.json",
"stacks": Array [
" 6.85ms",
"(anonymous);(anonymous);saveBuiltin 302.00µs",
"(anonymous);(anonymous);saveBuiltin;(program) 2.89ms",
"(anonymous extensions::SafeBuiltins:1);(anonymous extensions::SafeBuiltins:1);saveBuiltin 302.00µs",
"(anonymous extensions::SafeBuiltins:1);(anonymous extensions::SafeBuiltins:1);saveBuiltin;(program) 2.89ms",
" 230.00µs",
"(program) 828.00µs",
" 110.00µs",
@ -369,137 +369,137 @@ Object {
"(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",
"(anonymous simple.js:1) 136.00µs",
"(anonymous simple.js:1);alpha;beta 108.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 268.00µs",
"(anonymous simple.js:1);alpha 137.00µs",
"(anonymous simple.js:1);alpha;delta 139.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 261.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 964.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 268.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 265.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 582.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 135.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 147.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 163.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 133.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 144.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 276.00µs",
"(anonymous simple.js:1);alpha;delta 136.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 144.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 431.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 419.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 134.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 136.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 144.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 269.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 160.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 141.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 292.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 583.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 149.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 139.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 133.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 386.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 385.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 391.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 261.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 131.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 132.00µs",
"(anonymous simple.js:1);alpha 144.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 134.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 146.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 119.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 120.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 134.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 1.47ms",
"(anonymous simple.js:1);alpha;delta;gamma 148.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 147.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 146.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 269.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 138.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 509.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 1.63ms",
"(anonymous simple.js:1);alpha;beta;gamma 432.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 129.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 139.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 389.00µs",
"(anonymous simple.js:1);alpha;beta 133.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 133.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 803.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 283.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 152.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 135.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 132.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 134.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 154.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 145.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 516.00µs",
"(anonymous simple.js:1);alpha;delta 128.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 138.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 139.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 253.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 145.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 450.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 142.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 125.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 289.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 293.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 147.00µs",
"(anonymous simple.js:1);alpha 443.00µs",
"(anonymous simple.js:1);alpha;delta;gamma 133.00µs",
"(anonymous simple.js:1);alpha;beta;gamma 409.00µs",
"(anonymous simple.js:1);alpha;beta 385.00µs",
"(anonymous simple.js:1);alpha;delta 659.00µs",
"(anonymous simple.js:1);alpha;beta 253.00µs",
"(anonymous simple.js:1);alpha;delta 257.00µs",
"(anonymous simple.js:1);alpha;beta 256.00µs",
"(anonymous simple.js:1);alpha;delta 129.00µs",
"(anonymous simple.js:1);alpha;beta 260.00µs",
"(anonymous simple.js:1);alpha;delta 255.00µs",
"(anonymous simple.js:1);alpha;beta 129.00µs",
"(anonymous simple.js:1);alpha;delta 140.00µs",
"(anonymous simple.js:1);alpha;beta 136.00µs",
"(anonymous simple.js:1);alpha;delta 134.00µs",
"(anonymous simple.js:1);alpha;beta 283.00µs",
"(anonymous simple.js:1);alpha;delta 253.00µs",
"(anonymous simple.js:1);alpha;beta 397.00µs",
"(anonymous simple.js:1);alpha;delta 401.00µs",
"(anonymous simple.js:1);alpha;beta 267.00µs",
"(anonymous simple.js:1);alpha;delta 283.00µs",
"(anonymous simple.js:1);alpha;beta 137.00µs",
"(anonymous simple.js:1);alpha;delta 134.00µs",
"(anonymous simple.js:1);alpha;beta 403.00µs",
"(anonymous simple.js:1);alpha;delta 135.00µs",
"(anonymous simple.js:1);alpha;beta 658.00µs",
"(anonymous simple.js:1);alpha;delta 117.00µs",
"(anonymous simple.js:1);alpha;beta 257.00µs",
"(anonymous simple.js:1);alpha;delta 134.00µs",
"(anonymous simple.js:1);alpha;beta 143.00µs",
"(anonymous simple.js:1);alpha;delta 260.00µs",
"(anonymous simple.js:1);alpha 149.00µs",
"(anonymous simple.js:1);alpha;delta 146.00µs",
"(anonymous simple.js:1);alpha;beta 129.00µs",
"(anonymous simple.js:1);alpha;delta 131.00µs",
"(anonymous simple.js:1);alpha;beta 130.00µs",
"(anonymous simple.js:1);alpha;delta 665.00µs",
"(anonymous simple.js:1);alpha;beta 415.00µs",
"(anonymous simple.js:1);alpha;delta 264.00µs",
"(anonymous simple.js:1);alpha;beta 527.00µs",
"(anonymous simple.js:1);alpha;delta 140.00µs",
"(anonymous simple.js:1);alpha;beta 269.00µs",
"(anonymous simple.js:1);alpha;delta 135.00µs",
"(anonymous simple.js:1);alpha;beta 386.00µs",
"(anonymous simple.js:1);alpha;delta 559.00µs",
"(anonymous simple.js:1);alpha;beta 131.00µs",
"(anonymous simple.js:1);alpha;delta 140.00µs",
"(anonymous simple.js:1);alpha;beta 129.00µs",
"(anonymous simple.js:1);alpha;delta 400.00µs",
"(anonymous simple.js:1);alpha;beta 134.00µs",
"(anonymous simple.js:1);alpha;delta 634.00µs",
"(anonymous simple.js:1);alpha;beta 1.10ms",
"(anonymous simple.js:1);alpha;delta 271.00µs",
"(anonymous simple.js:1);alpha;delta;(program) 1.46ms",
" 430.00µs",
"(program) 781.00µs",
" 273.00µs",
@ -629,9 +629,9 @@ Object {
Frame {
"col": 9,
"file": "http://172.30.3.176:7777/worker.html",
"key": "(anonymous):http://172.30.3.176:7777/worker.html:1:9",
"key": "(anonymous worker.html:1):http://172.30.3.176:7777/worker.html:1:9",
"line": 1,
"name": "(anonymous)",
"name": "(anonymous worker.html:1)",
"selfWeight": 0,
"totalWeight": 2524,
},
@ -731,8 +731,8 @@ Object {
"(program) 11.20ms",
" 296.00µs",
"(program) 1.90ms",
"(anonymous);Worker 806.00µs",
"(anonymous);Worker;(program) 1.72ms",
"(anonymous worker.html:1);Worker 806.00µs",
"(anonymous worker.html:1);Worker;(program) 1.72ms",
" 670.00µs",
"(program) 28.45ms",
" 353.00µs",
@ -923,18 +923,18 @@ Object {
Frame {
"col": 1,
"file": "extensions::SafeBuiltins",
"key": "(anonymous):extensions::SafeBuiltins:1:1",
"key": "(anonymous extensions::SafeBuiltins:1):extensions::SafeBuiltins:1:1",
"line": 1,
"name": "(anonymous)",
"name": "(anonymous extensions::SafeBuiltins:1)",
"selfWeight": 0,
"totalWeight": 37463,
},
Frame {
"col": 10,
"file": "extensions::SafeBuiltins",
"key": "(anonymous):extensions::SafeBuiltins:1:10",
"key": "(anonymous extensions::SafeBuiltins:1):extensions::SafeBuiltins:1:10",
"line": 1,
"name": "(anonymous)",
"name": "(anonymous extensions::SafeBuiltins:1)",
"selfWeight": 0,
"totalWeight": 37463,
},
@ -959,9 +959,9 @@ Object {
Frame {
"col": 33,
"file": "extensions::SafeBuiltins",
"key": "(anonymous):extensions::SafeBuiltins:8:33",
"key": "(anonymous extensions::SafeBuiltins:8):extensions::SafeBuiltins:8:33",
"line": 8,
"name": "(anonymous)",
"name": "(anonymous extensions::SafeBuiltins:8)",
"selfWeight": 234,
"totalWeight": 234,
},
@ -986,9 +986,9 @@ Object {
Frame {
"col": 1,
"file": "chrome-extension://aomjjhallfgjeglblehebfpbcfeobpgk/injected.min.js",
"key": "(anonymous):chrome-extension://aomjjhallfgjeglblehebfpbcfeobpgk/injected.min.js:1:1",
"key": "(anonymous injected.min.js:1):chrome-extension://aomjjhallfgjeglblehebfpbcfeobpgk/injected.min.js:1:1",
"line": 1,
"name": "(anonymous)",
"name": "(anonymous injected.min.js:1)",
"selfWeight": 1550,
"totalWeight": 15220,
},
@ -1013,9 +1013,9 @@ Object {
Frame {
"col": 10,
"file": "extensions::runtime",
"key": "(anonymous):extensions::runtime:1:10",
"key": "(anonymous extensions::runtime:1):extensions::runtime:1:10",
"line": 1,
"name": "(anonymous)",
"name": "(anonymous extensions::runtime:1)",
"selfWeight": 2319,
"totalWeight": 15277,
},
@ -1031,45 +1031,45 @@ Object {
Frame {
"col": 10,
"file": "extensions::binding",
"key": "(anonymous):extensions::binding:1:10",
"key": "(anonymous extensions::binding:1):extensions::binding:1:10",
"line": 1,
"name": "(anonymous)",
"name": "(anonymous extensions::binding:1)",
"selfWeight": 791,
"totalWeight": 4994,
},
Frame {
"col": 10,
"file": "extensions::event_bindings",
"key": "(anonymous):extensions::event_bindings:1:10",
"key": "(anonymous extensions::event_bindings:1):extensions::event_bindings:1:10",
"line": 1,
"name": "(anonymous)",
"name": "(anonymous extensions::event_bindings:1)",
"selfWeight": 822,
"totalWeight": 4068,
},
Frame {
"col": 10,
"file": "extensions::sendRequest",
"key": "(anonymous):extensions::sendRequest:1:10",
"key": "(anonymous extensions::sendRequest:1):extensions::sendRequest:1:10",
"line": 1,
"name": "(anonymous)",
"name": "(anonymous extensions::sendRequest:1)",
"selfWeight": 761,
"totalWeight": 2844,
},
Frame {
"col": 10,
"file": "extensions::schemaUtils",
"key": "(anonymous):extensions::schemaUtils:1:10",
"key": "(anonymous extensions::schemaUtils:1):extensions::schemaUtils:1:10",
"line": 1,
"name": "(anonymous)",
"name": "(anonymous extensions::schemaUtils:1)",
"selfWeight": 847,
"totalWeight": 1814,
},
Frame {
"col": 10,
"file": "extensions::json_schema",
"key": "(anonymous):extensions::json_schema:1:10",
"key": "(anonymous extensions::json_schema:1):extensions::json_schema:1:10",
"line": 1,
"name": "(anonymous)",
"name": "(anonymous extensions::json_schema:1)",
"selfWeight": 834,
"totalWeight": 834,
},
@ -1103,9 +1103,9 @@ Object {
Frame {
"col": 10,
"file": "extensions::messaging",
"key": "(anonymous):extensions::messaging:1:10",
"key": "(anonymous extensions::messaging:1):extensions::messaging:1:10",
"line": 1,
"name": "(anonymous)",
"name": "(anonymous extensions::messaging:1)",
"selfWeight": 151,
"totalWeight": 428,
},
@ -1130,9 +1130,9 @@ Object {
Frame {
"col": 44,
"file": "extensions::binding",
"key": "(anonymous):extensions::binding:253:44",
"key": "(anonymous extensions::binding:253):extensions::binding:253:44",
"line": 253,
"name": "(anonymous)",
"name": "(anonymous extensions::binding:253)",
"selfWeight": 0,
"totalWeight": 3651,
},
@ -1148,27 +1148,27 @@ Object {
Frame {
"col": 46,
"file": "extensions::binding",
"key": "(anonymous):extensions::binding:271:46",
"key": "(anonymous extensions::binding:271):extensions::binding:271:46",
"line": 271,
"name": "(anonymous)",
"name": "(anonymous extensions::binding:271)",
"selfWeight": 546,
"totalWeight": 3349,
},
Frame {
"col": 48,
"file": "extensions::binding",
"key": "(anonymous):extensions::binding:323:48",
"key": "(anonymous extensions::binding:323):extensions::binding:323:48",
"line": 323,
"name": "(anonymous)",
"name": "(anonymous extensions::binding:323)",
"selfWeight": 159,
"totalWeight": 586,
},
Frame {
"col": 45,
"file": "extensions::binding",
"key": "(anonymous):extensions::binding:397:45",
"key": "(anonymous extensions::binding:397):extensions::binding:397:45",
"line": 397,
"name": "(anonymous)",
"name": "(anonymous extensions::binding:397)",
"selfWeight": 142,
"totalWeight": 802,
},
@ -1229,18 +1229,18 @@ Object {
Frame {
"col": 47,
"file": "extensions::binding",
"key": "(anonymous):extensions::binding:181:47",
"key": "(anonymous extensions::binding:181):extensions::binding:181:47",
"line": 181,
"name": "(anonymous)",
"name": "(anonymous extensions::binding:181)",
"selfWeight": 141,
"totalWeight": 273,
},
Frame {
"col": 36,
"file": "extensions::runtime",
"key": "(anonymous):extensions::runtime:17:36",
"key": "(anonymous extensions::runtime:17):extensions::runtime:17:36",
"line": 17,
"name": "(anonymous)",
"name": "(anonymous extensions::runtime:17)",
"selfWeight": 132,
"totalWeight": 132,
},
@ -1283,27 +1283,27 @@ Object {
Frame {
"col": 10,
"file": "chrome-extension://aomjjhallfgjeglblehebfpbcfeobpgk/injected.min.js",
"key": "(anonymous):chrome-extension://aomjjhallfgjeglblehebfpbcfeobpgk/injected.min.js:65:10",
"key": "(anonymous injected.min.js:65):chrome-extension://aomjjhallfgjeglblehebfpbcfeobpgk/injected.min.js:65:10",
"line": 65,
"name": "(anonymous)",
"name": "(anonymous injected.min.js:65)",
"selfWeight": 141,
"totalWeight": 1071,
},
Frame {
"col": 47,
"file": "extensions::SafeBuiltins",
"key": "(anonymous):extensions::SafeBuiltins:66:47",
"key": "(anonymous extensions::SafeBuiltins:66):extensions::SafeBuiltins:66:47",
"line": 66,
"name": "(anonymous)",
"name": "(anonymous extensions::SafeBuiltins:66)",
"selfWeight": 116,
"totalWeight": 27605,
},
Frame {
"col": 1,
"file": "chrome-extension://denbgaamihkadbghdceggmchnflmhpmk/contentScript.js",
"key": "(anonymous):chrome-extension://denbgaamihkadbghdceggmchnflmhpmk/contentScript.js:1:1",
"key": "(anonymous contentScript.js:1):chrome-extension://denbgaamihkadbghdceggmchnflmhpmk/contentScript.js:1:1",
"line": 1,
"name": "(anonymous)",
"name": "(anonymous contentScript.js:1)",
"selfWeight": 542,
"totalWeight": 6115,
},
@ -1364,9 +1364,9 @@ Object {
Frame {
"col": 10,
"file": "extensions::uncaught_exception_handler",
"key": "(anonymous):extensions::uncaught_exception_handler:1:10",
"key": "(anonymous extensions::uncaught_exception_handler:1):extensions::uncaught_exception_handler:1:10",
"line": 1,
"name": "(anonymous)",
"name": "(anonymous extensions::uncaught_exception_handler:1)",
"selfWeight": 121,
"totalWeight": 121,
},
@ -1382,9 +1382,9 @@ Object {
Frame {
"col": 9,
"file": "http://127.0.0.1:8081/worker.html",
"key": "(anonymous):http://127.0.0.1:8081/worker.html:1:9",
"key": "(anonymous worker.html:1):http://127.0.0.1:8081/worker.html:1:9",
"line": 1,
"name": "(anonymous)",
"name": "(anonymous worker.html:1)",
"selfWeight": 0,
"totalWeight": 939,
},
@ -1418,9 +1418,9 @@ Object {
Frame {
"col": 52,
"file": "chrome-extension://aomjjhallfgjeglblehebfpbcfeobpgk/injected.min.js",
"key": "(anonymous):chrome-extension://aomjjhallfgjeglblehebfpbcfeobpgk/injected.min.js:51:52",
"key": "(anonymous injected.min.js:51):chrome-extension://aomjjhallfgjeglblehebfpbcfeobpgk/injected.min.js:51:52",
"line": 51,
"name": "(anonymous)",
"name": "(anonymous injected.min.js:51)",
"selfWeight": 0,
"totalWeight": 683,
},
@ -1436,9 +1436,9 @@ Object {
Frame {
"col": 145,
"file": "chrome-extension://aomjjhallfgjeglblehebfpbcfeobpgk/injected.min.js",
"key": "(anonymous):chrome-extension://aomjjhallfgjeglblehebfpbcfeobpgk/injected.min.js:51:145",
"key": "(anonymous injected.min.js:51):chrome-extension://aomjjhallfgjeglblehebfpbcfeobpgk/injected.min.js:51:145",
"line": 51,
"name": "(anonymous)",
"name": "(anonymous injected.min.js:51)",
"selfWeight": 117,
"totalWeight": 678,
},
@ -1482,9 +1482,9 @@ Object {
"name": "worker.json - CrRendererMain",
"stacks": Array [
" 15.06ms",
"(anonymous);(anonymous);saveBuiltin;makeCallable;(anonymous) 102.00µs",
"(anonymous);(anonymous);saveBuiltin 92.00µs",
"(anonymous);(anonymous);saveBuiltin;(program) 2.62ms",
"(anonymous extensions::SafeBuiltins:1);(anonymous extensions::SafeBuiltins:1);saveBuiltin;makeCallable;(anonymous extensions::SafeBuiltins:8) 102.00µs",
"(anonymous extensions::SafeBuiltins:1);(anonymous extensions::SafeBuiltins:1);saveBuiltin 92.00µs",
"(anonymous extensions::SafeBuiltins:1);(anonymous extensions::SafeBuiltins:1);saveBuiltin;(program) 2.62ms",
" 312.00µs",
"(program) 295.00µs",
" 105.00µs",
@ -1495,100 +1495,100 @@ Object {
"(program) 110.00µs",
"(program);(garbage collector) 102.00µs",
"(program) 1.25ms",
"(anonymous);(anonymous);saveBuiltin 141.00µs",
"(anonymous);(anonymous);saveBuiltin;makeCallable 122.00µs",
"(anonymous);(anonymous);saveBuiltin;makeCallable;(program) 6.65ms",
"(anonymous) 598.00µs",
"(anonymous);(garbage collector) 778.00µs",
"(anonymous) 660.00µs",
"(anonymous);La 407.00µs",
"(anonymous);La;get webstore 139.00µs",
"(anonymous);La;get webstore;(anonymous) 1.15ms",
"(anonymous);La;get webstore;(anonymous);privates 132.00µs",
"(anonymous);La;get webstore;(anonymous);privates;(anonymous) 791.00µs",
"(anonymous);La;get webstore;(anonymous);privates;(anonymous);privates 135.00µs",
"(anonymous);La;get webstore;(anonymous);privates;(anonymous);privates;(anonymous) 669.00µs",
"(anonymous);La;get webstore;(anonymous);privates;(anonymous);privates;(anonymous);privates;(anonymous) 375.00µs",
"(anonymous);La;get webstore;(anonymous);privates;(anonymous);privates;(anonymous);privates;(anonymous);privates 134.00µs",
"(anonymous);La;get webstore;(anonymous);privates;(anonymous);privates;(anonymous);privates;(anonymous) 256.00µs",
"(anonymous);La;get webstore;(anonymous);privates;(anonymous);privates;(anonymous);privates;(anonymous);privates 135.00µs",
"(anonymous);La;get webstore;(anonymous);privates;(anonymous);privates;(anonymous);privates;(anonymous);privates;(anonymous) 847.00µs",
"(anonymous);La;get webstore;(anonymous);privates;(anonymous);privates;(anonymous);privates;(anonymous);privates;(anonymous);privates 133.00µs",
"(anonymous);La;get webstore;(anonymous);privates;(anonymous);privates;(anonymous);privates;(anonymous);privates;(anonymous);privates;(anonymous) 580.00µs",
"(anonymous);La;get webstore;(anonymous);privates;(anonymous);privates;(anonymous) 153.00µs",
"(anonymous);La;get webstore;(anonymous);privates;(anonymous);privates;(anonymous);expose;target.(anonymous function);Apply 146.00µs",
"(anonymous);La;get webstore;(anonymous) 744.00µs",
"(anonymous);La;get webstore;(anonymous);privates;(anonymous) 151.00µs",
"(anonymous);La;get webstore;(anonymous);privates;(anonymous);expose 147.00µs",
"(anonymous);La;get webstore;(anonymous);privates 141.00µs",
"(anonymous);La;get webstore;(anonymous) 146.00µs",
"(anonymous);La;get webstore;(anonymous);privates 139.00µs",
"(anonymous);La;get webstore;(anonymous) 142.00µs",
"(anonymous);La;get webstore;(anonymous);generate;privates 120.00µs",
"(anonymous);La;get webstore;(anonymous);generate;shouldCheckUnprivileged;target.(anonymous function);Apply 146.00µs",
"(anonymous);La;get webstore;(anonymous);generate;target.(anonymous function);Apply 259.00µs",
"(anonymous);La;get webstore;(anonymous);generate;target.(anonymous function);Apply;(anonymous);JSONSchemaValidator.addTypes 149.00µs",
"(anonymous);La;get webstore;(anonymous);generate;target.(anonymous function);Apply;(anonymous);target.(anonymous function);Apply 153.00µs",
"(anonymous);La;get webstore;(anonymous);generate;target.(anonymous function);Apply;(anonymous);target.(anonymous function);Apply;(anonymous);target.(anonymous function);Apply 251.00µs",
"(anonymous);La;get webstore;(anonymous);generate;target.(anonymous function);Apply;(anonymous);target.(anonymous function);Apply;(anonymous);target.(anonymous function) 292.00µs",
"(anonymous);La;get webstore;(anonymous);generate;target.(anonymous function);Apply;(anonymous);target.(anonymous function);Apply;(anonymous) 295.00µs",
"(anonymous);La;get webstore;(anonymous);generate;target.(anonymous function);Apply 152.00µs",
"(anonymous);La;get webstore;(anonymous);generate;target.(anonymous function);Apply;(anonymous) 159.00µs",
"(anonymous);La;get webstore;(anonymous);generate;target.(anonymous function);Apply;(anonymous);privates 135.00µs",
"(anonymous);La;get webstore;(anonymous);generate;target.(anonymous function);Apply;(anonymous);privates 133.00µs",
"(anonymous);La;get webstore;(anonymous);generate;target.(anonymous function);Apply;(anonymous);Event 139.00µs",
"(anonymous);La;get webstore;(anonymous);generate;target.(anonymous function);Apply;(anonymous);Event;privates.constructPrivate;target.(anonymous function);Apply 137.00µs",
"(anonymous);La;get webstore;(anonymous);generate;target.(anonymous function);Apply;(anonymous);Event;privates.constructPrivate;target.(anonymous function);Apply;EventImpl 125.00µs",
"(anonymous);La;get webstore;(anonymous);generate;target.(anonymous function);Apply;(anonymous) 142.00µs",
"(anonymous);La;get webstore;(anonymous);generate;addProperties 149.00µs",
"(anonymous);La;get webstore;(anonymous);generate;addProperties;forEach;target.(anonymous function);Apply 126.00µs",
"(anonymous);La;get webstore;(anonymous);generate 149.00µs",
"(anonymous);La;get webstore;(anonymous);generate;runHooks_;target.(anonymous function);Apply;(anonymous) 141.00µs",
"(anonymous);La;get webstore;(anonymous);generate;runHooks_;target.(anonymous function);Apply;(anonymous);(anonymous) 132.00µs",
"(anonymous) 160.00µs",
"(anonymous);l 127.00µs",
"(anonymous) 132.00µs",
"(anonymous);publicClassPrototype.(anonymous function);target.(anonymous function);Apply 141.00µs",
"(anonymous);publicClassPrototype.(anonymous function);target.(anonymous function);Apply;EventImpl.addListener 135.00µs",
"(anonymous);bb 146.00µs",
"(anonymous);(anonymous) 141.00µs",
"(anonymous);(anonymous);(program) 930.00µs",
"(anonymous);(anonymous);saveBuiltin;makeCallable;(anonymous) 132.00µs",
"(anonymous);(anonymous);(anonymous) 116.00µs",
"(anonymous);(anonymous);(anonymous);(program) 27.49ms",
"(anonymous) 542.00µs",
"(anonymous);insertTextScript 392.00µs",
"(anonymous);insertTextScript;insertHeaderNode 189.00µs",
"(anonymous);insertTextScript;insertHeaderNode;appendChild;(anonymous);(anonymous) 148.00µs",
"(anonymous);insertTextScript;insertHeaderNode;appendChild 145.00µs",
"(anonymous);listenForMessage;get webstore 148.00µs",
"(anonymous);listenForMessage;get webstore;(anonymous);privates;(anonymous);privates;(anonymous);privates;(anonymous) 121.00µs",
"(anonymous);listenForMessage;get webstore;(anonymous);privates;(anonymous);privates;(anonymous);privates;(anonymous) 130.00µs",
"(anonymous);listenForMessage;get webstore;(anonymous);privates;(anonymous);privates;(anonymous);privates;(anonymous);privates;(anonymous);privates;(anonymous) 254.00µs",
"(anonymous);listenForMessage;get webstore;(anonymous);privates;(anonymous);privates;(anonymous);(anonymous) 135.00µs",
"(anonymous);listenForMessage;get webstore;(anonymous);privates 122.00µs",
"(anonymous);listenForMessage;get webstore;(anonymous);privates;(anonymous);target.(anonymous function);Apply 130.00µs",
"(anonymous);listenForMessage;get webstore;(anonymous) 141.00µs",
"(anonymous);listenForMessage;get webstore;(anonymous);generate;target.(anonymous function) 154.00µs",
"(anonymous);listenForMessage;get webstore;(anonymous);generate;target.(anonymous function);Apply;(anonymous);target.(anonymous function);Apply;(anonymous) 123.00µs",
"(anonymous);listenForMessage;get webstore;(anonymous);generate;target.(anonymous function);Apply;(anonymous);target.(anonymous function);Apply;(anonymous);target.(anonymous function) 137.00µs",
"(anonymous);listenForMessage;get webstore;(anonymous);generate;target.(anonymous function);Apply;(anonymous);target.(anonymous function);Apply;(anonymous);target.(anonymous function);Apply 257.00µs",
"(anonymous);listenForMessage;get webstore;(anonymous);generate;target.(anonymous function);Apply;(anonymous);target.(anonymous function);Apply;(anonymous);target.(anonymous function);Apply;(garbage collector) 1.58ms",
"(anonymous);listenForMessage;get webstore;(anonymous);generate;target.(anonymous function);Apply;(anonymous);target.(anonymous function);Apply;(anonymous) 128.00µs",
"(anonymous);listenForMessage;get webstore;(anonymous);generate;target.(anonymous function);Apply;(anonymous);target.(anonymous function);Apply;(anonymous);target.(anonymous function);Apply 289.00µs",
"(anonymous);listenForMessage;get webstore;(anonymous);generate;target.(anonymous function);Apply;(anonymous);privates 292.00µs",
"(anonymous);listenForMessage;get webstore;(anonymous);generate;target.(anonymous function);Apply;(anonymous);Event;privates.constructPrivate;target.(anonymous function);Apply;EventImpl 126.00µs",
"(anonymous);listenForMessage;get webstore;(anonymous);generate;addProperties;forEach;target.(anonymous function) 144.00µs",
"(anonymous);listenForMessage;get webstore;(anonymous);generate;addProperties;forEach;target.(anonymous function);(program) 291.00µs",
"(anonymous);Worker 416.00µs",
"(anonymous);Worker;(program) 523.00µs",
"(anonymous extensions::SafeBuiltins:1);(anonymous extensions::SafeBuiltins:1);saveBuiltin 141.00µs",
"(anonymous extensions::SafeBuiltins:1);(anonymous extensions::SafeBuiltins:1);saveBuiltin;makeCallable 122.00µs",
"(anonymous extensions::SafeBuiltins:1);(anonymous extensions::SafeBuiltins:1);saveBuiltin;makeCallable;(program) 6.65ms",
"(anonymous injected.min.js:1) 598.00µs",
"(anonymous injected.min.js:1);(garbage collector) 778.00µs",
"(anonymous injected.min.js:1) 660.00µs",
"(anonymous injected.min.js:1);La 407.00µs",
"(anonymous injected.min.js:1);La;get webstore 139.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1) 1.15ms",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);privates 132.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);privates;(anonymous extensions::binding:1) 791.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);privates;(anonymous extensions::binding:1);privates 135.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);privates;(anonymous extensions::binding:1);privates;(anonymous extensions::event_bindings:1) 669.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);privates;(anonymous extensions::binding:1);privates;(anonymous extensions::event_bindings:1);privates;(anonymous extensions::sendRequest:1) 375.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);privates;(anonymous extensions::binding:1);privates;(anonymous extensions::event_bindings:1);privates;(anonymous extensions::sendRequest:1);privates 134.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);privates;(anonymous extensions::binding:1);privates;(anonymous extensions::event_bindings:1);privates;(anonymous extensions::sendRequest:1) 256.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);privates;(anonymous extensions::binding:1);privates;(anonymous extensions::event_bindings:1);privates;(anonymous extensions::sendRequest:1);privates 135.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);privates;(anonymous extensions::binding:1);privates;(anonymous extensions::event_bindings:1);privates;(anonymous extensions::sendRequest:1);privates;(anonymous extensions::schemaUtils:1) 847.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);privates;(anonymous extensions::binding:1);privates;(anonymous extensions::event_bindings:1);privates;(anonymous extensions::sendRequest:1);privates;(anonymous extensions::schemaUtils:1);privates 133.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);privates;(anonymous extensions::binding:1);privates;(anonymous extensions::event_bindings:1);privates;(anonymous extensions::sendRequest:1);privates;(anonymous extensions::schemaUtils:1);privates;(anonymous extensions::json_schema:1) 580.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);privates;(anonymous extensions::binding:1);privates;(anonymous extensions::event_bindings:1) 153.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);privates;(anonymous extensions::binding:1);privates;(anonymous extensions::event_bindings:1);expose;target.(anonymous function);Apply 146.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1) 744.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);privates;(anonymous extensions::messaging:1) 151.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);privates;(anonymous extensions::messaging:1);expose 147.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);privates 141.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1) 146.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);privates 139.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1) 142.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);generate;privates 120.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);generate;shouldCheckUnprivileged;target.(anonymous function);Apply 146.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);generate;target.(anonymous function);Apply 259.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);generate;target.(anonymous function);Apply;(anonymous extensions::binding:253);JSONSchemaValidator.addTypes 149.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);generate;target.(anonymous function);Apply;(anonymous extensions::binding:253);target.(anonymous function);Apply 153.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);generate;target.(anonymous function);Apply;(anonymous extensions::binding:253);target.(anonymous function);Apply;(anonymous extensions::binding:271);target.(anonymous function);Apply 251.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);generate;target.(anonymous function);Apply;(anonymous extensions::binding:253);target.(anonymous function);Apply;(anonymous extensions::binding:271);target.(anonymous function) 292.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);generate;target.(anonymous function);Apply;(anonymous extensions::binding:253);target.(anonymous function);Apply;(anonymous extensions::binding:271) 295.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);generate;target.(anonymous function);Apply 152.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);generate;target.(anonymous function);Apply;(anonymous extensions::binding:323) 159.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);generate;target.(anonymous function);Apply;(anonymous extensions::binding:323);privates 135.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);generate;target.(anonymous function);Apply;(anonymous extensions::binding:397);privates 133.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);generate;target.(anonymous function);Apply;(anonymous extensions::binding:397);Event 139.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);generate;target.(anonymous function);Apply;(anonymous extensions::binding:397);Event;privates.constructPrivate;target.(anonymous function);Apply 137.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);generate;target.(anonymous function);Apply;(anonymous extensions::binding:397);Event;privates.constructPrivate;target.(anonymous function);Apply;EventImpl 125.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);generate;target.(anonymous function);Apply;(anonymous extensions::binding:397) 142.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);generate;addProperties 149.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);generate;addProperties;forEach;target.(anonymous function);Apply 126.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);generate 149.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);generate;runHooks_;target.(anonymous function);Apply;(anonymous extensions::binding:181) 141.00µs",
"(anonymous injected.min.js:1);La;get webstore;(anonymous extensions::runtime:1);generate;runHooks_;target.(anonymous function);Apply;(anonymous extensions::binding:181);(anonymous extensions::runtime:17) 132.00µs",
"(anonymous injected.min.js:1) 160.00µs",
"(anonymous injected.min.js:1);l 127.00µs",
"(anonymous injected.min.js:1) 132.00µs",
"(anonymous injected.min.js:1);publicClassPrototype.(anonymous function);target.(anonymous function);Apply 141.00µs",
"(anonymous injected.min.js:1);publicClassPrototype.(anonymous function);target.(anonymous function);Apply;EventImpl.addListener 135.00µs",
"(anonymous injected.min.js:1);bb 146.00µs",
"(anonymous injected.min.js:1);(anonymous injected.min.js:65) 141.00µs",
"(anonymous injected.min.js:1);(anonymous injected.min.js:65);(program) 930.00µs",
"(anonymous extensions::SafeBuiltins:1);(anonymous extensions::SafeBuiltins:1);saveBuiltin;makeCallable;(anonymous extensions::SafeBuiltins:8) 132.00µs",
"(anonymous extensions::SafeBuiltins:1);(anonymous extensions::SafeBuiltins:1);(anonymous extensions::SafeBuiltins:66) 116.00µs",
"(anonymous extensions::SafeBuiltins:1);(anonymous extensions::SafeBuiltins:1);(anonymous extensions::SafeBuiltins:66);(program) 27.49ms",
"(anonymous contentScript.js:1) 542.00µs",
"(anonymous contentScript.js:1);insertTextScript 392.00µs",
"(anonymous contentScript.js:1);insertTextScript;insertHeaderNode 189.00µs",
"(anonymous contentScript.js:1);insertTextScript;insertHeaderNode;appendChild;(anonymous);(anonymous) 148.00µs",
"(anonymous contentScript.js:1);insertTextScript;insertHeaderNode;appendChild 145.00µs",
"(anonymous contentScript.js:1);listenForMessage;get webstore 148.00µs",
"(anonymous contentScript.js:1);listenForMessage;get webstore;(anonymous extensions::runtime:1);privates;(anonymous extensions::binding:1);privates;(anonymous extensions::event_bindings:1);privates;(anonymous extensions::uncaught_exception_handler:1) 121.00µs",
"(anonymous contentScript.js:1);listenForMessage;get webstore;(anonymous extensions::runtime:1);privates;(anonymous extensions::binding:1);privates;(anonymous extensions::event_bindings:1);privates;(anonymous extensions::sendRequest:1) 130.00µs",
"(anonymous contentScript.js:1);listenForMessage;get webstore;(anonymous extensions::runtime:1);privates;(anonymous extensions::binding:1);privates;(anonymous extensions::event_bindings:1);privates;(anonymous extensions::sendRequest:1);privates;(anonymous extensions::schemaUtils:1);privates;(anonymous extensions::json_schema:1) 254.00µs",
"(anonymous contentScript.js:1);listenForMessage;get webstore;(anonymous extensions::runtime:1);privates;(anonymous extensions::binding:1);privates;(anonymous extensions::event_bindings:1);(anonymous) 135.00µs",
"(anonymous contentScript.js:1);listenForMessage;get webstore;(anonymous extensions::runtime:1);privates 122.00µs",
"(anonymous contentScript.js:1);listenForMessage;get webstore;(anonymous extensions::runtime:1);privates;(anonymous extensions::messaging:1);target.(anonymous function);Apply 130.00µs",
"(anonymous contentScript.js:1);listenForMessage;get webstore;(anonymous extensions::runtime:1) 141.00µs",
"(anonymous contentScript.js:1);listenForMessage;get webstore;(anonymous extensions::runtime:1);generate;target.(anonymous function) 154.00µs",
"(anonymous contentScript.js:1);listenForMessage;get webstore;(anonymous extensions::runtime:1);generate;target.(anonymous function);Apply;(anonymous extensions::binding:253);target.(anonymous function);Apply;(anonymous extensions::binding:271) 123.00µs",
"(anonymous contentScript.js:1);listenForMessage;get webstore;(anonymous extensions::runtime:1);generate;target.(anonymous function);Apply;(anonymous extensions::binding:253);target.(anonymous function);Apply;(anonymous extensions::binding:271);target.(anonymous function) 137.00µs",
"(anonymous contentScript.js:1);listenForMessage;get webstore;(anonymous extensions::runtime:1);generate;target.(anonymous function);Apply;(anonymous extensions::binding:253);target.(anonymous function);Apply;(anonymous extensions::binding:271);target.(anonymous function);Apply 257.00µs",
"(anonymous contentScript.js:1);listenForMessage;get webstore;(anonymous extensions::runtime:1);generate;target.(anonymous function);Apply;(anonymous extensions::binding:253);target.(anonymous function);Apply;(anonymous extensions::binding:271);target.(anonymous function);Apply;(garbage collector) 1.58ms",
"(anonymous contentScript.js:1);listenForMessage;get webstore;(anonymous extensions::runtime:1);generate;target.(anonymous function);Apply;(anonymous extensions::binding:253);target.(anonymous function);Apply;(anonymous extensions::binding:271) 128.00µs",
"(anonymous contentScript.js:1);listenForMessage;get webstore;(anonymous extensions::runtime:1);generate;target.(anonymous function);Apply;(anonymous extensions::binding:253);target.(anonymous function);Apply;(anonymous extensions::binding:271);target.(anonymous function);Apply 289.00µs",
"(anonymous contentScript.js:1);listenForMessage;get webstore;(anonymous extensions::runtime:1);generate;target.(anonymous function);Apply;(anonymous extensions::binding:323);privates 292.00µs",
"(anonymous contentScript.js:1);listenForMessage;get webstore;(anonymous extensions::runtime:1);generate;target.(anonymous function);Apply;(anonymous extensions::binding:397);Event;privates.constructPrivate;target.(anonymous function);Apply;EventImpl 126.00µs",
"(anonymous contentScript.js:1);listenForMessage;get webstore;(anonymous extensions::runtime:1);generate;addProperties;forEach;target.(anonymous function) 144.00µs",
"(anonymous contentScript.js:1);listenForMessage;get webstore;(anonymous extensions::runtime:1);generate;addProperties;forEach;target.(anonymous function);(program) 291.00µs",
"(anonymous worker.html:1);Worker 416.00µs",
"(anonymous worker.html:1);Worker;(program) 523.00µs",
"cb;$a 278.00µs",
"cb;$a;(program) 81.00µs",
"(anonymous);setTimeout 42.00µs",
"(anonymous);setTimeout;(program) 641.00µs",
"(anonymous);setTimeout 21.00µs",
"(anonymous) 117.00µs",
"(anonymous);(program) 540.00µs",
"(anonymous injected.min.js:51);setTimeout 42.00µs",
"(anonymous injected.min.js:51);setTimeout;(program) 641.00µs",
"(anonymous injected.min.js:51);setTimeout 21.00µs",
"(anonymous injected.min.js:51) 117.00µs",
"(anonymous injected.min.js:51);(program) 540.00µs",
" 511.00µs",
"(program) 125.00µs",
" 136.00µs",

View File

@ -17,7 +17,7 @@ Object {
"file": "__InjectedScript_CommandLineAPIModuleSource.js",
"key": ":__InjectedScript_CommandLineAPIModuleSource.js:2:10",
"line": 2,
"name": "(anonymous)",
"name": "(anonymous __InjectedScript_CommandLineAPIModuleSource.js:2)",
"selfWeight": 0.001,
"totalWeight": 0.001,
},
@ -78,7 +78,7 @@ Object {
],
"name": "Grabación de Control temporal 1",
"stacks": Array [
"injectModule;(anonymous) 1.00ms",
"injectModule;(anonymous __InjectedScript_CommandLineAPIModuleSource.js:2) 1.00ms",
" 39.93ms",
"(program);alpha;delta;gamma 10.83ms",
" 2.46ms",

File diff suppressed because it is too large Load Diff

View File

@ -8,7 +8,7 @@ Object {
"file": "bootstrap_node.js",
"key": " bootstrap_node.js:10:10",
"line": 10,
"name": "(anonymous)",
"name": "(anonymous bootstrap_node.js:10)",
"selfWeight": 0,
"totalWeight": 116424,
},
@ -53,7 +53,7 @@ Object {
"file": "util.js",
"key": " util.js:1:11",
"line": 1,
"name": "(anonymous)",
"name": "(anonymous util.js:1)",
"selfWeight": 0,
"totalWeight": 29385,
},
@ -62,7 +62,7 @@ Object {
"file": "internal/encoding.js",
"key": " internal/encoding.js:1:11",
"line": 1,
"name": "(anonymous)",
"name": "(anonymous encoding.js:1)",
"selfWeight": 0,
"totalWeight": 29385,
},
@ -107,7 +107,7 @@ Object {
"file": "module.js",
"key": " module.js:1:11",
"line": 1,
"name": "(anonymous)",
"name": "(anonymous module.js:1)",
"selfWeight": 0,
"totalWeight": 22888,
},
@ -116,7 +116,7 @@ Object {
"file": "fs.js",
"key": " fs.js:1:11",
"line": 1,
"name": "(anonymous)",
"name": "(anonymous fs.js:1)",
"selfWeight": 0,
"totalWeight": 22888,
},
@ -197,7 +197,7 @@ Object {
"file": "/Users/jlfwong/code/speedscope/sample/programs/javascript/simple.js",
"key": " /Users/jlfwong/code/speedscope/sample/programs/javascript/simple.js:1:11",
"line": 1,
"name": "(anonymous)",
"name": "(anonymous simple.js:1)",
"selfWeight": 0,
"totalWeight": 64151,
},
@ -240,22 +240,22 @@ Object {
],
"name": "simple.v8log.json",
"stacks": Array [
"(anonymous);startup;setupGlobalVariables;NativeModule.require;NativeModule.compile;(anonymous);NativeModule.require;NativeModule.compile;(anonymous);(c++) v8::internal::Runtime_CreateArrayLiteral;(c++) v8::internal::JSFunction::EnsureHasInitialMap 29.38ms",
"(anonymous);startup;setupGlobalConsole;setupInspectorCommandLineAPI;NativeModule.require;NativeModule.compile;(anonymous);NativeModule.require;NativeModule.compile;(anonymous);(c++) v8::internal::Runtime_StoreIC_Miss;(c++) v8::internal::Map::RawCopy 22.89ms",
"(anonymous);startup;Module.runMain;Module._load;tryModuleLoad;Module.load;Module._extensions..js;Module._compile;(anonymous);a;b;d 37.52ms",
"(anonymous);startup;Module.runMain;Module._load;tryModuleLoad;Module.load;Module._extensions..js;Module._compile;(anonymous);a;c;d 1.28ms",
"(anonymous);startup;Module.runMain;Module._load;tryModuleLoad;Module.load;Module._extensions..js;Module._compile;(anonymous);a;b;d 2.55ms",
"(anonymous);startup;Module.runMain;Module._load;tryModuleLoad;Module.load;Module._extensions..js;Module._compile;(anonymous);a;c;d 1.27ms",
"(anonymous);startup;Module.runMain;Module._load;tryModuleLoad;Module.load;Module._extensions..js;Module._compile;(anonymous);a;b;d 1.28ms",
"(anonymous);startup;Module.runMain;Module._load;tryModuleLoad;Module.load;Module._extensions..js;Module._compile;(anonymous);a;c;d 1.27ms",
"(anonymous);startup;Module.runMain;Module._load;tryModuleLoad;Module.load;Module._extensions..js;Module._compile;(anonymous);a;b;d 1.29ms",
"(anonymous);startup;Module.runMain;Module._load;tryModuleLoad;Module.load;Module._extensions..js;Module._compile;(anonymous);a;c;d 1.26ms",
"(anonymous);startup;Module.runMain;Module._load;tryModuleLoad;Module.load;Module._extensions..js;Module._compile;(anonymous);a;b;d 1.31ms",
"(anonymous);startup;Module.runMain;Module._load;tryModuleLoad;Module.load;Module._extensions..js;Module._compile;(anonymous);a;c;d 2.52ms",
"(anonymous);startup;Module.runMain;Module._load;tryModuleLoad;Module.load;Module._extensions..js;Module._compile;(anonymous);a;c 1.27ms",
"(anonymous);startup;Module.runMain;Module._load;tryModuleLoad;Module.load;Module._extensions..js;Module._compile;(anonymous);a;b 3.62ms",
"(anonymous);startup;Module.runMain;Module._load;tryModuleLoad;Module.load;Module._extensions..js;Module._compile;(anonymous);a;c 1.28ms",
"(anonymous);startup;Module.runMain;Module._load;tryModuleLoad;Module.load;Module._extensions..js;Module._compile;(anonymous);a;b 6.42ms",
"(anonymous bootstrap_node.js:10);startup;setupGlobalVariables;NativeModule.require;NativeModule.compile;(anonymous util.js:1);NativeModule.require;NativeModule.compile;(anonymous encoding.js:1);(c++) v8::internal::Runtime_CreateArrayLiteral;(c++) v8::internal::JSFunction::EnsureHasInitialMap 29.38ms",
"(anonymous bootstrap_node.js:10);startup;setupGlobalConsole;setupInspectorCommandLineAPI;NativeModule.require;NativeModule.compile;(anonymous module.js:1);NativeModule.require;NativeModule.compile;(anonymous fs.js:1);(c++) v8::internal::Runtime_StoreIC_Miss;(c++) v8::internal::Map::RawCopy 22.89ms",
"(anonymous bootstrap_node.js:10);startup;Module.runMain;Module._load;tryModuleLoad;Module.load;Module._extensions..js;Module._compile;(anonymous simple.js:1);a;b;d 37.52ms",
"(anonymous bootstrap_node.js:10);startup;Module.runMain;Module._load;tryModuleLoad;Module.load;Module._extensions..js;Module._compile;(anonymous simple.js:1);a;c;d 1.28ms",
"(anonymous bootstrap_node.js:10);startup;Module.runMain;Module._load;tryModuleLoad;Module.load;Module._extensions..js;Module._compile;(anonymous simple.js:1);a;b;d 2.55ms",
"(anonymous bootstrap_node.js:10);startup;Module.runMain;Module._load;tryModuleLoad;Module.load;Module._extensions..js;Module._compile;(anonymous simple.js:1);a;c;d 1.27ms",
"(anonymous bootstrap_node.js:10);startup;Module.runMain;Module._load;tryModuleLoad;Module.load;Module._extensions..js;Module._compile;(anonymous simple.js:1);a;b;d 1.28ms",
"(anonymous bootstrap_node.js:10);startup;Module.runMain;Module._load;tryModuleLoad;Module.load;Module._extensions..js;Module._compile;(anonymous simple.js:1);a;c;d 1.27ms",
"(anonymous bootstrap_node.js:10);startup;Module.runMain;Module._load;tryModuleLoad;Module.load;Module._extensions..js;Module._compile;(anonymous simple.js:1);a;b;d 1.29ms",
"(anonymous bootstrap_node.js:10);startup;Module.runMain;Module._load;tryModuleLoad;Module.load;Module._extensions..js;Module._compile;(anonymous simple.js:1);a;c;d 1.26ms",
"(anonymous bootstrap_node.js:10);startup;Module.runMain;Module._load;tryModuleLoad;Module.load;Module._extensions..js;Module._compile;(anonymous simple.js:1);a;b;d 1.31ms",
"(anonymous bootstrap_node.js:10);startup;Module.runMain;Module._load;tryModuleLoad;Module.load;Module._extensions..js;Module._compile;(anonymous simple.js:1);a;c;d 2.52ms",
"(anonymous bootstrap_node.js:10);startup;Module.runMain;Module._load;tryModuleLoad;Module.load;Module._extensions..js;Module._compile;(anonymous simple.js:1);a;c 1.27ms",
"(anonymous bootstrap_node.js:10);startup;Module.runMain;Module._load;tryModuleLoad;Module.load;Module._extensions..js;Module._compile;(anonymous simple.js:1);a;b 3.62ms",
"(anonymous bootstrap_node.js:10);startup;Module.runMain;Module._load;tryModuleLoad;Module.load;Module._extensions..js;Module._compile;(anonymous simple.js:1);a;c 1.28ms",
"(anonymous bootstrap_node.js:10);startup;Module.runMain;Module._load;tryModuleLoad;Module.load;Module._extensions..js;Module._compile;(anonymous simple.js:1);a;b 6.42ms",
],
}
`;

View File

@ -168,7 +168,6 @@ export function importFromChromeTimeline(events: TimelineEvent[], fileName: stri
const callFrameToFrameInfo = new Map<CPUProfileCallFrame, FrameInfo>()
function frameInfoForCallFrame(callFrame: CPUProfileCallFrame) {
return getOrInsert(callFrameToFrameInfo, callFrame, callFrame => {
const name = callFrame.functionName || '(anonymous)'
const file = callFrame.url
// In Chrome profiles, line numbers & column numbers are both 0-indexed.
@ -181,6 +180,10 @@ function frameInfoForCallFrame(callFrame: CPUProfileCallFrame) {
let col = callFrame.columnNumber
if (col != null) col++
const name =
callFrame.functionName ||
(file ? `(anonymous ${file.split('/').pop()}:${line})` : '(anonymous)')
return {
key: `${name}:${file}:${line}:${col}`,
name,

View File

@ -72,7 +72,7 @@ function makeStack(frames: StackFrame[]): FrameInfo[] {
file: url,
line,
col: column,
name: name || '(anonymous)',
name: name || (url ? `(anonymous ${url.split('/').pop()}:${line})` : '(anonymous)'),
}))
.reverse()
}

View File

@ -37,10 +37,12 @@ interface HeapProfile {
const callFrameToFrameInfo = new Map<HeapProfileCallFrame, FrameInfo>()
function frameInfoForCallFrame(callFrame: HeapProfileCallFrame) {
return getOrInsert(callFrameToFrameInfo, callFrame, callFrame => {
const name = callFrame.functionName || '(anonymous)'
const file = callFrame.url
const line = callFrame.lineNumber
const col = callFrame.columnNumber
const name =
callFrame.functionName ||
(file ? `(anonymous ${file.split('/').pop()}:${line})` : '(anonymous)')
return {
key: `${name}:${file}:${line}:${col}`,
name,

View File

@ -80,12 +80,21 @@ function codeToFrameInfo(code: Code, v8log: V8LogProfile): FrameInfo {
case 'JS': {
const matches = name.match(/([a-zA-Z0-9\._\-$]*) ([a-zA-Z0-9\.\-_\/$]*):(\d+):(\d+)/)
if (matches) {
const file = matches[2]
const line = parseInt(matches[3], 10)
const col = parseInt(matches[4], 10)
const functionName =
matches[1].length > 0
? matches[1]
: file
? `(anonymous ${file.split('/').pop()}:${line})`
: '(anonymous)'
return {
key: name,
name: matches[1].length > 0 ? matches[1] : '(anonymous)',
file: matches[2].length > 0 ? matches[2] : '(unknown file)',
line: parseInt(matches[3], 10),
col: parseInt(matches[4], 10),
name: functionName,
file: file.length > 0 ? file : '(unknown file)',
line,
col,
}
}
break

View File

@ -2,7 +2,7 @@
exports[`source-map remapping of chrome-85-esbuild 1`] = `
Array [
"((anonymous) @ alpha.ts:5:5) <- ((anonymous) @ file:///Users/jlfwong/code/speedscope/sample/programs/javascript/sourcemaps/dist/esbuild/typescript-source-map-test.js:1:170)",
"((anonymous typescript-source-map-test.js:1) @ alpha.ts:5:5) <- ((anonymous typescript-source-map-test.js:1) @ file:///Users/jlfwong/code/speedscope/sample/programs/javascript/sourcemaps/dist/esbuild/typescript-source-map-test.js:1:170)",
"(e @ beta.ts:3:8) <- (e @ file:///Users/jlfwong/code/speedscope/sample/programs/javascript/sourcemaps/dist/esbuild/typescript-source-map-test.js:1:75)",
"(get floop @ kludge.ts:13:7) <- (get floop @ file:///Users/jlfwong/code/speedscope/sample/programs/javascript/sourcemaps/dist/esbuild/typescript-source-map-test.js:1:276)",
"(l constructor @ kludge.ts:4:3) <- (l @ file:///Users/jlfwong/code/speedscope/sample/programs/javascript/sourcemaps/dist/esbuild/typescript-source-map-test.js:1:226)",
@ -15,7 +15,7 @@ Array [
exports[`source-map remapping of chrome-85-parcel 1`] = `
Array [
"((anonymous) @ ../alpha.ts:5:5) <- ((anonymous) @ file:///Users/jlfwong/code/speedscope/sample/programs/javascript/sourcemaps/dist/parcel/typescript-source-map-test.js:8:152)",
"((anonymous typescript-source-map-test.js:8) @ ../alpha.ts:5:5) <- ((anonymous typescript-source-map-test.js:8) @ file:///Users/jlfwong/code/speedscope/sample/programs/javascript/sourcemaps/dist/parcel/typescript-source-map-test.js:8:152)",
"(e @ ../gamma.ts:1:22) <- (e @ file:///Users/jlfwong/code/speedscope/sample/programs/javascript/sourcemaps/dist/parcel/typescript-source-map-test.js:2:104)",
"(get @ ../kludge.ts:13:3) <- (get @ file:///Users/jlfwong/code/speedscope/sample/programs/javascript/sourcemaps/dist/parcel/typescript-source-map-test.js:10:284)",
"(o.zap @ ../kludge.ts:9:3) <- (o.zap @ file:///Users/jlfwong/code/speedscope/sample/programs/javascript/sourcemaps/dist/parcel/typescript-source-map-test.js:10:211)",
@ -32,7 +32,7 @@ Array [
exports[`source-map remapping of chrome-85-webpack 1`] = `
Array [
"((anonymous) @ webpack://speedscope-sourcemap-test-project/alpha.ts:5:4) <- ((anonymous) @ file:///Users/jlfwong/code/speedscope/sample/programs/javascript/sourcemaps/dist/webpack/typescript-source-map-test.js:1:181)",
"((anonymous typescript-source-map-test.js:1) @ webpack://speedscope-sourcemap-test-project/alpha.ts:5:4) <- ((anonymous typescript-source-map-test.js:1) @ file:///Users/jlfwong/code/speedscope/sample/programs/javascript/sourcemaps/dist/webpack/typescript-source-map-test.js:1:181)",
"(get @ webpack://speedscope-sourcemap-test-project/kludge.ts:13:3) <- (get @ file:///Users/jlfwong/code/speedscope/sample/programs/javascript/sourcemaps/dist/webpack/typescript-source-map-test.js:1:368)",
"(n.zap @ webpack://speedscope-sourcemap-test-project/kludge.ts:9:3) <- (n.zap @ file:///Users/jlfwong/code/speedscope/sample/programs/javascript/sourcemaps/dist/webpack/typescript-source-map-test.js:1:305)",
"(n constructor @ webpack://speedscope-sourcemap-test-project/kludge.ts:4:3) <- (n @ file:///Users/jlfwong/code/speedscope/sample/programs/javascript/sourcemaps/dist/webpack/typescript-source-map-test.js:1:243)",
@ -58,8 +58,8 @@ Array [
exports[`source-map remapping of safari-13-webpack 1`] = `
Array [
"((anonymous) @ webpack://speedscope-sourcemap-test-project/alpha.ts:5:4) <- ((anonymous) @ file:///Users/jlfwong/code/speedscope/sample/programs/javascript/sourcemaps/dist/webpack/typescript-source-map-test.js:1:181)",
"(zap @ webpack://speedscope-sourcemap-test-project/kludge.ts:9:3) <- ((anonymous) @ file:///Users/jlfwong/code/speedscope/sample/programs/javascript/sourcemaps/dist/webpack/typescript-source-map-test.js:1:305)",
"((anonymous typescript-source-map-test.js:1) @ webpack://speedscope-sourcemap-test-project/alpha.ts:5:4) <- ((anonymous typescript-source-map-test.js:1) @ file:///Users/jlfwong/code/speedscope/sample/programs/javascript/sourcemaps/dist/webpack/typescript-source-map-test.js:1:181)",
"(zap @ webpack://speedscope-sourcemap-test-project/kludge.ts:9:3) <- ((anonymous typescript-source-map-test.js:1) @ file:///Users/jlfwong/code/speedscope/sample/programs/javascript/sourcemaps/dist/webpack/typescript-source-map-test.js:1:305)",
"(get @ webpack://speedscope-sourcemap-test-project/kludge.ts:13:3) <- (get @ file:///Users/jlfwong/code/speedscope/sample/programs/javascript/sourcemaps/dist/webpack/typescript-source-map-test.js:1:368)",
"(n constructor @ webpack://speedscope-sourcemap-test-project/kludge.ts:4:3) <- (n @ file:///Users/jlfwong/code/speedscope/sample/programs/javascript/sourcemaps/dist/webpack/typescript-source-map-test.js:1:243)",
"(n @ webpack://speedscope-sourcemap-test-project/gamma.ts:1:22) <- (n @ file:///Users/jlfwong/code/speedscope/sample/programs/javascript/sourcemaps/dist/webpack/typescript-source-map-test.js:1:34)",

View File

@ -80,6 +80,7 @@ export class FlamechartView extends StatelessComponent<FlamechartViewProps> {
if (!hover) return null
const {width, height, left, top} = this.container.getBoundingClientRect()
const offset = new Vec2(hover.event.clientX - left, hover.event.clientY - top)
const frame = hover.node.frame
const style = this.getStyle()
@ -88,7 +89,12 @@ export class FlamechartView extends StatelessComponent<FlamechartViewProps> {
<span className={css(style.hoverCount)}>
{this.formatValue(hover.node.getTotalWeight())}
</span>{' '}
{hover.node.frame.name}
{frame.name}
{frame.file ? (
<div>
{frame.file}:{frame.line}
</div>
) : undefined}
</Hovertip>
)
}

View File

@ -41,13 +41,19 @@ export class FlamechartWrapper extends StatelessComponent<FlamechartViewProps> {
const {width, height, left, top} = this.container.getBoundingClientRect()
const offset = new Vec2(hover.event.clientX - left, hover.event.clientY - top)
const style = getStyle(this.props.theme)
const frame = hover.node.frame
return (
<Hovertip containerSize={new Vec2(width, height)} offset={offset}>
<span className={css(style.hoverCount)}>
{this.formatValue(hover.node.getTotalWeight())}
</span>{' '}
{hover.node.frame.name}
{frame.name}
{frame.file ? (
<div>
{frame.file}:{frame.line}
</div>
) : undefined}
</Hovertip>
)
}