iPXE
Functions
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)
 
void profstat (void)
 Print profiling statistics. More...
 

Detailed Description

Profiling.

Definition in file profstat.c.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ profstat()

void profstat ( void  )

Print profiling statistics.

Definition at line 40 of file profstat.c.

40  {
41  struct profiler *profiler;
42 
44  printf ( "%s: %ld +/- %ld ticks (%d samples)\n",
47  }
48 }
unsigned long profile_mean(struct profiler *profiler)
Get mean sample value.
Definition: profile.c:241
int printf(const char *fmt,...)
Write a formatted string to the console.
Definition: vsprintf.c:464
A data structure for storing profiling information.
Definition: profile.h:26
unsigned long profile_stddev(struct profiler *profiler)
Get sample standard deviation.
Definition: profile.c:275
const char * name
Name.
Definition: profile.h:28
unsigned int count
Number of samples.
Definition: profile.h:34
#define for_each_table_entry(pointer, table)
Iterate through all entries within a linker table.
Definition: tables.h:358
#define PROFILERS
Profiler table.
Definition: profile.h:54

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

Referenced by profstat_exec(), and run_all_tests().