Граф коммитов

121 Коммитов

Автор SHA1 Сообщение Дата
Jan de Mooij ea775f40f5 Bug 1283855 part 21 - Make performance monitoring APIs take JSContext instead of JSRuntime. r=Yoric 2016-07-06 16:53:50 +02:00
Phil Ringnalda f95b09aadd Bug 1230018 - skip browser_compartments.js on Linux opt e10s for constant failures 2016-06-30 19:36:17 -07:00
Jon Coppeard a54a6f9345 Bug 1280407 - Use SystemAllocPolicy rather that the default with mozilla::Vector in the JS engine r=sfink r=fitzgen r=jandem 2016-06-18 10:46:13 +01:00
Sebastian Hengst 704cb4042f Backed out changeset afc3c6a5f93a (bug 1280407) for mass Spidermonkey failures. r=backout 2016-06-18 14:50:38 +02:00
Jon Coppeard c1235a507a Bug 1280407 - Use SystemAllocPolicy rather that the default with mozilla::Vector in the JS engine r=sfink r=fitzgen r=jandem 2016-06-18 10:46:13 +01:00
Sebastian Hengst 90043bfdaa Backed out changeset a58b9ab5dff0 (bug 1280407) for errors in testThreadingThread.cpp in SM(nu). r=backout 2016-06-18 12:53:01 +02:00
Jon Coppeard 404b8e32be Bug 1280407 - Use SystemAllocPolicy rather that the default with mozilla::Vector in the JS engine r=sfink r=fitzgen r=jandem 2016-06-18 10:46:13 +01:00
Mike Conley bd5f8d5d32 Bug 1277644 - Make sure browser_Addons_sample test add-on tests CPOWs when it is supposed to. r=Yoric
browser_Addons_sample is used by the browser_AddonWatcher.js test to make sure
we can properly detect when an add-on consumes a bunch of CPU or does a lot of
CPOW traffic.

There's a race condition in the add-on where what is supposed to be a CPOW
might not always be a CPOW, so when we try to cause a bunch of CPOW
traffic, we don't get the expected performance warnings.

This makes sure that when we try to simulate CPOW usage, we do it
with an actual CPOW.

Additionally, this commit also includes the unpacked source of the
add-on, which before wasn't in the tree. I've also taken the liberty
of bumping the add-on version and signing it.

MozReview-Commit-ID: GICLYpi8Kon

--HG--
extra : rebase_source : bc9537c701335806d4845113910b03fadadb5b77
2016-05-29 12:00:50 -04:00
David Rajchenbach-Teller b9cd80d622 Bug 1261702 - Make nsPerformanceStatsService::Dispose() idempotent,r=froydnj
Although I haven't been able to pinpoint why, it looks like
nsPerformanceStatsService::Dispose() may be called twice, which in
turn causes crashes. This patch makes sure that calling the method
twice is idempotent.

Also, just in case this was due to a typo in
AddObserver/RemoveObserver, this patch replaces the literal strings
used in both with constants.

MozReview-Commit-ID: 8fXO20r5xvO

--HG--
extra : rebase_source : 490f1a5186a426a41ab567e564cdbd46080262ec
2016-06-07 10:45:44 +02:00
Wes Kocher 9551fb6db5 Backed out changeset 66e0240f8c06 (bug 1261702) for mass assertion failures 2016-06-06 11:35:25 -07:00
David Rajchenbach-Teller 784f035bea Bug 1261702 - Make nsPerformanceStatsService::Dispose() idempotent,r=froydnj
Although I haven't been able to pinpoint why, it looks like
nsPerformanceStatsService::Dispose() may be called twice, which in
turn causes crashes. This patch makes sure that calling the method
twice is idempotent.

Also, just in case this was due to a typo in
AddObserver/RemoveObserver, this patch replaces the literal strings
used in both with constants.

MozReview-Commit-ID: 8fXO20r5xvO

--HG--
extra : rebase_source : 8b2eada3f9c80fe9feff880e985739a368e7b997
2016-05-30 12:24:50 +02:00
Bill McCloskey ee661f78d3 Bug 1270628 - Stop using content-child-shutdown observer in nsPerformanceStats (r=Yoric) 2016-05-27 17:22:21 -07:00
Dave Townsend 6e44ebad84 Bug 1257246: Update toolkit for eslint 2. r=Gijs
Most of this is fixing functions that in some cases return a value but then
can also run to completion without returning anything. ESLint 2 catches this
where previous versions didn't. Unless there was an obvious other choice I just
made these functions return undefined at the end which is effectively what
already happens.

