Changeset 43908 in vbox for trunk/src/VBox/Main/src-server/MachineImpl.cpp
- Timestamp:
- Nov 19, 2012 5:36:43 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r43900 r43908 11512 11512 pm::SubMetric *ramUsageUsed = new pm::SubMetric("RAM/Usage/Used", 11513 11513 "Size of resident portion of VM process in memory."); 11514 pm::SubMetric *machineNetRx = new pm::SubMetric("Net/Rate/Rx", 11515 "Network receive rate."); 11516 pm::SubMetric *machineNetTx = new pm::SubMetric("Net/Rate/Tx", 11517 "Network transmit rate."); 11514 11518 /* Create and register base metrics */ 11515 11519 pm::BaseMetric *cpuLoad = new pm::MachineCpuLoadRaw(hal, aMachine, pid, … … 11568 11572 11569 11573 /* Create and register base metrics */ 11574 pm::BaseMetric *machineNetRate = new pm::MachineNetRate(mCollectorGuest, aMachine, 11575 machineNetRx, machineNetTx); 11576 aCollector->registerBaseMetric(machineNetRate); 11577 11570 11578 pm::BaseMetric *guestCpuLoad = new pm::GuestCpuLoad(mCollectorGuest, aMachine, 11571 11579 guestLoadUser, guestLoadKernel, guestLoadIdle); … … 11577 11585 guestMemCache, guestPagedTotal); 11578 11586 aCollector->registerBaseMetric(guestCpuMem); 11587 11588 aCollector->registerMetric(new pm::Metric(machineNetRate, machineNetRx, 0)); 11589 aCollector->registerMetric(new pm::Metric(machineNetRate, machineNetRx, new pm::AggregateAvg())); 11590 aCollector->registerMetric(new pm::Metric(machineNetRate, machineNetRx, new pm::AggregateMin())); 11591 aCollector->registerMetric(new pm::Metric(machineNetRate, machineNetRx, new pm::AggregateMax())); 11592 11593 aCollector->registerMetric(new pm::Metric(machineNetRate, machineNetTx, 0)); 11594 aCollector->registerMetric(new pm::Metric(machineNetRate, machineNetTx, new pm::AggregateAvg())); 11595 aCollector->registerMetric(new pm::Metric(machineNetRate, machineNetTx, new pm::AggregateMin())); 11596 aCollector->registerMetric(new pm::Metric(machineNetRate, machineNetTx, new pm::AggregateMax())); 11579 11597 11580 11598 aCollector->registerMetric(new pm::Metric(guestCpuLoad, guestLoadUser, 0)); … … 12149 12167 * Passes collected guest statistics to performance collector object 12150 12168 */ 12151 STDMETHODIMP SessionMachine::ReportGuestStatistics(ULONG aValidStats, ULONG aCpuUser, 12152 ULONG aCpuKernel, ULONG aCpuIdle, 12153 ULONG aMemTotal, ULONG aMemFree, 12154 ULONG aMemBalloon, ULONG aMemShared, 12155 ULONG aMemCache, ULONG aPageTotal, 12156 ULONG aAllocVMM, ULONG aFreeVMM, 12157 ULONG aBalloonedVMM, ULONG aSharedVMM) 12169 STDMETHODIMP SessionMachine::ReportVmStatistics(ULONG aValidStats, ULONG aCpuUser, 12170 ULONG aCpuKernel, ULONG aCpuIdle, 12171 ULONG aMemTotal, ULONG aMemFree, 12172 ULONG aMemBalloon, ULONG aMemShared, 12173 ULONG aMemCache, ULONG aPageTotal, 12174 ULONG aAllocVMM, ULONG aFreeVMM, 12175 ULONG aBalloonedVMM, ULONG aSharedVMM, 12176 ULONG aVmNetRx, ULONG aVmNetTx) 12158 12177 { 12159 12178 if (mCollectorGuest) … … 12161 12180 aMemTotal, aMemFree, aMemBalloon, aMemShared, 12162 12181 aMemCache, aPageTotal, aAllocVMM, aFreeVMM, 12163 aBalloonedVMM, aSharedVMM );12182 aBalloonedVMM, aSharedVMM, aVmNetRx, aVmNetTx); 12164 12183 12165 12184 return S_OK;
Note:
See TracChangeset
for help on using the changeset viewer.