summaryrefslogtreecommitdiffstats
path: root/Whisper/Utils
diff options
context:
space:
mode:
authorKonstantin <const@const.me>2023-01-16 19:41:42 +0100
committerKonstantin <const@const.me>2023-01-16 19:41:42 +0100
commitaaeab774c3c8e30b2925620fc3d2a34e5f53be4c (patch)
treeb70655af9f6199aa0e59f87dac9c98183be93f7e /Whisper/Utils
parent00fa441b1cfbc4fa9cdab45cb9ed4ff115c402b0 (diff)
Bugfix: when processing files, “Run” CPU block was erroneously measured twice
Diffstat (limited to 'Whisper/Utils')
-rw-r--r--Whisper/Utils/ProfileCollection.cpp1
-rw-r--r--Whisper/Utils/ProfileCollection.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/Whisper/Utils/ProfileCollection.cpp b/Whisper/Utils/ProfileCollection.cpp
index eaf737c..a463655 100644
--- a/Whisper/Utils/ProfileCollection.cpp
+++ b/Whisper/Utils/ProfileCollection.cpp
@@ -49,6 +49,7 @@ namespace
{
#define V(x) case eCpuBlock::x: return #x
V( LoadModel );
+ V( RunComplete );
V( Run );
V( Callbacks );
V( Spectrogram );
diff --git a/Whisper/Utils/ProfileCollection.h b/Whisper/Utils/ProfileCollection.h
index a03319e..3d25609 100644
--- a/Whisper/Utils/ProfileCollection.h
+++ b/Whisper/Utils/ProfileCollection.h
@@ -15,6 +15,7 @@ namespace Whisper
enum struct eCpuBlock : uint8_t
{
LoadModel,
+ RunComplete,
Run,
Callbacks,
Spectrogram,