VirtualBox

Changeset 37713 in vbox for trunk/src


Ignore:
Timestamp:
Jun 30, 2011 3:14:13 PM (13 years ago)
Author:
vboxsync
Message:

Main/linux/Performance: if collecting the stats for a process fails keep going, otherwise many stats updates are missing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/linux/PerformanceLinux.cpp

    r33992 r37713  
    77
    88/*
    9  * Copyright (C) 2008 Oracle Corporation
     9 * Copyright (C) 2008-2011 Oracle Corporation
    1010 *
    1111 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    7575        VMProcessStats vmStats;
    7676        int rc = getRawProcessStats(*it, &vmStats.cpuUser, &vmStats.cpuKernel, &vmStats.pagesUsed);
    77         if (RT_FAILURE(rc))
    78             return rc;
    79         mProcessStats[*it] = vmStats;
     77        /* On failure, do NOT stop. Just skip the entry. Having the stats for
     78         * one (probably broken) process frozen/zero is a minor issue compared
     79         * to not updating many process stats and the host cpu stats. */
     80        if (RT_SUCCESS(rc))
     81            mProcessStats[*it] = vmStats;
    8082    }
    8183    if (hints.isHostCpuLoadCollected() || mProcessStats.size())
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