-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathstat.cpp
36 lines (29 loc) · 1.3 KB
/
stat.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
// (c) 2016 by University of Delaware, Argonne National Laboratory, San Diego
// Supercomputer Center, National University of Defense Technology,
// National Supercomputer Center in Guangzhou, and Sun Yat-sen University.
//
// See COPYRIGHT in top-level directory.
//
#include "stat.h"
double init_wtime = 0;
Profiler_info profiler_info;
double *profiler_timer = NULL;
uint64_t *profiler_counter = NULL;
char timestr[1024];
const char *timer_str[TIMER_NUM]
= {"total_time", "pfs_input_time", "pfs_output_time",
"mpi_a2a_time", "mpi_a2av_time", "mpi_rdc_time",
"mpi_block_time", "mpi_barrier_time", "mpi_allgather_time",
"mpi_allgatherv_time", "mem_allocate_time", "lb_check_time",
"lb_rp_time", "lb_migrate_time", "lb_split_time"};
const char *counter_str[COUNTER_NUM] = {
"comm_bufs", "shuffle_times", "send_bytes", "recv_bytes",
"file_count", "file_size", "max_file", "output_size",
"send_tail", "recv_tail", "balance_times", "split_keys",
"redirect_bins", "max_bin_size", "migrate_kvs", "max_kvs",
"max_kmvs", "max_kv_pages", "max_kmv_pages", "hash_bucket",
"peakmem_use",
};
Tracker_info tracker_info;
std::vector<std::pair<std::string, double>> *tracker_event = NULL;