【发布时间】:2014-06-18 00:39:53
【问题描述】:
我猜到了几个erlang:system_info/1 变体,例如:
10> erlang:system_info(schedulers).
4
11> erlang:system_info(cpu).
** exception error: bad argument
in function erlang:system_info/1
called as erlang:system_info(cpu)
12> erlang:system_info(cpu_arch).
** exception error: bad argument
in function erlang:system_info/1
called as erlang:system_info(cpu_arch)
13> erlang:system_info(memory).
** exception error: bad argument
in function erlang:system_info/1
called as erlang:system_info(memory)
14> erlang:system_info(version).
"5.10.4"
但是有没有办法通过内省或某种全局数据库列出所有可用的 system_info 参数?
【问题讨论】:
标签: erlang environment-variables system introspection