mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 02:35:41 +00:00
68a3dd828b
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 |
||
---|---|---|
.. | ||
ductwork/debugger | ||
examples | ||
ipc | ||
public | ||
src | ||
xpconnect |