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
2859ae93
Commit
2859ae93
authored
Jun 02, 2016
by
Ismael
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed complexity_n to int and fix some whitespaces
parent
8ba94b4c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
benchmark_api.h
include/benchmark/benchmark_api.h
+2
-2
reporter.h
include/benchmark/reporter.h
+3
-3
No files found.
include/benchmark/benchmark_api.h
View file @
2859ae93
...
@@ -363,7 +363,7 @@ public:
...
@@ -363,7 +363,7 @@ public:
// family benchmark, then current benchmark will be part of the computation and complexity_n will
// family benchmark, then current benchmark will be part of the computation and complexity_n will
// represent the length of N.
// represent the length of N.
BENCHMARK_ALWAYS_INLINE
BENCHMARK_ALWAYS_INLINE
void
SetComplexityN
(
size_
t
complexity_n
)
{
void
SetComplexityN
(
in
t
complexity_n
)
{
complexity_n_
=
complexity_n
;
complexity_n_
=
complexity_n
;
}
}
...
@@ -444,7 +444,7 @@ private:
...
@@ -444,7 +444,7 @@ private:
size_t
bytes_processed_
;
size_t
bytes_processed_
;
size_t
items_processed_
;
size_t
items_processed_
;
size_
t
complexity_n_
;
in
t
complexity_n_
;
public
:
public
:
// FIXME: Make this private somehow.
// FIXME: Make this private somehow.
...
...
include/benchmark/reporter.h
View file @
2859ae93
...
@@ -87,7 +87,7 @@ class BenchmarkReporter {
...
@@ -87,7 +87,7 @@ class BenchmarkReporter {
// Keep track of arguments to compute asymptotic complexity
// Keep track of arguments to compute asymptotic complexity
BigO
complexity
;
BigO
complexity
;
BigOFunc
*
complexity_lambda
;
BigOFunc
*
complexity_lambda
;
size_
t
complexity_n
;
in
t
complexity_n
;
// 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
;
...
@@ -133,14 +133,14 @@ class BenchmarkReporter {
...
@@ -133,14 +133,14 @@ class BenchmarkReporter {
error_stream_
=
err
;
error_stream_
=
err
;
}
}
std
::
ostream
&
GetOutputStream
()
const
{
std
::
ostream
&
GetOutputStream
()
const
{
return
*
output_stream_
;
return
*
output_stream_
;
}
}
std
::
ostream
&
GetErrorStream
()
const
{
std
::
ostream
&
GetErrorStream
()
const
{
return
*
error_stream_
;
return
*
error_stream_
;
}
}
virtual
~
BenchmarkReporter
();
virtual
~
BenchmarkReporter
();
// Write a human readable string to 'out' representing the specified
// Write a human readable string to 'out' representing the specified
...
...
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