dholm / benchmark-init-el

Benchmark your Emacs initialization
172 stars 31 forks source link

Sort by total ms #10

Closed ylluminarious closed 2 years ago

ylluminarious commented 6 years ago

Can I sort the items in benchmark-init/show-durations-tabulated by total ms rather than ms?

ylluminarious commented 6 years ago

Oh, it seems I can do this by running tabulated-list-sort which is bound to S. From its docstring:

(tabulated-list-sort &optional N)

Sort Tabulated List entries by the column at point.
With a numeric prefix argument N, sort the Nth column.

Unfortunately, it doesn't seem to work quite right as some column items near the bottom have high total ms scores. ms still seems to be the de facto sorting criteria.

dholm commented 6 years ago

I tried it and it appears that whatever I do it only sorts based on the ms column. If I call (tabulated-list-sort 3) it still sorts based on the second column but 0, 1 and 2 work as expected. At the moment I'm not sure what could be causing this.

ylluminarious commented 6 years ago

@dholm Ok, thanks for investigating this.