# HG changeset patch # User Chris Cannam # Date 1538154484 -3600 # Node ID ca43af0dcab763328040c991ea8a42d354f5cf63 # Parent 1f72a44f5638436ad25a2c1ccf8bcc858d46058e Profiler diff -r 1f72a44f5638 -r ca43af0dcab7 data/model/WaveformOversampler.cpp --- a/data/model/WaveformOversampler.cpp Fri Sep 28 18:08:00 2018 +0100 +++ b/data/model/WaveformOversampler.cpp Fri Sep 28 18:08:04 2018 +0100 @@ -14,6 +14,8 @@ #include "WaveformOversampler.h" +#include "base/Profiler.h" + #include "data/model/DenseTimeValueModel.h" floatvec_t @@ -23,6 +25,8 @@ sv_frame_t sourceFrameCount, int oversampleBy) { + Profiler profiler("WaveformOversampler::getOversampledData"); + // Oversampled at a fixed ratio of m_filterRatio floatvec_t fixedRatio = getFixedRatioData(source, channel, sourceStartFrame, @@ -54,6 +58,8 @@ sv_frame_t sourceStartFrame, sv_frame_t sourceFrameCount) { + Profiler profiler("WaveformOversampler::getFixedRatioData"); + sv_frame_t sourceLength = source->getEndFrame(); if (sourceStartFrame + sourceFrameCount > sourceLength) {