-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathprofiling.i
51 lines (51 loc) · 1.58 KB
/
profiling.i
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
///** @file
// *****************************************************************************
//
// Declaration of functions for profiling code blocks.
//
// Reports time, operation counts, memory usage, and others.
//
// *****************************************************************************
// * @author This file is part of libff, developed by SCIPR Lab
// * and contributors (see AUTHORS).
// * @copyright MIT license (see LICENSE file)
// *****************************************************************************/
//
//#ifndef PROFILING_HPP_
//#define PROFILING_HPP_
//
//#include <cstddef>
//#include <map>
//#include <string>
//#include <vector>
//
namespace libff {
//
//void start_profiling();
//long long get_nsec_time();
//void print_time(const char* msg);
//void print_header(const char* msg);
//
//void print_indent();
//
extern bool inhibit_profiling_info;
//extern bool inhibit_profiling_counters;
//extern std::map<std::string, size_t> invocation_counts;
//extern std::map<std::string, long long> last_times;
//extern std::map<std::string, long long> cumulative_times;
//
//void clear_profiling_counters();
//
//void print_cumulative_time_entry(const std::string &key, const long long factor=1);
//void print_cumulative_times(const long long factor=1);
//void print_cumulative_op_counts(const bool only_fq=false);
//
//void enter_block(const std::string &msg, const bool indent=true);
//void leave_block(const std::string &msg, const bool indent=true);
//
//void print_mem(const std::string &s = "");
//void print_compilation_info();
//
} // libff
//
//#endif // PROFILING_HPP_