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
7568c29d
Commit
7568c29d
authored
14 years ago
by
Sven Kaulmann
Browse files
Options
Downloads
Patches
Plain Diff
Added missing includes to profiler, removed Logger from OutputCommon
parent
449a63c1
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
+3
-2
3 additions, 2 deletions
stuff/profiler.hh
with
3 additions
and
2 deletions
stuff/profiler.hh
+
3
−
2
View file @
7568c29d
...
@@ -10,6 +10,8 @@
...
@@ -10,6 +10,8 @@
#include
<boost/format.hpp>
#include
<boost/format.hpp>
#include
"misc.hh"
#include
"misc.hh"
#include
"filesystem.hh"
#include
"parametercontainer.hh"
//! wraps name, start- and end time for one timing section
//! wraps name, start- and end time for one timing section
struct
TimingData
struct
TimingData
...
@@ -105,7 +107,6 @@ public:
...
@@ -105,7 +107,6 @@ public:
**/
**/
void
Reset
(
const
int
numRuns
)
void
Reset
(
const
int
numRuns
)
{
{
Logger
().
Dbg
()
<<
"preparing profiler for "
<<
numRuns
<<
" runs"
<<
std
::
endl
;
m_timings
.
clear
();
m_timings
.
clear
();
m_timings
=
MapVector
(
numRuns
,
DataMap
());
m_timings
=
MapVector
(
numRuns
,
DataMap
());
m_total_runs
=
numRuns
;
m_total_runs
=
numRuns
;
...
@@ -267,7 +268,7 @@ long Profiler::OutputCommon(CollectiveCommunication& comm, InfoContainer& run_in
...
@@ -267,7 +268,7 @@ long Profiler::OutputCommon(CollectiveCommunication& comm, InfoContainer& run_in
assert
(
run_infos
.
size
()
>=
m_timings
.
size
());
assert
(
run_infos
.
size
()
>=
m_timings
.
size
());
for
(;
ti_it
!=
m_timings
.
end
();
++
ti_it
)
{
for
(;
ti_it
!=
m_timings
.
end
();
++
ti_it
)
{
RunInfo
info
=
run_infos
[
idx
];
RunInfo
info
=
run_infos
[
idx
];
csv
<<
info
.
refine_level
<<
"
\t
"
<<
comm
.
size
()
<<
"
\t
"
<<
info
.
codim0
<<
"
\t
"
<<
-
1
/*fake L2 error*/
<<
"
\t
"
;
csv
<<
info
.
refine_level
<<
"
\t
"
<<
comm
.
size
()
<<
"
\t
"
<<
info
.
codim0
<<
"
\t
"
<<
info
.
L2Errors
[
0
]
<<
"
\t
"
;
const
DataMap
&
data_map
=
*
ti_it
;
const
DataMap
&
data_map
=
*
ti_it
;
for
(
DataMap
::
const_iterator
it
=
data_map
.
begin
();
it
!=
data_map
.
end
();
++
it
)
{
for
(
DataMap
::
const_iterator
it
=
data_map
.
begin
();
it
!=
data_map
.
end
();
++
it
)
{
...
...
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