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
785e2c31
Unverified
Commit
785e2c31
authored
Jan 15, 2019
by
Dominic Hamon
Committed by
GitHub
Jan 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move Statistics struct to internal namespace (#753)
parent
4b9f43e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
benchmark.h
include/benchmark/benchmark.h
+2
-2
No files found.
include/benchmark/benchmark.h
View file @
785e2c31
...
@@ -421,6 +421,7 @@ typedef double(BigOFunc)(int64_t);
...
@@ -421,6 +421,7 @@ typedef double(BigOFunc)(int64_t);
// statistics over all the measurements of some type
// statistics over all the measurements of some type
typedef
double
(
StatisticsFunc
)(
const
std
::
vector
<
double
>&
);
typedef
double
(
StatisticsFunc
)(
const
std
::
vector
<
double
>&
);
namespace
internal
{
struct
Statistics
{
struct
Statistics
{
std
::
string
name_
;
std
::
string
name_
;
StatisticsFunc
*
compute_
;
StatisticsFunc
*
compute_
;
...
@@ -429,7 +430,6 @@ struct Statistics {
...
@@ -429,7 +430,6 @@ struct Statistics {
:
name_
(
name
),
compute_
(
compute
)
{}
:
name_
(
name
),
compute_
(
compute
)
{}
};
};
namespace
internal
{
struct
BenchmarkInstance
;
struct
BenchmarkInstance
;
class
ThreadTimer
;
class
ThreadTimer
;
class
ThreadManager
;
class
ThreadManager
;
...
@@ -1373,7 +1373,7 @@ class BenchmarkReporter {
...
@@ -1373,7 +1373,7 @@ class BenchmarkReporter {
int64_t
complexity_n
;
int64_t
complexity_n
;
// what statistics to compute from the measurements
// what statistics to compute from the measurements
const
std
::
vector
<
Statistics
>*
statistics
;
const
std
::
vector
<
internal
::
Statistics
>*
statistics
;
// Inform print function whether the current run is a complexity report
// Inform print function whether the current run is a complexity report
bool
report_big_o
;
bool
report_big_o
;
...
...
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