-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstrument.cpp
39 lines (31 loc) · 1.22 KB
/
instrument.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
37
38
39
#include "instrument.h"
#include <iostream>
using namespace std;
unsigned n_lo_density_centers = 0;
unsigned n_ok_density_centers = 0;
unsigned n_non_zero_lengths = 0;
unsigned n_total_visited = 0;
unsigned n_far_enough_away = 0;
unsigned n_planelike_nodes = 0;
unsigned n_non_planelike_nodes = 0;
unsigned n_beta_nodes = 0;
unsigned n_total_hashed_pts = 0;
unsigned n_rejected_as_too_close = 0;
unsigned n_eigen_successes = 0;
unsigned n_eigen_failures = 0;
void dump_instrument_vars(ostream& os)
{
os << "n_total_visited: " << n_total_visited << '\n'
<< "lo densities: " << n_lo_density_centers << '\n'
<< "ok densities: " << n_ok_density_centers << '\n'
<< "n_non_zero_lengths: " << n_non_zero_lengths << '\n'
<< "n_far_enough_away: " << n_far_enough_away << '\n'
<< "n_planelike_nodes: " << n_planelike_nodes << '\n'
<< "n_non_planelike_nodes: " << n_non_planelike_nodes << '\n'
<< "n_beta_nodes: " << n_beta_nodes << '\n'
<< "n_total_hashed_pts: " << n_total_hashed_pts << '\n'
<< "n_rejected_as_too_close: " << n_rejected_as_too_close << '\n'
<< "eigen successes: " << n_eigen_successes << '\n'
<< "eigen failures: " << n_eigen_failures << '\n'
<< endl;
}