diff options
author | John Högberg <[email protected]> | 2018-06-20 09:44:32 +0200 |
---|---|---|
committer | John Högberg <[email protected]> | 2018-06-28 09:06:26 +0200 |
commit | c67615343b8ab10f10ffc40eccc24c6ec36cd9cd (patch) | |
tree | 70e3cc93deb74944b19ee603ea71aecd74d63827 /erts/emulator/test/driver_SUITE.erl | |
parent | c7dc896e8897988ccc033e18fa19670ba7160565 (diff) | |
download | otp-c67615343b8ab10f10ffc40eccc24c6ec36cd9cd.tar.gz otp-c67615343b8ab10f10ffc40eccc24c6ec36cd9cd.tar.bz2 otp-c67615343b8ab10f10ffc40eccc24c6ec36cd9cd.zip |
Remove ad-hoc memory use calculations in tests
Diffstat (limited to 'erts/emulator/test/driver_SUITE.erl')
-rw-r--r-- | erts/emulator/test/driver_SUITE.erl | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/erts/emulator/test/driver_SUITE.erl b/erts/emulator/test/driver_SUITE.erl index 7aff3a6ea1..bb76e6f24b 100644 --- a/erts/emulator/test/driver_SUITE.erl +++ b/erts/emulator/test/driver_SUITE.erl @@ -2643,24 +2643,7 @@ wait_deallocations() -> driver_alloc_size() -> wait_deallocations(), - case erlang:system_info({allocator_sizes, driver_alloc}) of - false -> - undefined; - MemInfo -> - CS = lists:foldl( - fun ({instance, _, L}, Acc) -> - {value,{_,MBCS}} = lists:keysearch(mbcs, 1, L), - {value,{_,SBCS}} = lists:keysearch(sbcs, 1, L), - [MBCS,SBCS | Acc] - end, - [], - MemInfo), - lists:foldl( - fun(L, Sz0) -> - {value,{_,Sz,_,_}} = lists:keysearch(blocks_size, 1, L), - Sz0+Sz - end, 0, CS) - end. + erts_debug:alloc_blocks_size(driver_alloc). rpc(Config, Fun) -> case proplists:get_value(node, Config) of |