Skip to content
Permalink
Browse files
Make recon_alloc:allocators/0 more efficient
  • Loading branch information
paulgray committed Jan 29, 2014
1 parent a073ff9 commit e3b56b994958cb5de1c60fd32ec7a3908dec1da8
Showing 1 changed file with 3 additions and 2 deletions.
@@ -376,8 +376,9 @@ allocators() ->
%% and never really having come across a case where it was useful to know.
[{{A,N},lists:sort(proplists:delete(versions,Props))} ||
A <- Allocators,
erlang:system_info({allocator,A}) =/= false,
{_,N,Props} <- erlang:system_info({allocator,A})].
Allocs <- [erlang:system_info({allocator,A})],
Allocs =/= false,
{_,N,Props} <- Allocs].

%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Snapshot handling %%%

0 comments on commit e3b56b9

Please sign in to comment.