gecko-dev/js
David Rajchenbach-Teller 68a3dd828b Bug 1243241 - Make RDTSC monotonic. r=jandem
We assume that the total number of cycles spent executing JS code
during an event is equal to the number of cycles in the "top group",
i.e. a group to which everything belongs. While this is true in
theory, RDTSC is actually non-monotonic, so we can end up with fewer
cycles reported for the top group than for some groups whose execution
was actually shorter. When we end up in this situation, groups with
more cycles than the top group will be reported as using more CPU than
was actually used.

This patch fixes the situation by proxying RDTSC behind a trivial API
that ensures that values are monotonic during each tick.

--HG--
extra : transplant_source : %3E%8Aj%12e%B9%A7%08i%8Ef%28%F5%5D69q%15%8E%99
2016-01-28 14:33:30 +01:00
..
ductwork/debugger Bug 1125423 part 2 - Rename stopAtOuter argument to *Unwrap functions to stopAtWindowProxy. r=bz 2015-11-06 19:03:52 +01:00
examples Bug 863089 - replace Debugger.Script.getOffsetLine with getOffsetLocation; r=fitzgen 2015-10-22 09:35:00 +02:00
ipc Bug 1242214 - Rename JSPropertyDescriptor JS::PropertyDescriptor in js. r=sstangl 2016-01-28 11:28:04 +01:00
public Bug 1244365 - Remove Traceable; r=sfink 2016-01-29 16:56:11 -08:00
src Bug 1243241 - Make RDTSC monotonic. r=jandem 2016-01-28 14:33:30 +01:00
xpconnect Bug 989960 - Unhandled rejections in DOM Promises should cause xpcshell tests to fail. r=Yoric 2016-02-03 12:58:03 +00:00