Profiling TCL/TK 信息解释

Profiling TCL/TK information explanation

我正在寻找有关数据的信息:

Profiling information for ::isect_lineplane
============================================================
            Total calls:  938
    Caller distribution:
  ::IntersectionPoint:  938
           Compile time:  378
          Total runtime:  141009
        Average runtime:  150
          Runtime StDev:  31
         Runtime cov(%):  20.7
  Total descendant time:  57009
Average descendant time:  60
Descendants:
  ::add_v3v3:  938
  ::dot_v3v3:  1876
  ::mul_v3:  938
  ::sub_v3v3:  1876

我用的是profiler Tcllib,但是我看不懂out的信息。特别是:

你能给我解释一下吗?

  • 编译时间:Tcl 程序在第一次调用时被编译为字节码。这是程序第一次调用的运行时间,包括编译的时间。
  • 平均 运行时间:经过多次调用,这是 运行 过程所花费的平均时间。
  • Runtime StDev:这是运行时间值的标准偏差参数。如果您了解统计数据,那么这个数字会告诉您比您不知道的更多信息。基本上,这个数字越小,运行时间的变化就越小。
  • 后代总时间:后代是这个过程调用的过程,以及它们调用的过程,等等。这是执行后代过程所花费的时间。
  • 平均后代时间:这是平均值。