Changeset 56590 in vbox
- Timestamp:
- Jun 23, 2015 7:03:29 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageMetrics.cpp
r56118 r56590 5 5 6 6 /* 7 * Copyright (C) 2006-201 2Oracle Corporation7 * Copyright (C) 2006-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 81 81 rc = aVirtualBox->FindMachine(Bstr(argv[0]).raw(), 82 82 machine.asOutParam()); 83 if (SUCCEEDED 83 if (SUCCEEDED(rc)) 84 84 { 85 85 retObjects.reset(1); … … 108 108 * sub-metric name: CPU/MHz and Net/<iface>/LinkSpeed. 109 109 */ 110 if ( strcmp(pszRaw, "CPU/MHz") && !RTStrSimplePatternMatch("Net/*/LinkSpeed", pszRaw))110 if (pszRaw && strcmp(pszRaw, "CPU/MHz") && !RTStrSimplePatternMatch("Net/*/LinkSpeed", pszRaw)) 111 111 { 112 112 char *pszSlash = strrchr(pszRaw, '/'); … … 303 303 com::SafeArray<ULONG> retLengths; 304 304 com::SafeArray<LONG> retData; 305 CHECK_ERROR 306 ComSafeArrayAsInParam(objects),307 ComSafeArrayAsOutParam(retNames),308 ComSafeArrayAsOutParam(retObjects),309 ComSafeArrayAsOutParam(retUnits),310 ComSafeArrayAsOutParam(retScales),311 ComSafeArrayAsOutParam(retSequenceNumbers),312 ComSafeArrayAsOutParam(retIndices),313 ComSafeArrayAsOutParam(retLengths),314 ComSafeArrayAsOutParam(retData)) );305 CHECK_ERROR(performanceCollector, QueryMetricsData(ComSafeArrayAsInParam(metrics), 306 ComSafeArrayAsInParam(objects), 307 ComSafeArrayAsOutParam(retNames), 308 ComSafeArrayAsOutParam(retObjects), 309 ComSafeArrayAsOutParam(retUnits), 310 ComSafeArrayAsOutParam(retScales), 311 ComSafeArrayAsOutParam(retSequenceNumbers), 312 ComSafeArrayAsOutParam(retIndices), 313 ComSafeArrayAsOutParam(retLengths), 314 ComSafeArrayAsOutParam(retData)) ); 315 315 316 316 RTPrintf("Object Metric Values\n" … … 501 501 com::SafeArray<ULONG> retLengths; 502 502 com::SafeArray<LONG> retData; 503 CHECK_ERROR 504 ComSafeArrayAsInParam(objects),505 ComSafeArrayAsOutParam(retNames),506 ComSafeArrayAsOutParam(retObjects),507 ComSafeArrayAsOutParam(retUnits),508 ComSafeArrayAsOutParam(retScales),509 ComSafeArrayAsOutParam(retSequenceNumbers),510 ComSafeArrayAsOutParam(retIndices),511 ComSafeArrayAsOutParam(retLengths),512 ComSafeArrayAsOutParam(retData)) );503 CHECK_ERROR(performanceCollector, QueryMetricsData(ComSafeArrayAsInParam(metrics), 504 ComSafeArrayAsInParam(objects), 505 ComSafeArrayAsOutParam(retNames), 506 ComSafeArrayAsOutParam(retObjects), 507 ComSafeArrayAsOutParam(retUnits), 508 ComSafeArrayAsOutParam(retScales), 509 ComSafeArrayAsOutParam(retSequenceNumbers), 510 ComSafeArrayAsOutParam(retIndices), 511 ComSafeArrayAsOutParam(retLengths), 512 ComSafeArrayAsOutParam(retData)) ); 513 513 for (unsigned j = 0; j < retNames.size(); j++) 514 514 {
Note:
See TracChangeset
for help on using the changeset viewer.