Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
aion
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Philip Trettner
aion
Commits
bbea44f7
Commit
bbea44f7
authored
Jul 07, 2018
by
Philip Trettner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed windows warnings
parent
016ffa04
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/aion/ActionAnalyzer.cc
src/aion/ActionAnalyzer.cc
+2
-2
src/aion/ActionAnalyzer.hh
src/aion/ActionAnalyzer.hh
+1
-1
No files found.
src/aion/ActionAnalyzer.cc
View file @
bbea44f7
...
...
@@ -158,7 +158,7 @@ void ActionAnalyzer::dumpSummary(std::ostream &oss, bool verbose)
_
desc
=
l
->
shortDesc
();
oss
<<
" "
<<
desc
<<
std
::
string
(
nameLength
-
desc
.
size
(),
' '
)
<<
" "
;
oss
<<
aion_fmt
::
format
(
cntFmt
,
a
->
count
())
<<
"x "
;
aion_systime
::
formatHuman
(
a
->
averageNS
(),
oss
);
aion_systime
::
formatHuman
(
(
int64_t
)
a
->
averageNS
(),
oss
);
oss
<<
" = "
;
aion_systime
::
formatHuman
(
a
->
totalTimeNS
(),
oss
);
oss
<<
" ("
;
...
...
@@ -166,7 +166,7 @@ void ActionAnalyzer::dumpSummary(std::ostream &oss, bool verbose)
oss
<<
" ~ "
;
aion_systime
::
formatHuman
(
a
->
maxNS
(),
oss
);
oss
<<
", ±"
;
aion_systime
::
formatHuman
(
a
->
standardDeviationNS
(),
oss
);
aion_systime
::
formatHuman
(
(
int64_t
)
a
->
standardDeviationNS
(),
oss
);
oss
<<
")
\n
"
;
}
}
...
...
src/aion/ActionAnalyzer.hh
View file @
bbea44f7
...
...
@@ -47,7 +47,7 @@ public: // properties
int64_t
count
()
const
{
return
mCount
;
}
int64_t
totalTimeNS
()
const
{
return
mSumNs
;
}
double
totalTime
()
const
{
return
mSumNs
*
1.e-9
;
}
double
averageNS
()
const
{
return
mCount
==
0
?
0
LL
:
mSumNs
/
mCount
;
}
double
averageNS
()
const
{
return
mCount
==
0
?
0
.0
:
mSumNs
/
double
(
mCount
)
;
}
double
average
()
const
{
return
averageNS
()
*
1.e-9
;
}
double
varianceNS
()
const
{
return
mVariance
;
}
double
variance
()
const
{
return
mVariance
*
1.e-18
;
}
...
...
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