Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
16a36578
Commit
16a36578
authored
Sep 17, 2019
by
Carla Guillen
Browse files
Adding more configuration for opa related metrics
parent
d081feab
Changes
1
Hide whitespace changes
Inline
Side-by-side
analytics/operators/smucngperf/SMUCNGPerfConfigurator.cpp
View file @
16a36578
...
...
@@ -68,6 +68,18 @@ void SMUCNGPerfConfigurator::sensorBase(SMUCSensorBase& s, CFG_VAL config) {
}
else
if
(
endsWith
(
name
,
"instructionsps"
))
{
_metricToPosition
[
SMUCSensorBase
::
INSTRUCTIONS_PER_SECOND
]
=
position
;
s
.
setMetric
(
SMUCSensorBase
::
INSTRUCTIONS_PER_SECOND
);
}
else
if
(
endsWith
(
name
,
"networkxmit"
)){
_metricToPosition
[
SMUCSensorBase
::
NETWORK_XMIT
]
=
position
;
s
.
setMetric
(
SMUCSensorBase
::
NETWORK_XMIT
);
}
else
if
(
endsWith
(
name
,
"networkrcvd"
)){
_metricToPosition
[
SMUCSensorBase
::
NETWORK_RCVD
]
=
position
;
s
.
setMetric
(
SMUCSensorBase
::
NETWORK_RCVD
);
}
else
if
(
endsWith
(
name
,
"networkxmitps"
)){
_metricToPosition
[
SMUCSensorBase
::
NETWORK_BYTES_XMIT_PER_SECOND
]
=
position
;
s
.
setMetric
(
SMUCSensorBase
::
NETWORK_BYTES_XMIT_PER_SECOND
);
}
else
if
(
endsWith
(
name
,
"ndtworkrcvdps"
)){
_metricToPosition
[
SMUCSensorBase
::
NETWORK_BYTES_RCVD_PER_SECOND
]
=
position
;
s
.
setMetric
(
SMUCSensorBase
::
NETWORK_BYTES_RCVD_PER_SECOND
);
}
}
}
...
...
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