Skip to content

Commit

Permalink
Left-click shows full specialization (#164)
Browse files Browse the repository at this point in the history
This is primarily intended to support SnoopCompile
  • Loading branch information
timholy authored Dec 26, 2020
1 parent 5e93ef9 commit 0e81c55
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ProfileView.jl
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,11 @@ function viewprof(fcolor, c, gsig; fontsize=14)
sf = gettag(tagimg, xu, yu)
if sf != StackTraces.UNKNOWN
if btn.button == 1
println(sf.file, ", ", sf.func, ": line ", sf.line)
if sf.linfo isa Core.MethodInstance
println(sf.file, ':', sf.line, ", ", sf.linfo)
else
println(sf.file, ':', sf.line, ", ", sf.func, " [inlined]")
end
elseif btn.button == 3
edit(string(sf.file), sf.line)
end
Expand Down

0 comments on commit 0e81c55

Please sign in to comment.