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
b9ec86ab
Commit
b9ec86ab
authored
Oct 28, 2019
by
Carla Guillen
Browse files
small change when initializing vector. Changes in config file are reflected
parent
10efbb0e
Changes
2
Hide whitespace changes
Inline
Side-by-side
analytics/operators/persystsql/PerSystSqlOperator.cpp
View file @
b9ec86ab
...
@@ -60,14 +60,14 @@ PerSystSqlOperator::~PerSystSqlOperator() {
...
@@ -60,14 +60,14 @@ PerSystSqlOperator::~PerSystSqlOperator() {
PerSystSqlOperator
::
PerSystSqlOperator
(
const
PerSystSqlOperator
&
other
)
:
OperatorTemplate
(
other
.
_name
),
JobOperatorTemplate
(
other
.
_name
){
PerSystSqlOperator
::
PerSystSqlOperator
(
const
PerSystSqlOperator
&
other
)
:
OperatorTemplate
(
other
.
_name
),
JobOperatorTemplate
(
other
.
_name
){
copy
(
other
);
copy
(
other
);
}
}
PerSystSqlOperator
&
PerSystSqlOperator
::
operator
=
(
const
PerSystSqlOperator
&
other
){
PerSystSqlOperator
&
PerSystSqlOperator
::
operator
=
(
const
PerSystSqlOperator
&
other
){
OperatorTemplate
::
operator
=
(
other
);
OperatorTemplate
::
operator
=
(
other
);
JobOperatorTemplate
::
operator
=
(
other
);
JobOperatorTemplate
::
operator
=
(
other
);
copy
(
other
);
copy
(
other
);
return
*
this
;
return
*
this
;
}
}
void
PerSystSqlOperator
::
copy
(
const
PerSystSqlOperator
&
other
){
void
PerSystSqlOperator
::
copy
(
const
PerSystSqlOperator
&
other
){
...
@@ -94,7 +94,9 @@ void PerSystSqlOperator::copy(const PerSystSqlOperator& other){
...
@@ -94,7 +94,9 @@ void PerSystSqlOperator::copy(const PerSystSqlOperator& other){
}
}
void
PerSystSqlOperator
::
printConfig
(
LOG_LEVEL
ll
)
{
void
PerSystSqlOperator
::
printConfig
(
LOG_LEVEL
ll
)
{
LOG_VAR
(
ll
)
<<
"===================================="
;
LOG_VAR
(
ll
)
<<
"PerSystSQL Operator "
<<
_name
;
LOG_VAR
(
ll
)
<<
"PerSystSQL Operator "
<<
_name
;
LOG_VAR
(
ll
)
<<
"===================================="
;
LOG_VAR
(
ll
)
<<
"backend="
<<
_backend
;
LOG_VAR
(
ll
)
<<
"backend="
<<
_backend
;
LOG_VAR
(
ll
)
<<
"go_back_ms="
<<
_go_back_ns
/
1e6
;
LOG_VAR
(
ll
)
<<
"go_back_ms="
<<
_go_back_ns
/
1e6
;
LOG_VAR
(
ll
)
<<
"_scaling_factor="
<<
_scaling_factor
;
LOG_VAR
(
ll
)
<<
"_scaling_factor="
<<
_scaling_factor
;
...
@@ -175,8 +177,7 @@ void PerSystSqlOperator::compute(U_Ptr unit, qeJobData& jobData) {
...
@@ -175,8 +177,7 @@ void PerSystSqlOperator::compute(U_Ptr unit, qeJobData& jobData) {
return
;
return
;
}
}
std
::
vector
<
std
::
string
>
job_ids
;
std
::
vector
<
std
::
string
>
job_ids
=
{
jobData
.
jobId
};
job_ids
.
push_back
(
jobData
.
jobId
);
std
::
map
<
std
::
string
,
std
::
string
>
job_map
;
std
::
map
<
std
::
string
,
std
::
string
>
job_map
;
std
::
string
table_suffix
;
std
::
string
table_suffix
;
...
...
dcdbpusher/config/msr.conf
View file @
b9ec86ab
...
@@ -10,19 +10,20 @@ group msr_g1 {
...
@@ -10,19 +10,20 @@ group msr_g1 {
interval
1000
interval
1000
;
mqttprefix
01
;
mqttprefix
01
cpus
0
-
95
cpus
0
-
95
htVal
48
sensor
Instructions
{
sensor
Instructions
{
mqttsuffix
/
instructions
mqttsuffix
/
INSTRUCTIONS
metric
0
x309
metric
0
x309
}
}
sensor
Cycles
{
sensor
Cycles
{
mqttsuffix
/
cycles
mqttsuffix
/
CLOCKS
metric
0
x30A
metric
0
x30A
}
}
sensor
RefCycles
{
sensor
RefCycles
{
mqttsuffix
/
refcycles
mqttsuffix
/
CLOCKS_REF
metric
0
x30B
metric
0
x30B
}
}
}
}
...
...
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