diff options
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 */ |