gecko-dev/xpcom/build
Doug Thayer 8aae071723 Bug 1382440 - Watch CPU usage in BHR r=froydnj
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
2017-07-24 13:46:09 -07:00
..
BinaryPath.h Bug 1382099 - Remove MOZ_WIDGET_GONK from xpcom/. r=erahm. 2017-07-21 10:45:39 +10:00
FileLocation.cpp Bug 1363482: Part 2 - Allow pre-loading file and JAR entry contents off-thread during startup. r=erahm 2017-08-30 15:47:17 -07:00
FileLocation.h Bug 1363482: Part 2 - Allow pre-loading file and JAR entry contents off-thread during startup. r=erahm 2017-08-30 15:47:17 -07:00
IOInterposer.cpp
IOInterposer.h
IOInterposerPrivate.h
LateWriteChecks.cpp Bug 1392630 Remove unused variables r=froydnj 2017-08-22 09:16:31 -05:00
LateWriteChecks.h
MainThreadIOLogger.cpp Bug 1375387 - Reorder and section-ify GeckoProfiler.h. r=mstange. 2017-06-22 14:28:47 +10:00
MainThreadIOLogger.h
NSPRInterposer.cpp
NSPRInterposer.h
Omnijar.cpp
Omnijar.h
PoisonIOInterposer.h
PoisonIOInterposerBase.cpp Bug 1373525 - xpcom/build: Remove unused member function DebugFilesAutoLock::Clear(). r=froydnj 2017-06-07 00:56:55 -07:00
PoisonIOInterposerMac.cpp
PoisonIOInterposerStub.cpp
PoisonIOInterposerWin.cpp
ServiceList.h
Services.cpp
Services.h
XPCOM.h Bug 1392884 - Remove nsIAtomService. r=froydnj. 2017-08-25 17:06:58 +10:00
XPCOMInit.cpp Bug 1382440 - Watch CPU usage in BHR r=froydnj 2017-07-24 13:46:09 -07:00
XPCOMModule.inc Bug 1392884 - Remove nsIAtomService. r=froydnj. 2017-08-25 17:06:58 +10:00
XREAppData.h
XREChildData.h
XREShellData.h
mach_override.c Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
mach_override.h Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
moz.build Bug 1320134 - Part 4: Remove the debug patches for running out of TLS slots on Windows. r=froydnj 2017-08-21 16:24:29 +08:00
nsWindowsDllInterceptor.h Bug 1392485: Add REX.R mov to the disassembler. r=handyman 2017-08-30 07:16:44 +12:00
nsXPCOM.h Bug 1391803 - Use nsStringFwd.h for forward declaring string classes. r=froydnj 2017-08-16 16:48:52 -07:00
nsXPCOMCID.h
nsXPCOMCIDInternal.h
nsXPCOMPrivate.h
nsXULAppAPI.h Bug 1389598 - Part 4: Remove remaining gonk refs. r=froydnj 2017-08-11 17:45:18 -07:00
perfprobe.cpp
perfprobe.h
xpcom_alpha.def
xrecore.h