#include <string.h>
#include <core/tx.h>
#include <core/txdesc.h>
#include <core/stats.h>
#include <core/config.h>
#include <misc/hash_table.h>
#include <misc/generic_types.h>
#include <misc/malloc.h>
#include <misc/mutex.h>
#include <misc/debug.h>
Go to the source code of this file.
Definition in file stats.c.
#define RESETSTAT | ( | name | ) |
Value:
txstat->total_stats[txc_stats_##name##_stat].total = 0; \ txstat->total_stats[txc_stats_##name##_stat].min = 0xFFFFFFFF; \ txstat->total_stats[txc_stats_##name##_stat].max = 0;
void txc_stats_print | ( | txc_statsmgr_t * | statsmgr | ) |
Prints a statistics report.
Summarizes statistics and prints a report into the statistics file. Print the statistics report in the same format as the Intel STM's one to avoid duplicating post-processing scripts.
[in] | statsmgr | Pointer to the statistics manager collecting the statistics. |
Definition at line 486 of file stats.c.
References txc_statsmgr_s::alloc_threadstat_list_head, txc_stats_threadstat_s::count, txc_stats_txstat_s::count, txc_stats_stat_s::max, txc_stats_stat_s::min, txc_stats_threadstat_s::next, txc_stats_stat_s::total, txc_stats_threadstat_s::total_stats, txc_stats_txstat_s::total_stats, txc_stats_threadstat_s::tx_stats, txc_hash_table_create(), txc_hash_table_iter_init(), txc_hash_table_iter_next(), TXC_R_SUCCESS, txc_runtime_settings, and TXC_STATS_THREADSTAT_HASHTABLE_SIZE.
Referenced by _TXC_global_shutdown().
char* stats_strings[] |