MozReview-Commit-ID: KHYdAkRvhVr

--HG--
extra : rebase_source : 720cc9d864175248508146a7f4704b4bf3f02439
extra : histedit_source : 6cc0ecbf21a571e1a41d517b67512a3452fac19a
2016-04-05 11:33:48 -07:00
Dave Townsend 61b99aec71 Bug 1250611: Fix more tests to use signed add-ons. r=rhelmer
MozReview-Commit-ID: 97RVVxAM5eo

--HG--
extra : rebase_source : bfbec29b8eba2ee1c4b4ce1fb2415c5dab21e5ab
2016-02-29 10:04:55 -08:00
J. Ryan Stinnett e7d6c84c0a Bug 1204127 - Clean up paths added after migration. r=ochameau 2016-02-08 17:32:07 -06:00
Dave Townsend 0a6414b898 Bug 1245649: Turn on no-trailing-spaces. r=Gijs
--HG--
extra : commitid : F2OWKTvXUO4
extra : rebase_source : ec68631342e0edc59d77b6bab1cdc975ad175327
2016-02-03 14:22:33 -08:00
David Rajchenbach-Teller 8402fc035a Bug 1142937 - AddonWatcher now communicates through nsIObserverService. r=felipe
The current API of AddonWatcher only supports a single callback. That's pretty unfriendly to testing, debugging, add-ons, etc.

This patch replaces the mechanism with a notification through the nsIObserverService.

--HG--
extra : transplant_source : %C2%88%B1%DF%B2%B2.%A7%C7Ti%C8%A8%C0%CA0%15f%8D%C5
2016-01-27 13:34:58 +01:00
David Rajchenbach-Teller 17e41f6c46 Bug 1221761 - Probe.prototype.release() now swallows NS_ERROR_NOT_AVAILABLE. r=felipe
During shutdown, we may find ourselves attempting to release and shutdown a probe while the PerformanceStats service is already shutdown. In this case, since the probe is already shutdown, we can simply ignore the error.

--HG--
extra : transplant_source : %BBT%84%26.%AD%7B%23%1C%BC%3F%85%F9%18%A3%D8%84%EC%02%BE
2016-01-28 11:17:49 +01:00
Kyle Huey 91efc5a86c Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Carsten "Tomcat" Book b9e929e1a7 merge mozilla-inbound to mozilla-central a=merge 2016-01-27 11:59:49 +01:00
Mike Conley bc564553b4 Bug 1233497 - Do not resolve a Promise with a CPOW in browser_addonPerformanceAlerts.js r=Yoric
--HG--
extra : commitid : J0Wsk2huvoZ
extra : rebase_source : f4521791b2e7953955909de91e6085d9158d7ee7
2016-01-04 17:15:24 -05:00
David Rajchenbach-Teller a4607bcbef Bug 1219144 - Using the nsRefreshDriver's jank indication for performance monitoring;f?froydnj r=froydnj
This patch (currently WIP) alters the way we determine whether jank is user-visible or not.

Instead of measuring the total time spent doing JS, we now use an
indicator provided by the vsync driver: how long it takes to deliver
the signal from the vsync timer to the main thread. This lets us find
out more accurately if there is user-visible jank. In the future, this
will also let us add an observer to find out whether the process
itself is janky, regardless of JS.

--HG--
extra : rebase_source : a538e3cc9d8904f52d4a0e7bad291189986e4e6d
2016-01-14 15:07:18 +01:00
David Rajchenbach-Teller 01d67c795e Bug 1219144 - Performance alerts are now labelled with isJankVisible;r=avih,froydnj
To decrease the number of apparent false positives, we classify jank
alerts as visible or invisible. We use the following heuristic:
- if the process is currently animating something, any jank alert is visible;
- if the process has just handled a user input, any jank alert is visible;
- if some user input is handled during the current iteration, any jank alert is visible;
- otherwise, jank alerts are not visible.

