function_profile(3) MudOS v21c2
(5 Sep 1994)
名称:
function_profile() - 对一个物件取得函数的侧写 (profiling) 信息.
语法:
用法:
返回对 ob 或是 this_object() (如果不予指定 ob ) 的函数侧写信息.
这个函数只有在驱动程序 (driver) 编译时有定义 PROFILE_FUNCTIONS 才有效.
返回值:
此函数返回一个映射变量的数组, 每一个在 ob 中的函数返回的映射格式如下:
/* cpu 时间以微秒 (microsecond) 为单位 */
"self" : cpu_time_spent_in self,
"children" : cpu_time_spent_in_children
])
此处的用途与 CPU 时脉有关, 虽然单位为微秒 (microseconds), 但实际上的精确度要差得多.
参考:
翻译:
Spock @ FF 97.Jul.26. (printed 3/16/95)
回到上一页