VirtualBox

Changeset 12066 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 3, 2008 3:50:32 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
35999
Message:

PerfAPI: fix for VM metrics missing for direct sessions

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/MachineImpl.cpp

    r12020 r12066  
    33973397    if (SUCCEEDED (rc))
    33983398    {
     3399#ifdef VBOX_WITH_RESOURCE_USAGE_API
     3400        registerMetrics (mParent->performanceCollector(), this, pid);
     3401#endif /* VBOX_WITH_RESOURCE_USAGE_API */
     3402
    33993403        /*
    34003404         *  Set the session state to Spawning to protect against subsequent
     
    78747878    }
    78757879
    7876 #ifdef VBOX_WITH_RESOURCE_USAGE_API
    7877     registerMetrics (mParent->performanceCollector(), aMachine, mData->mSession.mPid);
    7878 #endif /* VBOX_WITH_RESOURCE_USAGE_API */
    7879 
    78807880    /* Confirm a successful initialization when it's the case */
    78817881    autoInitSpan.setSucceeded();
  • trunk/src/VBox/Main/darwin/PerformanceDarwin.cpp

    r11778 r12066  
    135135static int getProcessInfo(RTPROCESS process, struct proc_taskinfo *tinfo)
    136136{
     137    LogAleksey(("getProcessInfo() getting info for %d", process));
    137138    int nb = proc_pidinfo(process, PROC_PIDTASKINFO, 0,  tinfo, sizeof(*tinfo));
    138139    if (nb <= 0)
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