--HG--
extra : rebase_source : 450661fb1106429a455b3e9f8f66fc477c22ccef
2016-01-12 10:45:22 +01:00
David Rajchenbach-Teller e60fcbe3af Bug 1241838 - Removing erroneous CPOW suffix, reworking buggy jank suffix;r=Felipe
--HG--
extra : rebase_source : 9cdc31a93a8e89a618c32fac70ffcc02beeb428e
2016-01-22 12:58:21 +01:00
Jan de Mooij 366cd49655 Bug 1237201 part 7 - Handle Vector OOM in nsPerformanceStats, telemetry. r=Yoric 2016-01-14 15:19:37 +01:00
David Rajchenbach-Teller d89b7c6795 Bug 1238520 - Lowering the threshold for browser_addonPerformanceAlerts_2.js;r=me
--HG--
extra : rebase_source : 8c8bbfae598afadf3f9027915148171d2306a8ae
2016-01-12 10:51:47 +01:00
David Rajchenbach-Teller 165537290b Bug 1200169 - Making the slow add-on watcher more tolerant;r=Felipe
Showing alerts more than once is annoying for the user and basically
useless. We therefore change a bit our strategy:

- if an add-on has behaved correctly for the last 5 minutes, reset our counter of offences;
- don't display alerts for an add-on more than once per 6 hours.

The only exception is if the add-on freezes the browser (i.e. causes
it to stop for more than 5 seconds at a time), in which case we
display the alert regardless of past offences, up to once per 10
minutes.

--HG--
extra : rebase_source : d61bf85407493551618ff0b7866ef15267cafd06
2015-12-15 11:21:37 +01:00
Sami Jaktholm 83d60ea279 Bug 1230027 - Stop burnCPOWInSandbox from being GC'd during tests. r=yoric
Since no one is holding a reference to the burnCPOWInSandbox function
in the child process, it might get GC'd during the test. Binding it to
the global object should keep the function alive long enough for the
test to call it via CPOW.

--HG--
extra : transplant_source : %60%97%A0%8D%1D%B6%D1G%A0h%2B%11%A9%05%C1%13%25%10cc
2015-12-22 20:15:17 +02:00
Dave Townsend 86f03db916 Bug 1229142: Link browser and toolkit test directory to the shared eslintrc files. r=Standard8
--HG--
extra : commitid : CKT2WDkxE4k
extra : rebase_source : 0be50c483317355b1e9af5985d53e85604748432
extra : histedit_source : 65d203f57ebd38b8c130e5db9aaa8ae3f507e7ac
2015-11-30 13:05:00 -08:00
Ehsan Akhgari 7f4b8317d0 Bug 1229950 - Increase the timeout of browser_AddonWatcher.js 2015-12-30 22:27:40 -05:00
Dave Townsend 6fcdc1e67d Bug 1229519: Fix miscellaneous parts of toolkit to pass eslint checks. r=MattN
--HG--
extra : commitid : 1iLsb7ZpSpI
extra : rebase_source : ed920934f04e520f5410454ec3930cd5992aa965
2015-12-03 10:02:45 -08:00
Nathan Froyd c381a6b86c Bug 1218454 - part 2 - don't #include nsContentUtils.h from CallbackObject.h; r=bz
We used to need nsContentUtils.h here for nsCxPusher, but since that got
moved to ScriptSettings.h, we no longer need nsContentUtils.h for
anything.
2015-10-26 12:14:47 -04:00
David Rajchenbach-Teller 477881cc13 Bug 1186491 - Reworking AddonWatcher to use low-level performance watch API;r=mossop
--HG--
extra : transplant_source : %CD%F4D%A6%85%FDF%7F%9E%D7%CEwS%9Bq%DE%07%9B4%EC
2015-11-24 13:36:58 +01:00
David Rajchenbach-Teller 389b1ebc07 Bug 1186491 - An API for watching slow performance alerts (js-level);r=felipe
--HG--
extra : transplant_source : .%14%3EFg%C2%D6O%E3%2C%FAl%25%AD%F9%CCAYC%B8
2015-11-24 13:37:19 +01:00
David Rajchenbach-Teller a5188a6c42 Bug 1186491 - An API for watching slow performance alerts (xpcom-level);r=froydnj
This patch introduces a new API to the nsPerformanceStatsService to register observers for slow performance. This API has several advantages:
- as it doesn't require polling, it also doesn't need to wake up the parent process every 15 seconds for the AddonWatcher;
- as it doesn't require polling, it doesn't need to wake up the child processes every time we wish to obtain data on slow performance;
- as it provides immediate data on performance alerts, it makes it possible to get rid of the complex and expensive post-processing performed by JS to merge data from all processes and attempt to extract performance alerts.

