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
caeea7f0
Commit
caeea7f0
authored
Feb 08, 2019
by
Micha Mueller
Browse files
Add printConfig to PERF plugin
parent
6344192d
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/sensors/perfevent/PerfSensorBase.h
View file @
caeea7f0
...
...
@@ -44,6 +44,11 @@ public:
void
setType
(
unsigned
type
)
{
_type
=
type
;
}
void
setConfig
(
unsigned
config
)
{
_config
=
config
;
}
void
printConfig
(
LOG_LEVEL
ll
,
LOGGER
&
lg
)
{
LOG_VAR
(
ll
)
<<
" Type: "
<<
_type
;
LOG_VAR
(
ll
)
<<
" Config: "
<<
_config
;
}
protected:
unsigned
int
_type
;
unsigned
int
_config
;
...
...
src/sensors/perfevent/PerfSensorGroup.cpp
View file @
caeea7f0
...
...
@@ -272,3 +272,12 @@ uint64_t PerfSensorGroup::calculateIntervalValue(uint64_t previous, uint64_t cur
}
return
current
-
previous
;
}
void
PerfSensorGroup
::
printConfig
(
LOG_LEVEL
ll
)
{
if
(
_sensorGroupLeader
)
{
LOG_VAR
(
ll
)
<<
" This is a Leader Group"
;
}
else
{
LOG_VAR
(
ll
)
<<
" This is a Non-Leader Group"
;
}
LOG_VAR
(
ll
)
<<
" CPU Id: "
<<
_cpuId
;
}
src/sensors/perfevent/PerfSensorGroup.h
View file @
caeea7f0
...
...
@@ -34,6 +34,8 @@ public:
void
pushBackGroup
(
PerfSGPtr
perfGroup
)
{
_fellowSensorGroups
.
push_back
(
perfGroup
);
}
void
printConfig
(
LOG_LEVEL
ll
)
override
;
private:
void
read
()
override
;
void
readAsync
()
override
;
...
...
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