Commit Graph
97 Commits
Author SHA1 Message Date
Jan de Mooij 71d37a198e Bug 1237201 part 7 - Handle Vector OOM in nsPerformanceStats, telemetry. r=Yoric 2016-01-14 15:19:37 +01:00
David Rajchenbach-Teller 2f4a196f41 Bug 1238520 - Lowering the threshold for browser_addonPerformanceAlerts_2.js;r=me 2016-01-12 10:51:47 +01:00
David Rajchenbach-Teller bc40798d63 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.
2015-12-15 11:21:37 +01:00
Sami Jaktholm 1dd19cb188 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.
2015-12-22 20:15:17 +02:00
Dave Townsend 8dc7f59eb3 Bug 1229142: Link browser and toolkit test directory to the shared eslintrc files. r=Standard8 2015-11-30 13:05:00 -08:00
Ehsan Akhgari 2ff01a2a00 Bug 1229950 - Increase the timeout of browser_AddonWatcher.js 2015-12-30 22:27:40 -05:00
Dave Townsend dd9da1fea1 Bug 1229519: Fix miscellaneous parts of toolkit to pass eslint checks. r=MattN 2015-12-03 10:02:45 -08:00
Nathan Froyd 54dfa729a9 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 4202706f19 Bug 1186491 - Reworking AddonWatcher to use low-level performance watch API;r=mossop 2015-11-24 13:36:58 +01:00
David Rajchenbach-Teller 8df2cada0d Bug 1186491 - An API for watching slow performance alerts (js-level);r=felipe 2015-11-24 13:37:19 +01:00
David Rajchenbach-Teller 1a948e69b9 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.
2015-11-24 13:37:32 +01:00
David Rajchenbach-Teller 3d37bc1b53 Bug 1186491 - Splitting nsIPerformanceStats in two;r=froydnj 2015-10-23 10:58:40 +02:00
Mark Banner e1e6f5c794 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 c093571649 Bug 967873 - Test changes for async removeTab (r=Gijs) 2015-11-04 10:56:15 -08:00
Carsten "Tomcat" Book d50cc9a6ee Merge mozilla-central to fx-team 2015-11-02 12:05:19 +01:00
Birunthan Mohanathas ac37dec517 Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Landry Breuil cc35fe59d8 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 7b8179a1fc Bug 1217218 - Consolidate shutdown of nsPerformanceStatsService. r=froydnj 2015-10-22 21:01:47 +02:00
David Rajchenbach-Teller 75fe7ea33c Bug 1188248 - Merge jank monitoring and CPOW monitoring (high-level);r=mossop 2015-07-30 15:21:08 +02:00
David Rajchenbach-Teller eb24794560 Bug 1188248 - Merge jank monitoring and CPOW monitoring (low-level);r=jandem,yoric 2015-09-28 12:31:31 +02:00
Birunthan Mohanathas d382a21947 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 8f8794e1c7 Bug 1216401: Eviscerate nsIDOMWindow, move still needed methods to nsPIDOMWindow. r=bz 2015-10-26 14:37:32 -07:00
David Rajchenbach-Teller 15b14c1a22 Bug 1208747 - Move most of Stopwatch-related code to XPCOM-land (documentation);r=froydnj 2015-10-02 12:52:49 +02:00
David Rajchenbach-Teller 8d77a9b0c1 Bug 1208747 - Move most of Stopwatch-related code to XPCOM-land (JS-level);r=felipe 2015-09-25 18:44:34 +02:00
David Rajchenbach-Teller 8d8035d838 Bug 1208747 - Move most of Stopwatch-related code to XPCOM-land (XPCOM-level + XPConnect-level);r=froydnj 2015-10-02 23:44:23 +02:00
Carsten "Tomcat" Book 5319c04bcc Backed out changeset 33afbc6c4997 (bug 1208747) 2015-10-21 11:39:22 +02:00
Carsten "Tomcat" Book 868b28d115 Backed out changeset 5b288d315423 (bug 1208747) 2015-10-21 11:39:21 +02:00
Carsten "Tomcat" Book 58a5130224 Backed out changeset fcc11758f25f (bug 1208747) 2015-10-21 11:39:20 +02:00
David Rajchenbach-Teller 9519a12fdf Bug 1208747 - Move most of Stopwatch-related code to XPCOM-land (documentation);r=froydnj 2015-10-02 12:52:49 +02:00
David Rajchenbach-Teller 03d4bcb70f Bug 1208747 - Move most of Stopwatch-related code to XPCOM-land (JS-level);r=felipe 2015-09-25 18:44:34 +02:00
David Rajchenbach-Teller f1cc78b023 Bug 1208747 - Move most of Stopwatch-related code to XPCOM-land (XPCOM-level + XPConnect-level);r=froydnj 2015-10-02 23:44:23 +02:00
Nathan Froyd 4e6d8f6705 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Alexandre Poirot f1439bdbe8 Bug 1204812 - Keep Console.jsm in toolkit/modules/ r=jryans,Mossop 2015-10-15 03:45:22 -07:00
Bill McCloskey 2a56c79f67 Back out bug 967873 - Test changes for async removeTab 2015-10-07 11:15:11 -07:00
Carsten "Tomcat" Book 036e6d2fa3 Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Carsten "Tomcat" Book 12369728f5 Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)
2015-10-07 12:13:45 +02:00
Shu-yu Guo 474f49adb7 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Bill McCloskey 1159864e94 Bug 967873 - Test changes for async removeTab (r=Gijs) 2015-10-01 21:18:05 -07:00
David Rajchenbach-Teller 9591e43cdd Bug 1189799 - Make sure that about:performance displays each add-on only once (more tests);r=felipe 2015-09-03 15:12:59 +02:00
David Rajchenbach-Teller 5df0e0f41f Bug 1189799 - Make sure that about:performance displays each add-on only once (back-end);r=felipe 2015-08-25 17:05:02 +02:00
David Rajchenbach-Teller 9a1e6b3488 Bug 1205840 - Typo fixes in AddonWatcher.jsm. r=felipe 2015-09-19 15:46:17 +02:00
J. Ryan Stinnett 2dada8f365 Bug 912121 - Rewrite require / import to match source tree. rs=devtools
In a following patch, all DevTools moz.build files will use DevToolsModules to
install JS modules at a path that corresponds directly to their source tree
location.  Here we rewrite all require and import calls to match the new
location that these files are installed to.
2015-09-21 12:04:18 -05:00
Shu-yu Guo 37989840cd Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
David Rajchenbach-Teller f3bbfacecd Bug 1200172 - AddonWatcher now discards data if the system is apparently too busy/just back from hibernation. r=mossop 2015-08-31 16:03:19 +02:00
David Rajchenbach-Teller e95e947504 Bug 1200138 - AddonWatcher now uses groupId to subtract between two instances of an add-on. r=felipe 2015-08-31 10:20:19 +02:00
Nicholas Nethercote 12fec02dfb Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
2015-08-27 20:44:53 -07:00
David Rajchenbach-Teller 67603e8af8 Bug 1199603 - Don't wait for shutdown to update nsPerformanceStats Telemetry. r=Mossop 2015-08-28 12:14:01 +02:00
David Rajchenbach-Teller 988db93f68 Bug 1197966 - Fix typo when releasing content-side probes in PerformanceStats-content.js. r=felipe 2015-08-25 17:18:09 +02:00
Ryan VanderMeulen 7b784d740a Merge inbound to m-c. a=merge 2015-08-25 16:49:55 -04:00
David Rajchenbach-Teller b4031b6c19 Bug 1198167 - nsPerformanceStatsService should wait for profile-before-change, not profile-before-shutdown. r=yoric 2015-08-25 11:20:40 +02:00