Skip to content

Commit cc80f2d

Browse files
committed
Eliminate the need to scope CodeInfo internally
1 parent 459a14b commit cc80f2d

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

src/SnoopCompile.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module SnoopCompile
22

33
using Serialization, OrderedCollections
4+
using Core: MethodInstance, CodeInfo
45

56
export timesum # @snoopi and @snoopc are exported from their files of definition
67

src/bot/snoopi_bench.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ end
4444
timesum(runSnoop)
4545
```
4646
"""
47-
function timesum(snoop::Vector{Tuple{Float64, Core.MethodInstance}})
47+
function timesum(snoop::Vector{Tuple{Float64, MethodInstance}})
4848
if isempty(snoop)
4949
return 0.0
5050
else

src/parcel_snoopi.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ function handle_kwbody(topmod::Module, m::Method, paramrepr, tt, fstr="fbody")
193193
return nothing
194194
end
195195

196-
function parcel(tinf::AbstractVector{Tuple{Float64,Core.MethodInstance}}; subst=Vector{Pair{String, String}}(), blacklist=String[])
196+
function parcel(tinf::AbstractVector{Tuple{Float64,MethodInstance}}; subst=Vector{Pair{String, String}}(), blacklist=String[])
197197
pc = Dict{Symbol, Set{String}}() # output
198198
modgens = Dict{Module, Vector{Method}}() # methods with generators in a module
199199
mods = OrderedSet{Module}() # module of each parameter for a given method

src/snoopi.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export @snoopi
22

3-
const __inf_timing__ = Tuple{Float64,Core.MethodInstance}[]
3+
const __inf_timing__ = Tuple{Float64,MethodInstance}[]
44

55
if isdefined(Core.Compiler, :Params)
66
function typeinf_ext_timed(linfo::Core.MethodInstance, params::Core.Compiler.Params)

0 commit comments

Comments
 (0)