Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-xt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ag-ohlberger
dune-community
dune-xt
Commits
bc0985f9
Commit
bc0985f9
authored
14 years ago
by
René Fritze
Browse files
Options
Downloads
Patches
Plain Diff
profiler: fix wrong assert
parent
a9889b7c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
stuff/profiler.hh
+2
-1
2 additions, 1 deletion
stuff/profiler.hh
with
2 additions
and
1 deletion
stuff/profiler.hh
+
2
−
1
View file @
bc0985f9
...
...
@@ -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_num
ber
<
m_timings
.
size
());
const
DataMap
&
data
=
m_timings
[
run_number
];
DataMap
::
const_iterator
section
=
data
.
find
(
section_name
);
if
(
section
==
data
.
end
())
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment