diff options
author | Kshitij Sisodia <kshitij.sisodia@arm.com> | 2021-10-22 17:35:01 +0100 |
---|---|---|
committer | Kshitij Sisodia <kshitij.sisodia@arm.com> | 2021-10-22 17:38:12 +0100 |
commit | 14ab8d447c5f12df2ac7fd4217fc0d2005b02dca (patch) | |
tree | 79514cdf3298633544c15c54c11675507fb4b6be /source/application/main/Profiler.cc | |
parent | 5cbcd9e2c85485db1fe8cf7b2445550e9dc36800 (diff) | |
download | ml-embedded-evaluation-kit-14ab8d447c5f12df2ac7fd4217fc0d2005b02dca.tar.gz |
MLECO-2489: Minor addition for PlatformMath
Adding sine function and allowing FFTs to be computed for cases where
the FFT len is not a power of 2. In this case, the naive implementation
is used. Option for computing FFT for a complex vector has also been
added, although, the CMSIS-DSP flow needs to be tested.
Change-Id: Iad9902b946f3088de91a5f67acfb4cb3d0b00457
Diffstat (limited to 'source/application/main/Profiler.cc')
-rw-r--r-- | source/application/main/Profiler.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/application/main/Profiler.cc b/source/application/main/Profiler.cc index 5d2c23f..fe3aeaf 100644 --- a/source/application/main/Profiler.cc +++ b/source/application/main/Profiler.cc @@ -242,6 +242,11 @@ namespace app { void Profiler::AddProfilingUnit(time_counter start, time_counter end, const std::string& name) { + if (!this->m_pPlatform) { + printf_err("Invalid platform\n"); + return; + } + platform_timer * timer = this->m_pPlatform->timer; struct ProfilingUnit unit; @@ -273,4 +278,4 @@ namespace app { } } /* namespace app */ -} /* namespace arm */
\ No newline at end of file +} /* namespace arm */ |