Commit caeea7f0 authored by Micha Mueller's avatar Micha Mueller
Browse files

Add printConfig to PERF plugin

parent 6344192d
......@@ -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;
......
......@@ -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;
}
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment