我可以获取当前已加载的所有模块的列表吗? [英] Can I get a list of all the modules that are currently loaded?
问题描述
module_info将告诉我有关模块的一些知识-只要我知道模块的名称即可。我需要查找其名称满足特定条件的所有模块(例如companyname_creator_serialnumber。)我记得读过某个erlang存储此信息的地方,但是我正在寻找一种检索它的方法。
module_info will tell me quite a bit of what I need to know about a module - provided that I know its name. I have a need to find all modules whose names meet specific criteria (like companyname_creator_serialnumber.) I remember reading somewhere that erlang stores this information, but I am looking for a way to retrieve it.
编辑:
all_loaded()返回所有已加载的模块,但是如果我要查找的模块尚未被引用,它将返回不在列表中。
all_loaded() returns all the modules that have been loaded, but if the module I'm looking for hasn't been referenced yet, it isn't in the all_loaded list.
推荐答案
这是您要查找的内容吗?
Is this what you are looking for?
code:all_loaded().
这篇关于我可以获取当前已加载的所有模块的列表吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!