timholy / FlameGraphs.jl

Analysis of profiling data using trees
MIT License
51 stars 12 forks source link

`Symbol` is invalid as an `ArgumentError` argument #26

Closed kimikage closed 4 years ago

kimikage commented 4 years ago

This is a trivial issue.

julia> fcolor = FlameColors();

julia> fcolor(:unknown)
ERROR: MethodError: no method matching ArgumentError(::String, ::Symbol)

https://github.com/timholy/FlameGraphs.jl/blob/d2e03690029676d73e57ade983487ea8c97268d4/src/render.jl#L65-L69

https://github.com/timholy/FlameGraphs.jl/blob/d2e03690029676d73e57ade983487ea8c97268d4/src/sfcategory.jl#L74-L78