er_print 命令在此发行版中进行了如下更改:
新增的用于控制“调用方-被调用方”列表的命令现在支持调用栈构建。新增的 er_print 子命令 cprepend、cappend、crmfirst 和 crmlast 可从您正在构建的调用栈片段中添加或删除函数。在每个命令后面,会写入当前片段的调用方-被调用方数据。
新增的 calltree 命令用于输出目标的动态调用图,该图显示了所有函数的分层度量。
新增的 describe 命令介绍了实验中记录的数据,并输出可用于过滤的标记。
热点编译代码的“源”和“反汇编”会利用更好的映射(如果已记录)。
通过 er_print 命令,现在您可以比较在同一可执行文件上收集的实验。此功能仅部分实现,可能会在后续发行版中有所更改。在当前发行版中,比较试验功能按如下所示运行:
在两个或多个实验或实验组上调用 er_print 时,将聚集数据。
如果将 compare on 放置在您的 .er.rc 文件,并在两个或多个实验或实验组上运行 er_print,数据将以比较模式显示。
在比较模式中,实验或实验组中的数据显示在“函数”列表、“调用方-被调用方”列表和“反汇编”列表中的相邻列中。这些列按照实验或实验组的加载顺序显示,另有标题行显示实验或实验组名称。可使用 compare 命令启用和禁用比较模式。