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 Bug 1298676 - part 1 - add IOInterposer::Enable(); r=aklotz 2017-01-10 16:31:25 -05:00
IOInterposer.h Bug 1298676 - part 2 - add an AutoIOInterposerDisable RAII class; r=aklotz 2017-01-10 16:31:25 -05:00
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 Bug 1362498 - cache some networking mozilla::services r=bagder 2017-05-05 14:32:19 -04:00
Services.cpp Bug 1362498 - cache some networking mozilla::services r=bagder 2017-05-05 14:32:19 -04:00
Services.h Bug 1336086 - remove mozilla::services::_external_Get*Service; r=bsmedberg,jesup 2017-02-03 11:52:02 -05:00
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 Bug 1284897 - Add mechanism to libsandbox_s to track names of files that have been given special sandbox access permissions (PermissionsService). r=bobowen, r=glandium 2017-02-14 15:08:40 -08:00
XREChildData.h Bug 1332530 - Move GMPLoader code out of plugin-container and back into XUL. r=gerald 2017-01-19 15:39:03 +13:00
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 Bug 1329718 - remove nsISupportsVoid and associated machinery; r=erahm 2017-01-10 16:31:48 -05:00
nsXPCOMCIDInternal.h
nsXPCOMPrivate.h Bug 1306327 - Remove everything related to frozen functions from the XPCOM glue. r=bsmedberg 2017-01-10 17:12:43 +09:00
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 Bug 1306329 - Stop exporting XPCOM and XUL symbols. r=glandium 2016-12-02 12:55:34 -05:00