Displaying 6 results from an estimated 6 matches for "cpuwrapp".
Did you mean:
cpugraph
2010 Apr 19
1
[PATCH matahari] Removes all code for the previous CPUWrapper class.
...typename targetType> targetType convert(const std::string& str)
-{
- istringstream i(str);
- targetType t;
- if (!(i >> t))
- throw invalid_argument("Conversion failure for " + str);
- return t;
-}
-
-ostream& operator<<(ostream& output, const CPUWrapper& cpu)
-{
- output << "Processor" << endl;
- output << "CPU #: " << cpu.cpunum << endl;
- output << "Core #: " << cpu.corenum << endl;
- output << "Num. Cores: " << cpu.numcores <...
2010 Mar 15
0
[PATCH] Updated the list of ignored files and fixed whitespace issues.
...and/or modify
@@ -39,9 +39,9 @@ template<typename targetType> targetType convert(const std::string& str)
if (!(i >> t))
throw invalid_argument("Conversion failure for " + str);
return t;
-}
+}
-ostream& operator<<(ostream& output, const CPUWrapper& cpu)
+ostream& operator<<(ostream& output, const CPUWrapper& cpu)
{
output << "Processor" << endl;
output << "CPU #: " << cpu.cpunum << endl;
@@ -61,7 +61,7 @@ void CPUWrapper::setupQMFObject(ManagementAgent *age...
2010 Apr 15
1
[PATCH matahari] Refactored the Host agent.
...; host.hostname << endl;
- output << "Memory: " << host.memory << endl;
- output << "Hypervisor: " << host.hypervisor << endl;
- output << "Arch: " << host.arch << endl << endl;
-
- vector<CPUWrapper*> cpus = host.cpus;
- vector<NICWrapper*> nics = host.nics;
-
- for (vector<CPUWrapper*>::iterator iter = cpus.begin();
- iter!= cpus.end();
- iter++) {
- output << **iter << endl;
- }
- for (vector<NICWrapper*>::iterator iter =...
2010 Mar 16
0
[PATCH] Added the new Processors agent.
...1..c81d2f1 100644
--- a/src/host.cpp
+++ b/src/host.cpp
@@ -78,6 +78,8 @@ void HostWrapper::setupQMFObjects(ManagementAgent *agent)
agent->addObject(mgmt_object);
syncQMFHostObject();
+ processors.setup(agent);
+
// Iterate over list and set up CPU objects
for (vector<CPUWrapper*>::iterator iter = cpus.begin();
iter!= cpus.end();
diff --git a/src/host.h b/src/host.h
index 06bdbf0..148c91f 100644
--- a/src/host.h
+++ b/src/host.h
@@ -25,6 +25,7 @@
#include "cpu.h"
#include "nic.h"
+#include "processors.h"
using namespace q...
2010 Mar 22
1
Small change and resend...
This patch includes one small change: the Processors::get_load_average()
method is now const since it does not change the object's state.
2010 Mar 22
1
Resend with loadavg as a statistic...
After some feedback from Slow, mainly about the load_average API
being a method rather than an ongoing statistic. So I've converted
the code over to instead update the load average statistic on a
regular basis.