topolarity / Tracy.jl

A convenient interface for using Tracy from within Julia code
MIT License
29 stars 3 forks source link

allow setting the color via a literal #21

Closed KristofferC closed 1 year ago

KristofferC commented 1 year ago

Incremental step towards #20

I wonder why compile time is so bad:

julia> @time @tracepoint "sqrt" color=:green sqrt(x) # green
  5.353853 seconds (16.43 M allocations: 1023.168 MiB, 6.47% gc time, 100.00% compilation time)

Edit: Nvm, it is sqrt(x) which is slow when x is a matrix

julia> @time sqrt(x)
  5.598828 seconds (17.48 M allocations: 1.068 GiB, 6.48% gc time, 100.00% compilation time)