VirtualBox

Changeset 18753 in vbox for trunk/src


Ignore:
Timestamp:
Apr 6, 2009 12:52:38 PM (16 years ago)
Author:
vboxsync
Message:

REMR3Term: Deregister the statistics since we're usually unloaded.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler_new/VBoxRecompiler.c

    r18662 r18753  
    506506REMR3DECL(int) REMR3Term(PVM pVM)
    507507{
     508#ifdef VBOX_WITH_STATISTICS
     509    /*
     510     * Statistics.
     511     */
     512    STAM_DEREG(pVM, &gStatExecuteSingleInstr);
     513    STAM_DEREG(pVM, &gStatCompilationQEmu);
     514    STAM_DEREG(pVM, &gStatRunCodeQEmu);
     515    STAM_DEREG(pVM, &gStatTotalTimeQEmu);
     516    STAM_DEREG(pVM, &gStatTimers);
     517    STAM_DEREG(pVM, &gStatTBLookup);
     518    STAM_DEREG(pVM, &gStatIRQ);
     519    STAM_DEREG(pVM, &gStatRawCheck);
     520    STAM_DEREG(pVM, &gStatMemRead);
     521    STAM_DEREG(pVM, &gStatMemWrite);
     522    STAM_DEREG(pVM, &gStatHCVirt2GCPhys);
     523    STAM_DEREG(pVM, &gStatGCPhys2HCVirt);
     524
     525    STAM_DEREG(pVM, &gStatCpuGetTSC);
     526
     527    STAM_DEREG(pVM, &gStatRefuseTFInhibit);
     528    STAM_DEREG(pVM, &gStatRefuseVM86);
     529    STAM_DEREG(pVM, &gStatRefusePaging);
     530    STAM_DEREG(pVM, &gStatRefusePAE);
     531    STAM_DEREG(pVM, &gStatRefuseIOPLNot0);
     532    STAM_DEREG(pVM, &gStatRefuseIF0);
     533    STAM_DEREG(pVM, &gStatRefuseCode16);
     534    STAM_DEREG(pVM, &gStatRefuseWP0);
     535    STAM_DEREG(pVM, &gStatRefuseRing1or2);
     536    STAM_DEREG(pVM, &gStatRefuseCanExecute);
     537    STAM_DEREG(pVM, &gStatFlushTBs);
     538
     539    STAM_DEREG(pVM, &gStatREMGDTChange);
     540    STAM_DEREG(pVM, &gStatREMLDTRChange);
     541    STAM_DEREG(pVM, &gStatREMIDTChange);
     542    STAM_DEREG(pVM, &gStatREMTRChange);
     543
     544    STAM_DEREG(pVM, &gStatSelOutOfSync[0]);
     545    STAM_DEREG(pVM, &gStatSelOutOfSync[1]);
     546    STAM_DEREG(pVM, &gStatSelOutOfSync[2]);
     547    STAM_DEREG(pVM, &gStatSelOutOfSync[3]);
     548    STAM_DEREG(pVM, &gStatSelOutOfSync[4]);
     549    STAM_DEREG(pVM, &gStatSelOutOfSync[5]);
     550
     551    STAM_DEREG(pVM, &gStatSelOutOfSyncStateBack[0]);
     552    STAM_DEREG(pVM, &gStatSelOutOfSyncStateBack[1]);
     553    STAM_DEREG(pVM, &gStatSelOutOfSyncStateBack[2]);
     554    STAM_DEREG(pVM, &gStatSelOutOfSyncStateBack[3]);
     555    STAM_DEREG(pVM, &gStatSelOutOfSyncStateBack[4]);
     556    STAM_DEREG(pVM, &gStatSelOutOfSyncStateBack[5]);
     557
     558    STAM_DEREG(pVM, &pVM->rem.s.Env.StatTbFlush);
     559#endif /* VBOX_WITH_STATISTICS */
     560
     561    STAM_REL_DEREG(pVM, &tb_flush_count);
     562    STAM_REL_DEREG(pVM, &tb_phys_invalidate_count);
     563    STAM_REL_DEREG(pVM, &tlb_flush_count);
     564
    508565    return VINF_SUCCESS;
    509566}
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