Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
G
gearshifft_deprecated
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
steinbac
gearshifft_deprecated
Commits
f139f4d1
Commit
f139f4d1
authored
May 25, 2016
by
Matthias Werner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improved verbose output and added precision type to result file.
parent
23263842
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
inc/fixture_benchmark.hpp
inc/fixture_benchmark.hpp
+14
-7
No files found.
inc/fixture_benchmark.hpp
View file @
f139f4d1
...
...
@@ -38,23 +38,30 @@ struct Results
};
struct
Output
{
// @todo output filename as parameter
// @todo output filename as parameter
and verbosity flag
template
<
typename
TExtent
>
static
void
write
(
const
Results
&
results
,
const
TExtent
&
extents
,
const
std
::
string
&
title
,
const
std
::
string
&
test_suite_name
)
{
std
::
stringstream
ss
;
int
i_stats
=
results
.
stats
.
getLength
()
-
1
;
// output on console
std
::
cout
<<
test_suite_name
<<
" "
<<
title
<<
" "
<<
extents
.
size
()
<<
"D @ "
<<
results
.
alloc_mem_in_bytes
/
1048576.0
<<
"+"
<<
results
.
plan_mem_in_bytes
/
1048576.0
<<
" MiB"
<<
" took "
<<
results
.
stats
.
getAverage
(
i_stats
)
<<
results
.
stats
.
getUnit
(
i_stats
)
<<
" ("
<<
results
.
stats
.
getLabel
(
i_stats
)
<<
")"
<<
extents
.
size
()
<<
"D"
;
for
(
const
auto
&
e
:
extents
)
std
::
cout
<<
", "
<<
e
;
std
::
cout
<<
", DevAllocs "
<<
results
.
alloc_mem_in_bytes
/
1048576.0
<<
'+'
<<
results
.
plan_mem_in_bytes
/
1048576.0
<<
" MiB, "
<<
results
.
stats
.
getLabel
(
i_stats
)
<<
" = "
<<
results
.
stats
.
getAverage
(
i_stats
)
<<
results
.
stats
.
getUnit
(
i_stats
)
<<
std
::
endl
;
ss
<<
'\"'
<<
test_suite_name
<<
'\"'
<<
",
\"
"
<<
title
<<
"_"
<<
extents
.
size
()
<<
"D"
<<
'\"'
<<
",
\"
Precision
\"
,"
<<
BOOST_PP_STRINGIZE
(
BENCH_PRECISION
)
<<
",
\"
AllocBuffer
\"
,"
<<
results
.
alloc_mem_in_bytes
/
1048576.0
<<
",
\"
MiB
\"
"
<<
",
\"
AllocPlan
\"
,"
<<
results
.
plan_mem_in_bytes
/
1048576.0
<<
",
\"
MiB
\"
"
;
<<
",
\"
AllocPlan
\"
,"
<<
results
.
plan_mem_in_bytes
/
1048576.0
<<
",
\"
MiB
\"
"
<<
",
\"
Extent
\"
"
;
for
(
const
auto
&
e
:
extents
)
ss
<<
','
<<
e
;
ss
<<
std
::
endl
;
...
...
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