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

[profiler] disambiguate outputTimings call, change test accordingly

parent 2f27753a
No related branches found
No related tags found
No related merge requests found
...@@ -123,7 +123,7 @@ public: ...@@ -123,7 +123,7 @@ public:
void outputMap(const InfoContainerMap& run_infos_map, const double scale_factor = 1.0) const; void outputMap(const InfoContainerMap& run_infos_map, const double scale_factor = 1.0) const;
//! file-output the named sections only //! file-output the named sections only
void outputTimings(const std::string filename = "timings") const; void outputTimings(const std::string filename) const;
void outputTimings(std::ostream& out = std::cout) const; void outputTimings(std::ostream& out = std::cout) const;
void outputTimingsAll(std::ostream& out = std::cout) const; void outputTimingsAll(std::ostream& out = std::cout) const;
/** call this with correct numRuns <b> before </b> starting any profiling /** call this with correct numRuns <b> before </b> starting any profiling
......
...@@ -107,7 +107,7 @@ TYPED_TEST(MinMaxAvgTest, All) ...@@ -107,7 +107,7 @@ TYPED_TEST(MinMaxAvgTest, All)
EXPECT_TRUE(Dune::FloatCmp::eq(mma.average(), TypeParam(0.0))); EXPECT_TRUE(Dune::FloatCmp::eq(mma.average(), TypeParam(0.0)));
mma(-4); mma(-4);
mmCheck<MinMaxAvg<TypeParam>, TypeParam>(mma); mmCheck<MinMaxAvg<TypeParam>, TypeParam>(mma);
mmb = mma; auto mmb = mma;
mmCheck<MinMaxAvg<TypeParam>, TypeParam>(mmb); mmCheck<MinMaxAvg<TypeParam>, TypeParam>(mmb);
} }
......
...@@ -55,7 +55,8 @@ TEST(ProfilerTest, OutputConstness) ...@@ -55,7 +55,8 @@ TEST(ProfilerTest, OutputConstness)
Profiler::InfoContainerMap info_map; Profiler::InfoContainerMap info_map;
prof.output(infos); prof.output(infos);
prof.outputAveraged(0, 0); prof.outputAveraged(0, 0);
prof.outputTimings(); prof.outputTimings("timings");
prof.outputTimings(DSC::dev_null);
prof.outputMap(info_map); prof.outputMap(info_map);
} }
......
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