Closed
Description
I as trying to use SnoopCompile on CxxWrap (see JuliaInterop/CxxWrap.jl#278 for my tiny progress so far; any feedback there from experts is of course welcome ;-) ) and run into the following issue. I am reporting it here since it seems to be in Cthulhu.jl code only, but perhaps that wrong, sorry in that case.
Here is what I did and the error:
$ julia-master
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.7.0-DEV.219 (2021-01-05)
_/ |\__'_|_|_|\__'_| | Commit 399f8ba175* (0 days old master)
|__/ |
(@v1.7) pkg> status
Status `~/.julia/environments/v1.7/Project.toml`
[1f15a43c] CxxWrap v0.11.0
[aa65fe97] SnoopCompile v2.2.1
[e2b509da] SnoopCompileCore v2.2.1
julia> using SnoopCompileCore
julia> invalidations = @snoopr using CxxWrap;
julia> length(invalidations)
8226
julia> using SnoopCompile
julia> trees = invalidation_trees(invalidations);
julia> method_invalidations = trees[end];
julia> root = method_invalidations.backedges[end]
MethodInstance for String(::AbstractString) at depth 0 with 509 children
julia> ascend(root)
ERROR: TypeError: in <:, expected Type, got Vararg{Pair{String, String}}
Stacktrace:
[1] stripType(typ::Any)
@ Cthulhu ~/.julia/packages/Cthulhu/dG9TN/src/backedges.jl:58
[2] nonconcrete_red(typ::Any)
@ Cthulhu ~/.julia/packages/Cthulhu/dG9TN/src/backedges.jl:60
[3] show_tuple_as_call(highlighter::Any, io::IOContext{IOBuffer}, name::Symbol, sig::Type, demangle::Bool, kwargs::Nothing)
@ Cthulhu ~/.julia/packages/Cthulhu/dG9TN/src/backedges.jl:35
[4] show_tuple_as_call(highlighter::Any, io::IOContext{IOBuffer}, name::Symbol, sig::Type)
@ Cthulhu ~/.julia/packages/Cthulhu/dG9TN/src/backedges.jl:4
[5] callstring(io::IOBuffer, mi::SnoopCompile.InstanceNode)
@ Cthulhu ~/.julia/packages/Cthulhu/dG9TN/src/backedges.jl:95
[6] treelist!(parent::FoldingTrees.Node{Cthulhu.Data{Core.MethodInstance}}, io::IOBuffer, mi::SnoopCompile.InstanceNode, indent::String, visited::Base.IdSet{Core.MethodInstance})
@ Cthulhu ~/.julia/packages/Cthulhu/dG9TN/src/backedges.jl:124
[7] treelist!(parent::FoldingTrees.Node{Cthulhu.Data{Core.MethodInstance}}, io::IOBuffer, mi::SnoopCompile.InstanceNode, indent::String, visited::Base.IdSet{Core.MethodInstance})
@ Cthulhu ~/.julia/packages/Cthulhu/dG9TN/src/backedges.jl:126
[8] treelist(mi::SnoopCompile.InstanceNode)
@ Cthulhu ~/.julia/packages/Cthulhu/dG9TN/src/backedges.jl:117
[9] ascend(mi::SnoopCompile.InstanceNode)
@ Cthulhu ~/.julia/packages/Cthulhu/dG9TN/src/Cthulhu.jl:285
[10] top-level scope
@ REPL[11]:1
Metadata
Metadata
Assignees
Labels
No labels