Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
profiling.hpp
Go to the documentation of this file.
1
14#ifndef PROFILING_HPP_
15#define PROFILING_HPP_
16
17#include <cstddef>
18#include <map>
19#include <string>
20#include <vector>
21
22namespace libff {
23
24void start_profiling();
25long long get_nsec_time();
26void print_time(const char* msg);
27void print_header(const char* msg);
28
29void print_indent();
30
31extern bool inhibit_profiling_info;
33extern std::map<std::string, size_t> invocation_counts;
34extern std::map<std::string, long long> last_times;
35extern std::map<std::string, long long> cumulative_times;
36
38
39void print_cumulative_time_entry(const std::string &key, const long long factor=1);
40void print_cumulative_times(const long long factor=1);
41void print_cumulative_op_counts(const bool only_fq=false);
42
43void enter_block(const std::string &msg, const bool indent=true);
44void leave_block(const std::string &msg, const bool indent=true);
45
46void print_mem(const std::string &s = "");
48
49} // libff
50
51#endif // PROFILING_HPP_
void clear_profiling_counters()
Definition profiling.cpp:98
std::map< std::string, size_t > invocation_counts
Definition profiling.cpp:64
void print_mem(const std::string &s)
std::map< std::string, long long > cumulative_times
Definition profiling.cpp:67
void start_profiling()
Definition profiling.cpp:56
void print_cumulative_op_counts(const bool only_fq)
void print_time(const char *msg)
void print_header(const char *msg)
void enter_block(const std::string &msg, const bool indent)
void print_cumulative_time_entry(const std::string &key, const long long factor)
long long get_nsec_time()
Definition profiling.cpp:32
bool inhibit_profiling_info
Definition profiling.cpp:95
void print_cumulative_times(const long long factor)
std::map< std::string, long long > last_times
Definition profiling.cpp:66
bool inhibit_profiling_counters
Definition profiling.cpp:96
void leave_block(const std::string &msg, const bool indent)
void print_compilation_info()
void print_indent()
char * s