iPXE
profstat.c File Reference

Profiling. More...

#include <stdio.h>
#include <ipxe/profile.h>
#include <usr/profstat.h>

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.

Detailed Description

Profiling.

Definition in file profstat.c.

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}
#define PROFILERS
Profiler table.
Definition profile.h:55
unsigned long profile_mean(struct profiler *profiler)
Get mean sample value.
Definition profile.c:242
unsigned long profile_stddev(struct profiler *profiler)
Get sample standard deviation.
Definition profile.c:276
A data structure for storing profiling information.
Definition profile.h:27
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
int printf(const char *fmt,...)
Write a formatted string to the console.
Definition vsprintf.c:465

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

Referenced by COMMAND(), profstat_exec(), and run_all_tests().