Skip to content

Commit e0c3614

Browse files
committed
Merge branch 'zhongwencool-master'
2 parents 08b5e9d + dc69604 commit e0c3614

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ all stable changes of the first version of Recon.
2727

2828
*2.x*
2929

30+
- 2.3.5
31+
- fixing timefold's first iteration to prevent errors at call-site
32+
by sleeping before sampling
3033
- 2.3.4
3134
- fixing edoc tag that broke some downstream packaging attempts
3235
- 2.3.3

src/recon.app.src

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{application, recon,
22
[{description, "Diagnostic tools for production use"},
3-
{vsn, "2.3.4"},
3+
{vsn, "2.3.5"},
44
{modules, [recon, recon_alloc, recon_lib, recon_trace]},
55
{registered, []},
66
{applications, [kernel, stdlib]},

src/recon.erl

-7
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,6 @@ proc_fake([_|T1], [H|T2]) ->
253253

254254
%% @doc Fetches a given attribute from all processes (except the
255255
%% caller) and returns the biggest `Num' consumers.
256-
%% @todo Implement this function so it only stores `Num' entries in
257-
%% memory at any given time, instead of as many as there are
258-
%% processes.
259256
-spec proc_count(AttributeName, Num) -> [proc_attrs()] when
260257
AttributeName :: atom(),
261258
Num :: non_neg_integer().
@@ -535,10 +532,6 @@ port_types() ->
535532
%% of packets sent, received, or both (`send_cnt', `recv_cnt', `cnt',
536533
%% respectively). Individual absolute values for each metric will be returned
537534
%% in the 3rd position of the resulting tuple.
538-
%%
539-
%% @todo Implement this function so it only stores `Num' entries in
540-
%% memory at any given time, instead of as many as there are
541-
%% processes.
542535
-spec inet_count(AttributeName, Num) -> [inet_attrs()] when
543536
AttributeName :: 'recv_cnt' | 'recv_oct' | 'send_cnt' | 'send_oct'
544537
| 'cnt' | 'oct',

src/recon_lib.erl

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ time_map(N, Interval, Fun, State, MapFun) ->
205205
time_fold(0, _, _, _, _, Acc) ->
206206
Acc;
207207
time_fold(N, Interval, Fun, State, FoldFun, Init) ->
208-
{Res, NewState} = Fun(State),
209208
timer:sleep(Interval),
209+
{Res, NewState} = Fun(State),
210210
Acc = FoldFun(Res,Init),
211211
time_fold(N-1,Interval,Fun,NewState,FoldFun,Acc).
212212

0 commit comments

Comments
 (0)