Method get_profiling_info()
- Method
get_profiling_info
array(int|mapping(string:array(int))) get_profiling_info(programprog)- Description
Get profiling information.
- Returns
Returns an array with two elements.
Array intnum_clonesThe first element is the number of times the program
proghas been instantiated.mapping(string:array(int))fun_prof_infoThe second element is mapping from function name to an array with three elements.
Array intnum_callsThe first element is the number of times the function has been called.
inttotal_timeThe second element is the total time (in milliseconds) spent executing this function, and any functions called from it.
intself_timeThe third element is the time (in milliseconds) actually spent in this function so far.
- Note
This function is only available if the runtime was compiled with the option --with-profiling.