Skip to content
Snippets Groups Projects
Commit bc0985f9 authored by René Fritze's avatar René Fritze
Browse files

profiler: fix wrong assert

parent a9889b7c
No related branches found
No related tags found
No related merge requests found
......@@ -103,12 +103,13 @@ public:
//! get runtime of section in seconds
long GetTiming(const std::string section_name) const
{
assert(m_cur_run_num < m_timings.size());
return GetTiming(section_name, m_cur_run_num);
}
long GetTiming(const std::string section_name, const int run_number) const
{
assert(m_cur_run_num < m_timings.size());
assert(run_number < m_timings.size());
const DataMap& data = m_timings[run_number];
DataMap::const_iterator section = data.find(section_name);
if (section == data.end()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment