iPXE
Functions
profstat.h File Reference

Profiling. More...

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
void profstat (void)
 Print profiling statistics.

Detailed Description

Profiling.

Definition in file profstat.h.


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )
void profstat ( void  )

Print profiling statistics.

Definition at line 40 of file profstat.c.

References profiler::count, for_each_table_entry, profiler::name, printf(), profile_mean(), profile_stddev(), and PROFILERS.

Referenced by profstat_exec(), and run_all_tests().

                       {
        struct profiler *profiler;

        for_each_table_entry ( profiler, PROFILERS ) {
                printf ( "%s: %ld +/- %ld ticks (%d samples)\n",
                         profiler->name, profile_mean ( profiler ),
                         profile_stddev ( profiler ), profiler->count );
        }
}