Skip to content

Commit

Permalink
Clean up readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Babik committed Nov 26, 2023
1 parent 484cf6c commit ef56771
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@ trace.off("my function 1")
Benchmarking can be structured as a nested hierarchy of `on`/`off` calls.
```
trace.on("my function 1")
trace.on("inner function")
trace.on("inner function", { skip: 10, take: 100 })
// your code
trace.off("inner function")
trace.off("my function 1")
```

Ensure that each `on(label)` method has a corresponding closing `off(label)` method with a matching label.

To generate an execution report, call the `report` method from the code or dev tools console.
This will open a popup window with an expandable table representing the call hierarchy and benchmarks.

Expand Down

0 comments on commit ef56771

Please sign in to comment.