timholy / SnoopCompile.jl

Provide insights about latency (TTFX) for Julia packages
https://timholy.github.io/SnoopCompile.jl/dev/
Other
309 stars 48 forks source link

Basic example doesn't work #136

Closed mateuszbaran closed 4 years ago

mateuszbaran commented 4 years ago

I was trying to run a basic example from the documentation: https://timholy.github.io/SnoopCompile.jl/stable/snoopr/#A-first-example-1 and it doesn't work:

julia> using SnoopCompileCore

julia> invalidations = @snoopr f(::Float64) = 2;
ERROR: LoadError: UndefVarError: @snoopr not defined
in expression starting at REPL[2]:1

I'm using version 2.1.1 of SnoopCompileCore.

timholy commented 4 years ago

You need to be running the nightly version of Julia. (See the warning at the top of the page you're looking at.)

mateuszbaran commented 4 years ago

Right, I didn't look there. Sorry for opening this issue.