diff_priv/analysis/cluster_analyser.rs
1/// Analyses the behaviour of creating and deleting
2/// the clusters throughout algorithms lifetime
3#[derive(Default)]
4pub struct ClusterAnalyser {
5 pub delete_counter: i32,
6 pub create_counter: i32,
7}
8
9impl ClusterAnalyser {
10 pub fn add_count(&mut self) {
11 self.create_counter += 1;
12 }
13
14 pub fn remove_count(&mut self) {
15 self.delete_counter += 1;
16 }
17}