Skip to content
Permalink
Browse files
Merge pull request #6 from garazdawi/master
Update for R16B03
  • Loading branch information
ferd committed Dec 13, 2013
2 parents e87e320 + c009363 commit 27c94ed0e1433afda12e48f36ee5fc6ba2466346
Showing 1 changed file with 3 additions and 2 deletions.
@@ -370,7 +370,8 @@ sbcs_to_mbcs(Keyword) ->
%% @doc returns a dump of all allocator settings and values
-spec allocators() -> [allocdata(term())].
allocators() ->
{_libc,_Vsn,Allocators,_Opts} = erlang:system_info(allocator),
UtilAllocators = erlang:system_info(alloc_util_allocators),
Allocators = [sys_alloc,mseg_alloc|UtilAllocators],
%% versions is deleted in order to allow the use of the orddict api,
%% and never really having come across a case where it was useful to know.
[{{A,N},lists:sort(proplists:delete(versions,Props))} ||
@@ -431,7 +432,7 @@ snapshot_save(Filename) ->
%% @doc load a snapshot from a given file. The format of the data in the
%% file can be either the same as output by {@link snapshot_save()},
%% or the output obtained by calling
%% `{erlang:memory(),[{A,erlang:system_info({allocator,A})} || A <- element(3,erlang:system_info(allocator))]}.'
%% `{erlang:memory(),[{A,erlang:system_info({allocator,A})} || A <- erlang:system_info(alloc_util_allocators)++[sys_alloc,mseg_alloc]]}.'
%% and storing it in a file.
%% If the latter option is taken, please remember to add a full stop at the end
%% of the resulting Erlang term, as this function uses `file:consult/1' to load

0 comments on commit 27c94ed

Please sign in to comment.