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
5b7683f4
Commit
5b7683f4
authored
Jul 15, 2017
by
Dominic Hamon
Committed by
GitHub
Jul 15, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more clang tidy cleanups (#417)
parent
e8fc2a2b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
benchmark.h
include/benchmark/benchmark.h
+6
-5
csv_reporter.cc
src/csv_reporter.cc
+1
-1
No files found.
include/benchmark/benchmark.h
View file @
5b7683f4
...
...
@@ -382,16 +382,17 @@ namespace internal {
class
ThreadTimer
;
class
ThreadManager
;
enum
ReportMode
#if defined(BENCHMARK_HAS_CXX11)
enum
ReportMode
:
unsigned
{
:
unsigned
#else
enum
ReportMode
{
#endif
{
RM_Unspecified
,
// The mode has not been manually specified
RM_Default
,
// The mode is user-specified as default.
RM_ReportAggregatesOnly
};
}
}
// namespace internal
// State is passed to a running Benchmark and contains state for the
// benchmark to use.
...
...
@@ -815,7 +816,7 @@ class LambdaBenchmark : public Benchmark {
};
#endif
}
//
end
namespace internal
}
// namespace internal
inline
internal
::
Benchmark
*
RegisterBenchmark
(
const
char
*
name
,
internal
::
Function
*
fn
)
{
...
...
@@ -867,7 +868,7 @@ class Fixture : public internal::Benchmark {
virtual
void
BenchmarkCase
(
State
&
)
=
0
;
};
}
// namespace
internal
}
// namespace
benchmark
// ------------------------------------------------------
// Macro to register benchmarks
...
...
src/csv_reporter.cc
View file @
5b7683f4
...
...
@@ -35,7 +35,7 @@ std::vector<std::string> elements = {
"name"
,
"iterations"
,
"real_time"
,
"cpu_time"
,
"time_unit"
,
"bytes_per_second"
,
"items_per_second"
,
"label"
,
"error_occurred"
,
"error_message"
};
}
}
// namespace
bool
CSVReporter
::
ReportContext
(
const
Context
&
context
)
{
PrintBasicContext
(
&
GetErrorStream
(),
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