Add profile points; switch to microseconds

This commit is contained in:
Chris Cannam
2022-07-14 10:02:39 +01:00
parent 7179c2626c
commit dc74c993cf
7 changed files with 85 additions and 43 deletions

View File

@@ -28,6 +28,7 @@
#include "../common/HistogramFilter.h"
#include "../common/mathmisc.h"
#include "../common/Profiler.h"
#include <vector>
@@ -65,6 +66,9 @@ public:
}
Segmentation segment(const BinClassifier::Classification *classification) {
Profiler profiler("BinSegmenter::segment");
int n = m_parameters.binCount;
for (int i = 0; i < n; ++i) {
switch (classification[i]) {