Hi,
I’m aware there are other ways of viewing profile output, but Profile.print() is pretty handy in a pinch. It would be even handier if the tree was sorted by count.
The docs say that sortedby
“Controls the order in :flat
format”. But I think the code says that the tree view also respects sortedby
(Profile.jl 762-764):
if fmt.sortedby === :count
counts = collect(frame.count for frame in nexts)
p = sortperm(counts)
BUT, it looks like (and the output also looks like) when the tree view sorts by :count
it does it in ascending order of counts. It would be much easier to read the profile output if it was in descending order.
Have I interpreted this correctly? Anything that can be done about it?
Thanks!
Geoff