The old API is still available.

--HG--
extra : transplant_source : %84%B11%D3n%B4y%AAM%7C%B02%5E%3C%BA%B0%93%B6%FF%D5
2015-11-24 13:37:32 +01:00
David Rajchenbach-Teller 3cbbd4662e Bug 1186491 - Splitting nsIPerformanceStats in two;r=froydnj
--HG--
extra : transplant_source : _%5B%8Bk%5Cn%AD%E3%1D%CB%E5f%FF%04%D2%D861%F1%83
2015-10-23 10:58:40 +02:00
Mark Banner fbca33b0b0 Bug 1227138 - Fix browser_AddonWatcher not to fail if system add-ons are present. r=Mossop 2015-11-23 19:45:24 +00:00
Bill McCloskey c76ae8f933 Bug 967873 - Test changes for async removeTab (r=Gijs) 2015-11-04 10:56:15 -08:00
Carsten "Tomcat" Book 7a70d4ebe3 Merge mozilla-central to fx-team 2015-11-02 12:05:19 +01:00
Birunthan Mohanathas 9985829ecc Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Landry Breuil 12489bbca0 Bug 1220407 - include sys/resource.h for struct rusage and getrusage() on all unices, not linux only. r=yoric 2015-10-31 14:49:00 +01:00
David Rajchenbach-Teller 5d07bdc7b7 Bug 1217218 - Consolidate shutdown of nsPerformanceStatsService. r=froydnj
--HG--
extra : histedit_source : b4235360c5f038bbccfa13be1fcc063fca83a74b
2015-10-22 21:01:47 +02:00
David Rajchenbach-Teller ec335abb8b Bug 1188248 - Merge jank monitoring and CPOW monitoring (high-level);r=mossop
--HG--
extra : transplant_source : %7D%B7k%02.%09%9D%40%93%CB%DDm%1C%EE%27e%1D%02k%10
2015-07-30 15:21:08 +02:00
David Rajchenbach-Teller a4275e1833 Bug 1188248 - Merge jank monitoring and CPOW monitoring (low-level);r=jandem,yoric
--HG--
extra : transplant_source : %60%9F%E1%0Dm%E7%7F%83H%E8%C0e%16%60%F4%E3%EF_%906
2015-09-28 12:31:31 +02:00
Birunthan Mohanathas 44936aabb2 Bug 1217320 - Remove more XPIDL signature comments in .cpp files. r=froydnj
Comment-only, DONTBUILD.
2015-10-27 06:54:25 +02:00
Kyle Huey c7d3c4e21a Bug 1216401: Eviscerate nsIDOMWindow, move still needed methods to nsPIDOMWindow. r=bz 2015-10-26 14:37:32 -07:00
David Rajchenbach-Teller f717d06115 Bug 1208747 - Move most of Stopwatch-related code to XPCOM-land (documentation);r=froydnj
--HG--
extra : transplant_source : a%9E%F3%19%20UHB%89%BB%AA%B1%EA%972%F3%97I%C0%8F
2015-10-02 12:52:49 +02:00
David Rajchenbach-Teller f592701f52 Bug 1208747 - Move most of Stopwatch-related code to XPCOM-land (JS-level);r=felipe
--HG--
extra : transplant_source : %17%F9%03l%A4%E5%91y%5B%3FQ%E3%EF%C1%D5%10%B1%E4e%26
2015-09-25 18:44:34 +02:00
David Rajchenbach-Teller 3ff3f77f9e Bug 1208747 - Move most of Stopwatch-related code to XPCOM-land (XPCOM-level + XPConnect-level);r=froydnj
--HG--
extra : transplant_source : %91G%19%1A%B33%A8%2C%F4%D0%D1%A3%E0%20G%86%CE%DF%A5%9D
2015-10-02 23:44:23 +02:00
Carsten "Tomcat" Book a55a2ef59a Backed out changeset 33afbc6c4997 (bug 1208747) 2015-10-21 11:39:22 +02:00