Method Debug.Profiling.get_prof_info()


Method get_prof_info

array(array(string|float|int)) get_prof_info(string|array(string)|void include, string|array(string)|void exclude)

Description

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
string name

The name of the function.

int number_of_calls

The number of calls.

float total_self_time

Total self CPU time in milliseconds.

float total_cpu_time

Total self CPU time in milliseconds, including children.

float avg_self_time

Average self CPU time in microseconds.

float avg_cpu_time

Average self CPU time in microseconds, including children.

float self_time_pct

The self CPU time as percentage of total time.

float cpu_time_pct

The self CPU time, including children, as percentage of total time.

string function_line

Function's definition source location.