Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
benchmark
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
benchmark
Commits
e45252e6
Commit
e45252e6
authored
Mar 17, 2015
by
Eric Fiselier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move ConsoleReporter out of internal namespace
parent
d7166022
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
14 deletions
+2
-14
reporter.h
include/benchmark/reporter.h
+0
-7
benchmark.cc
src/benchmark.cc
+1
-1
reporter.cc
src/reporter.cc
+0
-5
filter_test.cc
test/filter_test.cc
+1
-1
No files found.
include/benchmark/reporter.h
View file @
e45252e6
...
...
@@ -78,12 +78,6 @@ class BenchmarkReporter {
virtual
~
BenchmarkReporter
();
};
namespace
internal
{
// ------------------------------------------------------
// Internal implementation details follow; please ignore
// Simple reporter that outputs benchmark data to the console. This is the
// default reporter used by RunSpecifiedBenchmarks().
class
ConsoleReporter
:
public
BenchmarkReporter
{
...
...
@@ -96,6 +90,5 @@ class ConsoleReporter : public BenchmarkReporter {
mutable
size_t
name_field_width_
;
};
}
// end namespace internal
}
// end namespace benchmark
#endif // BENCHMARK_REPORTER_H_
src/benchmark.cc
View file @
e45252e6
...
...
@@ -817,7 +817,7 @@ void RunSpecifiedBenchmarks(const BenchmarkReporter* reporter) {
std
::
string
spec
=
FLAGS_benchmark_filter
;
if
(
spec
.
empty
()
||
spec
==
"all"
)
spec
=
"."
;
// Regexp that matches all benchmarks
internal
::
ConsoleReporter
default_reporter
;
ConsoleReporter
default_reporter
;
internal
::
RunMatchingBenchmarks
(
spec
,
reporter
?
reporter
:
&
default_reporter
);
}
...
...
src/reporter.cc
View file @
e45252e6
...
...
@@ -88,9 +88,6 @@ void ComputeStats(const std::vector<BenchmarkReporter::Run>& reports,
BenchmarkReporter
::~
BenchmarkReporter
()
{}
namespace
internal
{
bool
ConsoleReporter
::
ReportContext
(
const
Context
&
context
)
const
{
name_field_width_
=
context
.
name_field_width
;
...
...
@@ -189,6 +186,4 @@ void ConsoleReporter::PrintRunData(const Run& result) const {
result
.
report_label
.
c_str
());
}
}
// end namespace internal
}
// end namespace benchmark
test/filter_test.cc
View file @
e45252e6
...
...
@@ -21,7 +21,7 @@ double CalculatePi(int depth) {
return
(
pi
-
1.0
)
*
4
;
}
class
TestReporter
:
public
benchmark
::
internal
::
ConsoleReporter
{
class
TestReporter
:
public
benchmark
::
ConsoleReporter
{
public
:
virtual
bool
ReportContext
(
const
Context
&
context
)
const
{
return
ConsoleReporter
::
ReportContext
(
context
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment