Utility functions for benchmark executables. More...
#include <stdio.h>#include <sys/time.h>#include <sys/resource.h>#include <libxml/encoding.h>#include <libxml/xmlwriter.h>#include "pmm_util.h"Go to the source code of this file.
Macros | |
| #define | XMLENCODING "ISO-8859-1" |
Functions | |
| void | print_xml_results (struct timeval *walltime, struct timeval *usedtime) |
| int | print_xml_time_element (xmlTextWriterPtr writer, const char *name, struct timeval *time) |
| void | print_plain_results (struct timeval *walltime, struct timeval *usedtime) |
| void | pmm_timer_init (long long complexity) |
| void | pmm_timer_destroy () |
| void | pmm_timer_start () |
| void | pmm_timer_stop () |
| void | pmm_timer_result () |
Variables | |
| struct timeval | realtime_start |
| struct timeval | realtime_end |
| struct timeval | realtime_total |
| struct timeval | usedtime_total |
| struct rusage | usage_start |
| struct rusage | usage_end |
| struct rusage | usage_temp |
| long long | pmm_complexity |
Utility functions for benchmark executables.
Code that implements utility functions for benchmark authors
Definition in file pmm_util.c.
| #define XMLENCODING "ISO-8859-1" |
Definition at line 81 of file pmm_util.c.
| void pmm_timer_destroy | ( | ) |
Definition at line 89 of file pmm_util.c.
| void pmm_timer_init | ( | long long | complexity | ) |
Definition at line 83 of file pmm_util.c.
| void pmm_timer_result | ( | ) |
Definition at line 139 of file pmm_util.c.
| void pmm_timer_start | ( | ) |
Definition at line 94 of file pmm_util.c.
| void pmm_timer_stop | ( | ) |
Definition at line 117 of file pmm_util.c.
| void print_plain_results | ( | struct timeval * | walltime, |
| struct timeval * | usedtime | ||
| ) |
Definition at line 270 of file pmm_util.c.
| void print_xml_results | ( | struct timeval * | walltime, |
| struct timeval * | usedtime | ||
| ) |
Definition at line 173 of file pmm_util.c.
| int print_xml_time_element | ( | xmlTextWriterPtr | writer, |
| const char * | name, | ||
| struct timeval * | time | ||
| ) |
Definition at line 236 of file pmm_util.c.
| long long pmm_complexity |
Definition at line 79 of file pmm_util.c.
| struct timeval realtime_end |
Definition at line 69 of file pmm_util.c.
| struct timeval realtime_start |
Definition at line 68 of file pmm_util.c.
| struct timeval realtime_total |
Definition at line 70 of file pmm_util.c.
| struct rusage usage_end |
Definition at line 76 of file pmm_util.c.
| struct rusage usage_start |
Definition at line 75 of file pmm_util.c.
| struct rusage usage_temp |
Definition at line 77 of file pmm_util.c.
| struct timeval usedtime_total |
Definition at line 71 of file pmm_util.c.
1.8.1.2