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

@@ -27,6 +27,7 @@
#include "../common/Allocators.h"
#include "../common/MovingMedian.h"
#include "../common/RingBuffer.h"
#include "../common/Profiler.h"
#include <vector>
#include <memory>
@@ -97,6 +98,8 @@ public:
void classify(const process_t *const mag, // input, of at least binCount bins
Classification *classification) // output, of binCount bins
{
Profiler profiler("BinClassifier::classify");
const int n = m_parameters.binCount;
for (int i = 0; i < n; ++i) {