timholy / SnoopCompile.jl

Provide insights about latency (TTFX) for Julia packages
https://timholy.github.io/SnoopCompile.jl/dev/
Other
309 stars 48 forks source link

Allow `flatten_times` to return unsorted #179

Closed timholy closed 3 years ago

timholy commented 3 years ago

When analyzing the overhead of specialization, sometimes you want to distinguish the first run (or first run with concrete signature) from later runs. Consequently it can be useful to extract the flattened times in the order in which inference happened.

This also switches to a depth-first algorithm for searching the graph, as required to support sorted=false.