Skip to content

Commit

Permalink
update tasks.json (#2313)
Browse files Browse the repository at this point in the history
bring the tasks.json up to date 
- The VM is the default path now so no need for it
- The tokens option is no longer available
  • Loading branch information
jasonwilliams committed Sep 28, 2022
1 parent 3e26910 commit 9350977
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 43 deletions.
45 changes: 3 additions & 42 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,53 +22,14 @@
},
"problemMatcher": []
},
{
"type": "process",
"label": "Cargo Run (VM)",
"command": "cargo",
"args": ["run", "--", "-t", "../tests/js/test.js"],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"clear": true
},
"options": {
"cwd": "${workspaceFolder}/boa_cli",
"env": {
"RUST_BACKTRACE": "1"
}
},
"problemMatcher": []
},
{
"type": "process",
"label": "Cargo Run (Profiler)",
"command": "cargo",
"args": ["run", "--features", "Boa/profiler", "../tests/js/test.js"],
"group": "build",
"options": {
"env": {
"RUST_BACKTRACE": "full"
},
"cwd": "${workspaceFolder}/boa_cli"
},
"presentation": {
"clear": true
},
"problemMatcher": []
},
{
"type": "process",
"label": "Cargo Run (Profiler & VM)",
"command": "cargo",
"args": [
"run",
"--features",
"Boa/profiler",
"--features",
"vm",
"boa_engine/profiler",
"../tests/js/test.js"
],
"group": "build",
Expand All @@ -85,9 +46,9 @@
},
{
"type": "process",
"label": "Get Tokens",
"label": "Run with VM trace",
"command": "cargo",
"args": ["run", "--bin", "boa", "--", "-t=Debug", "./tests/js/test.js"],
"args": ["run", "--bin", "boa", "--", "-t", "./tests/js/test.js"],
"group": "build",
"presentation": {
"clear": true
Expand Down
2 changes: 1 addition & 1 deletion docs/profiling.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ when the feature flag is not enabled, you have an empty dummy implementation tha

You can run boa using the "profiler" feature flag to enable profiling. Seeing as you'll most likely be using boa_cli you can pass this through, like so:

`cargo run --release --features Boa/profiler ../tests/js/test.js`
`cargo run --release --features boa_engine/profiler ../tests/js/test.js`

Once finished you should see some trace files left in the directory (boa_cli in this case).
In the same directory as the `.events, string_data, string_index` files run `crox my_trace` or whatever the name of the files are. This will generate a chrome_profiler.json file, you can load this into Chrome Dev tools.
Expand Down

0 comments on commit 9350977

Please sign in to comment.