Skip to content

Commit

Permalink
Merge branch 'zhongwencool-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
ferd committed Apr 22, 2018
2 parents 08b5e9d + dc69604 commit e0c3614
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ all stable changes of the first version of Recon.

*2.x*

- 2.3.5
- fixing timefold's first iteration to prevent errors at call-site
by sleeping before sampling
- 2.3.4
- fixing edoc tag that broke some downstream packaging attempts
- 2.3.3
Expand Down
2 changes: 1 addition & 1 deletion src/recon.app.src
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{application, recon,
[{description, "Diagnostic tools for production use"},
{vsn, "2.3.4"},
{vsn, "2.3.5"},
{modules, [recon, recon_alloc, recon_lib, recon_trace]},
{registered, []},
{applications, [kernel, stdlib]},
Expand Down
7 changes: 0 additions & 7 deletions src/recon.erl
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,6 @@ proc_fake([_|T1], [H|T2]) ->

%% @doc Fetches a given attribute from all processes (except the
%% caller) and returns the biggest `Num' consumers.
%% @todo Implement this function so it only stores `Num' entries in
%% memory at any given time, instead of as many as there are
%% processes.
-spec proc_count(AttributeName, Num) -> [proc_attrs()] when
AttributeName :: atom(),
Num :: non_neg_integer().
Expand Down Expand Up @@ -535,10 +532,6 @@ port_types() ->
%% of packets sent, received, or both (`send_cnt', `recv_cnt', `cnt',
%% respectively). Individual absolute values for each metric will be returned
%% in the 3rd position of the resulting tuple.
%%
%% @todo Implement this function so it only stores `Num' entries in
%% memory at any given time, instead of as many as there are
%% processes.
-spec inet_count(AttributeName, Num) -> [inet_attrs()] when
AttributeName :: 'recv_cnt' | 'recv_oct' | 'send_cnt' | 'send_oct'
| 'cnt' | 'oct',
Expand Down
2 changes: 1 addition & 1 deletion src/recon_lib.erl
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ time_map(N, Interval, Fun, State, MapFun) ->
time_fold(0, _, _, _, _, Acc) ->
Acc;
time_fold(N, Interval, Fun, State, FoldFun, Init) ->
{Res, NewState} = Fun(State),
timer:sleep(Interval),
{Res, NewState} = Fun(State),
Acc = FoldFun(Res,Init),
time_fold(N-1,Interval,Fun,NewState,FoldFun,Acc).

Expand Down

0 comments on commit e0c3614

Please sign in to comment.