VirtualBox

Changeset 21125 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Jul 1, 2009 1:57:35 PM (16 years ago)
Author:
vboxsync
Message:

Don't register unused stat counters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/HWACCM.cpp

    r20864 r21125  
    528528            for (int j=0;j<MAX_EXITREASON_STAT;j++)
    529529            {
    530                 rc = STAMR3RegisterF(pVM, &pVCpu->hwaccm.s.paStatExitReason[j], STAMTYPE_COUNTER, STAMVISIBILITY_USED, STAMUNIT_OCCURENCES,
    531                                      papszDesc[j] ? papszDesc[j] : "Exit reason",
    532                                      "/HWACCM/CPU%d/Exit/Reason/%02x", i, j);
    533                 AssertRC(rc);
     530                if (papszDesc[j])
     531                {
     532                    rc = STAMR3RegisterF(pVM, &pVCpu->hwaccm.s.paStatExitReason[j], STAMTYPE_COUNTER, STAMVISIBILITY_USED, STAMUNIT_OCCURENCES,
     533                                        papszDesc[j], "/HWACCM/CPU%d/Exit/Reason/%02x", i, j);
     534                    AssertRC(rc);
     535                }
    534536            }
    535537            rc = STAMR3RegisterF(pVM, &pVCpu->hwaccm.s.StatExitReasonNPF, STAMTYPE_COUNTER, STAMVISIBILITY_USED, STAMUNIT_OCCURENCES, "Nested page fault", "/HWACCM/CPU%d/Exit/Reason/#NPF", i);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette