ets:i/0
在输出端上打印显示所有 ETS 表的信息
用法:
i() -> `ok`
内部实现:
%% Print info about all tabs on the tty -spec i() -> 'ok'. i() -> hform('id', 'name', 'type', 'size', 'mem', 'owner'), io:format(" -------------------------------------" "---------------------------------------\n"), lists:foreach(fun prinfo/1, tabs()), ok. prinfo(Tab) -> case catch prinfo2(Tab) of {'EXIT', _} -> io:format("~-10s ... unreadable \n", [to_string(Tab)]); ok -> ok end. prinfo2(Tab) -> Name = ets:info(Tab, name), Type = ets:info(Tab, type), Size = ets:info(Tab, size), Mem = ets:info(Tab, memory), Owner = ets:info(Tab, owner), hform(Tab, Name, Type, Size, Mem, is_reg(Owner)).
在输出端上打印显示所有 ETS 表的信息。
ets:i().