зеркало из https://github.com/mozilla/gecko-dev.git
8aae071723
We would like to be able to see if a given hang in BHR occurred under high CPU load, as this is an indication that the hang is of less use to us, since it's likely that the external CPU use is more responsible for it. The way this works is fairly simple. We get the system CPU usage on a scale from 0 to 1, and we get the current process's CPU usage, also on a scale from 0 to 1, and we subtract the latter from the former. We then compare this value to a threshold, which is 1 - (1 / p), where p is the number of (virtual) cores on the machine. This threshold might need to be tuned, so that we require an entire physical core in order to not annotate the hang, but for now it seemed the most reasonable line in the sand. I should note that this considers CPU usage in child or parent processes as external. While we are responsible for that CPU usage, it still indicates that the stack we receive from BHR is of little value to us, since the source of the actual hang is external to that stack. MozReview-Commit-ID: JkG53zq1MdY --HG-- extra : rebase_source : 16553a9b5eac0a73cd1619c6ee01fa177ca60e58 |
||
---|---|---|
.. | ||
BinaryPath.h | ||
FileLocation.cpp | ||
FileLocation.h | ||
IOInterposer.cpp | ||
IOInterposer.h | ||
IOInterposerPrivate.h | ||
LateWriteChecks.cpp | ||
LateWriteChecks.h | ||
MainThreadIOLogger.cpp | ||
MainThreadIOLogger.h | ||
NSPRInterposer.cpp | ||
NSPRInterposer.h | ||
Omnijar.cpp | ||
Omnijar.h | ||
PoisonIOInterposer.h | ||
PoisonIOInterposerBase.cpp | ||
PoisonIOInterposerMac.cpp | ||
PoisonIOInterposerStub.cpp | ||
PoisonIOInterposerWin.cpp | ||
ServiceList.h | ||
Services.cpp | ||
Services.h | ||
XPCOM.h | ||
XPCOMInit.cpp | ||
XPCOMModule.inc | ||
XREAppData.h | ||
XREChildData.h | ||
XREShellData.h | ||
mach_override.c | ||
mach_override.h | ||
moz.build | ||
nsWindowsDllInterceptor.h | ||
nsXPCOM.h | ||
nsXPCOMCID.h | ||
nsXPCOMCIDInternal.h | ||
nsXPCOMPrivate.h | ||
nsXULAppAPI.h | ||
perfprobe.cpp | ||
perfprobe.h | ||
xpcom_alpha.def | ||
xrecore.h |