Skip to content

Commit

Permalink
Explain how to resolve conflict in @profview (#172)
Browse files Browse the repository at this point in the history
Closes #171
  • Loading branch information
timholy authored Oct 9, 2021
1 parent 3d624a4 commit b733705
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ using ProfileView

`@profview f(args...)` is just shorthand for `Profile.clear(); @profile f(args...); ProfileView.view()`.

> If you use ProfileView from VSCode you'll get an error `UndefVarError: @profview not defined`.
> This is because VSCode defines its own `@profview`, which conflicts with ProfileView's.
> Fix it by using `ProfileView.@profview`.
If you're following along, you should see something like this:

![ProfileView](readme_images/pv1.png)
Expand Down

0 comments on commit b733705

Please sign in to comment.