iPXE
Functions
profstat.h File Reference

Profiling. More...

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 
 FILE_SECBOOT (PERMITTED)
 
void profstat (void)
 Print profiling statistics. More...
 

Detailed Description

Profiling.

Definition in file profstat.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ FILE_SECBOOT()

FILE_SECBOOT ( PERMITTED  )

◆ profstat()

void profstat ( void  )

Print profiling statistics.

Definition at line 41 of file profstat.c.

41  {
42  struct profiler *profiler;
43 
45  printf ( "%s: %ld +/- %ld ticks (%d samples)\n",
48  }
49 }
unsigned long profile_mean(struct profiler *profiler)
Get mean sample value.
Definition: profile.c:242
int printf(const char *fmt,...)
Write a formatted string to the console.
Definition: vsprintf.c:465
A data structure for storing profiling information.
Definition: profile.h:27
unsigned long profile_stddev(struct profiler *profiler)
Get sample standard deviation.
Definition: profile.c:276
const char * name
Name.
Definition: profile.h:29
unsigned int count
Number of samples.
Definition: profile.h:35
#define for_each_table_entry(pointer, table)
Iterate through all entries within a linker table.
Definition: tables.h:386
#define PROFILERS
Profiler table.
Definition: profile.h:55

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

Referenced by profstat_exec(), and run_all_tests().