Skip to content

Commit 1d5e60b

Browse files
committed
Fix docs
1 parent 043fbdd commit 1d5e60b

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

src/tr.erl

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,15 +479,19 @@ incomplete_ranges(#{}, complete) ->
479479
incomplete_ranges(#{pid_states := States}, Output) when Output =:= all; Output =:= incomplete ->
480480
lists:sort([Range || #{trace := Range} <- maps:values(States)]).
481481

482+
%% @doc Prints sorted function call statistics for the selected traces from `tab()'.
483+
%%
484+
%% The statistics are sorted according to {@link acc_time()}, descending.
485+
%% @see sorted_call_stat/1
486+
%% @see print_sorted_call_stat/2
482487
-spec print_sorted_call_stat(selector(_)) -> ok.
483488
print_sorted_call_stat(KeyF) ->
484489
pretty_print_tuple_list(sorted_call_stat(KeyF)).
485490

486491
%% @doc Prints sorted function call statistics for the selected traces from `tab()'.
487492
%%
488-
%% The statistics are sorted according to {@link acc_time()}, descending.
489-
%% Only top `Limit' rows are printed.
490-
%% @see sorted_call_stat/1
493+
%% The results can be sorted by call count or acc/own time, descending or ascending.
494+
%% @see sorted_call_stat/2
491495
-spec print_sorted_call_stat(selector(_), sorted_call_stat_options()) -> ok.
492496
print_sorted_call_stat(KeyF, Options) ->
493497
pretty_print_tuple_list(sorted_call_stat(KeyF, Options)).

0 commit comments

Comments
 (0)