This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module TraceCalls | |
using Cassette | |
mutable struct Trace | |
level::Int | |
cutoff::Int | |
end | |
Cassette.@context TraceCtx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using PlotlyJS | |
# SVG Path construction | |
addmove!(io, x, y) = write(io, "M $x $y") | |
addlineto!(io, x, y) = write(io, " L $x $y") | |
addclose!(io) = write(io, " Z") | |
""" | |
Makes a set of connected lines that go through the points defined by xs and ys | |
by adding the appropriate SVG commands to the given IO. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
julia> nt_proto_a_names = (:first, :last) | |
(:first, :last) | |
julia> nt_proto_b_names = (:larger, :smaller) | |
(:larger, :smaller) | |
julia> nt_proto_a = NamedTuple{nt_proto_a_names} | |
NamedTuple{(:first, :last),T} where T<:Tuple | |
julia> nt_proto_b = NamedTuple{nt_proto_b_names} |