Skip to content

Commit

Permalink
More readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Babik committed Nov 26, 2023
1 parent ef56771 commit 9fba116
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ trace.on("my function 1")
trace.off("my function 1")
```

To generate an execution report, call the `report` method from the code or dev tools console.
To generate an execution report, call the `trace.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.

### Install
```
<script src="https://ababik.github.io/trace/trace.js"></script>
```
`trace` objest is available as a global variable.

### Report Example
![Report example](./public/example.gif)

0 comments on commit 9fba116

Please sign in to comment.