1. function_profile(3) LP MudOSv21c7 (7 Jul 1996)
    2. 函数名称:
    3. function_profile() - 对一个物件取得函式的侧写
    4. (profiling) 资讯.
    5. 函数语法:
    6. mixed *function_profile( object ob );
    7. 混合 *function_profile( 物件 ob );
    8. 函数用法:
    9. 传回对 ob 或是 this_object() (如果不予指定 ob )
    10. 函式侧写资讯. 这个函式只有在驱动程式 (driver) 编译
    11. 时有定义 PROFILE_FUNCTIONS 才有效.
    12. 传回值:
    13. 此函式传回一个映射变数的阵列, 每一个在 ob 中的函式
    14. 传回的映射格式如下:
    15. ([ "name" : 函式的名称,
    16. "calls" : 呼叫的次数,
    17. /* cpu 时间以微秒 (microsecond) 为单位 */
    18. "self" : cpu_time_spent_in self,
    19. "children" : cpu_time_spent_in_children
    20. ])
    21. 此处的用途与 CPU 时脉有关, 虽然单位为微秒
    22. (microseconds), 但实际上的精确度要差得多.
    23. 参考函数:
    24. rusage(3), time_expression(3), opcprof(3)
    25. 手册翻译:
    26. Phoebus@ZH 97.Jul.26. (Writen 5/23/97)