pike.git / lib / modules / Debug.pmod / Profiling.pmod

version» Context lines:

pike.git/lib/modules/Debug.pmod/Profiling.pmod:168: Inside #if constant(get_profiling_info)
  }   private mixed __when_pike_backend_started = call_out( hide_compile_time, 0.0 );      //! Collect profiling data.   //!   //! This will return the CPU usage, by function, since the last time   //! the function was called.   //!   //! The returned array contains the following entries per entry:   //! @array - //! @item string name + //! @elem string name   //! The name of the function - //! @item float number_of_calls - //! @item float self_time - //! @item float cpu_time - //! @item float self_time% - //! @item float cpu_time% - //! @item string function_line + //! @elem float number_of_calls + //! The number of calls + //! @elem float self_time + //! The self CPU time + //! @elem float cpu_time + //! The self CPU time, including children. + //! @elem float self_time_pct + //! The self CPU time as percentage of total time. + //! @elem float cpu_time_pct + //! The self CPU time, including children, as percentage of total + //! time. + //! @elem string function_line   //! This is the location in the source of the start of the function   //! @endarray   array(array(string|float|int)) get_prof_info(string|array(string)|void include,    string|array(string)|void exclude)   {    array res = ({});    int time_passed = gethrvtime()-last_cpu_used;    mapping as_functions = low_get_prof_info( false );    foreach( as_functions; string key; array v )    {