Commit Graph

4138 Commits

Author SHA1 Message Date
Mark Banner
8be1b0f008 Bug 1331006 - [eslint] Define more globals, and add a rule to import test globals from SimpleTest/EventUtils. r=mossop
MozReview-Commit-ID: 5ifWLAa8wG2

--HG--
extra : rebase_source : a5698cb08548a547faf9a9379cacaca428b67c00
2017-01-12 10:24:10 +00:00
Julian Descottes
25012b4646 Bug 1331355 - Remove missing browser-devedition.js from import-browserjs-globals.js;r=me
MozReview-Commit-ID: LqmujVGrC6a

--HG--
extra : rebase_source : 364124793597b70e811d81941d6bfcb496e2c160
2017-01-16 13:22:25 +01:00
Sylvestre Ledru
6d2f73025d Bug 1329191 - Download clang-format 4.0 from tooltool and add a checksum check. Flake8 on the rest of the file r=gps
MozReview-Commit-ID: FKTrXgVdjZs

--HG--
extra : rebase_source : 86b9373aab04d7e6fc66e8344f09ab61dcbd4f4c
2017-01-06 15:52:07 +01:00
Sylvestre Ledru
7b9a8fa62e Bug 1329191 - Download clang-format 4.0 from tooltool and add a checksum check r=gps
MozReview-Commit-ID: 2ta8m6yHXZc

--HG--
extra : rebase_source : 827786f672d88137b8f706f583f45da9f4d63f17
2017-01-06 15:51:40 +01:00
Wes Kocher
f8a62a9ce6 Merge m-c to inbound, a=merge
MozReview-Commit-ID: ASajzspkOe1
2017-01-13 15:48:34 -08:00
Florian Quèze
7dc82706aa Bug 1330464 - make no-useless-parameters.js not use array.includes, r=jaws over IRC.
--HG--
extra : rebase_source : 18b2df2e8209777b786a9aa939b3b94548c67a33
2017-01-13 21:21:16 +01:00
Florian Quèze
22d9b71466 Bug 1330464 - make the no-useless-parameters eslint rule detect misuses of the Services.prefs APIs, r=jaws. 2017-01-13 20:21:55 +01:00
Luke Wagner
094950cd37 Bug 1330150 - Don't abandon sample if native stack walk fails (r=ehsan)
MozReview-Commit-ID: CyPPGEGX8R2
2017-01-12 17:40:20 -06:00
Jan Beich
9e123aa5bd Bug 1329467 - Drop non-SPS version of AutoProfilerRegister. r=mstange
MozReview-Commit-ID: 9lZLPAi5ZZT

--HG--
extra : rebase_source : 4dc3e2926b80308d9a7ec2e23b505518c9e10b02
2017-01-09 23:03:22 +00:00
Jan Beich
ab093993b7 Bug 1329467 - Move remaining *RAII classes from GeckoProfiler under mozilla namespace. r=mstange
MozReview-Commit-ID: I8qqGDLJkgo

--HG--
extra : rebase_source : eeda752a75c050e5f88851d7401a462d86c24b80
2017-01-09 22:11:58 +00:00
Jan Beich
4676a59c08 Bug 1329467 - Revert bug 1151829 to unbreak non-SPS build after bug 1322553. r=mstange
MozReview-Commit-ID: 14QL0Unr84G

--HG--
extra : rebase_source : 0b0cd50d4c08bfc1d16f648a40c21ce56a72af5f
2017-01-09 21:46:56 +00:00
Carsten "Tomcat" Book
3ad97e202a merge mozilla-inbound to mozilla-central a=merge 2017-01-12 10:14:43 +01:00
Eric Rahm
87cfbc1b65 Bug 1322735 - Remove MOZ_STACKWALKING define. r=glandium
With frame pointer omission disabled we should always have usable stacks on Windows. This allows us to remove the MOZ_STACKWALKING define as it will always be enabled.

MozReview-Commit-ID: 54xs3Hf1r4P

--HG--
extra : rebase_source : dfaf13fb4c2185985f4f074c338ccf1fef8f3c94
2016-12-20 15:11:36 -08:00
Florian Quèze
a03918c148 Bug 1330147 - automatic removal of the third boolean parameter in removeObserver calls, r=jaws. 2017-01-11 22:27:42 +01:00
Florian Quèze
02daed043c Bug 1330147 - add eslint rule to reject newURI(uri, null, null) and removeObserver(notificationName, observer, false), r=jaws. 2017-01-11 22:27:42 +01:00
Mark Banner
1b9c7c6e5c Bug 1330071 - Add a couple of basic unit tests for our custom eslint rules. Currently these are not automatic. r=mossop
MozReview-Commit-ID: AUMmPQ5qDgb

--HG--
extra : rebase_source : ef05e88ea1de93de54c9e5ed8828b69e0220a2d3
2017-01-10 20:48:52 +00:00
Phil Ringnalda
1c2d0d367f Backed out 3 changesets (bug 1322735) for ASan leaks and xpcshell/selftest.py failures
CLOSED TREE

Backed out changeset 01cfc71ce542 (bug 1322735)
Backed out changeset 84c729c41230 (bug 1322735)
Backed out changeset b419aaefae95 (bug 1322735)
2017-01-10 20:17:34 -08:00
Eric Rahm
2e195de610 Bug 1322735 - Remove MOZ_STACKWALKING define. r=glandium
With frame pointer omission disabled we should always have usable stacks on Windows. This allows us to remove the MOZ_STACKWALKING define as it will always be enabled.

MozReview-Commit-ID: 54xs3Hf1r4P

--HG--
extra : rebase_source : 5fe27cdeeb464d81fbedc8c02ac187658bd759e7
2016-12-20 15:11:36 -08:00
Wes Kocher
269e3163e5 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 6wWFiDQ0QJ8
2017-01-10 18:35:54 -08:00
Thinker K.F. Li
ac11da5245 Bug 1319669 - Add class AutoScopedLabel. r=cyu
--HG--
extra : rebase_source : 7f39a2a74117442126c2280d35d80a45eecdcf57
2017-01-09 18:46:00 +01:00
Carsten "Tomcat" Book
89882dc5f4 merge mozilla-inbound to mozilla-central a=merge 2017-01-10 12:11:31 +01:00
Phil Ringnalda
1501dc93d8 Backed out changeset e39a1f381b85 (bug 1329861) for failures in browser_webconsole_console_trace_async.js and browser_net_cause.js
CLOSED TREE

MozReview-Commit-ID: GeiUQqUy9NG
2017-01-09 21:30:17 -08:00
Ehsan Akhgari
232b749f36 Bug 1329861 - Disable async stack capturing while profiling using the Gecko Profiler; r=mstange 2017-01-10 11:29:52 +08:00
Nathan Froyd
e4b0546d8d Bug 1329634 - actually call profiler_tracing in GeckoProfilerTracingRAII constructor; r=mstange 2017-01-09 18:50:53 -05:00
Mark Banner
582fcb8090 Bug 1329614 - [eslint] Catch more cases of importing globals from 'var foo = Cu.import('...');'. r=jaws
MozReview-Commit-ID: 5NKHHb70YA6

--HG--
extra : rebase_source : 4551e56f56065349fb9ddc8d90e67f9dc84c1701
2017-01-09 10:12:26 +00:00
Jan Beich
b492741091 Bug 1329291 - Unbreak build on non-SPS platforms after bug 1142197. r=froydnj
MozReview-Commit-ID: LIfC5mj8uzL

--HG--
extra : rebase_source : 5290d461c6bba0d26b7ff1dbbc42964af8dcb8cc
2017-01-08 03:03:39 +00:00
Jan Beich
f77c4a415c Bug 1329466 - Unbreak build on non-SPS platforms after bug 1323100. r=mstange
MozReview-Commit-ID: Af1CuVYSNCj

--HG--
extra : rebase_source : ac6c76674785912a24081e7140df33ec0c2789e1
2017-01-08 03:04:48 +00:00
Nathan Froyd
9f924cc32c Bug 1322553 - part 1 - add a non-backtrace-taking constructor for GeckoProfilerTracingRAII; r=mstange
Sometimes there's no backtrace available, but you still want to denote
an interesting event.
2017-01-07 15:56:49 -05:00
Ryan VanderMeulen
1e6f972917 Merge inbound to m-c. a=merge 2017-01-07 11:22:47 -05:00
Sylvestre Ledru
33bf059a2e Bug 1329201 - Remove check-moz-style from m-c r=Ms2ger
MozReview-Commit-ID: 4uG6uEyMN7w

--HG--
extra : rebase_source : 0edf02bb458c687c696508b7d2df39ada51f73d4
2017-01-06 16:17:45 +01:00
Iris Hsiao
7e248d8cc9 Merge mozilla-central to autoland 2017-01-06 11:13:22 -05:00
Markus Stange
4bdc4ca0fb Bug 1323100 - Register most of the remaining threadfunc threads with the profiler. r=froydnj
As far as I can tell, this covers all the remaining threads which we start
using PR_CreateThread, except the ones that are created inside NSPR or NSS,
and except for the Shutdown Watchdog thread in nsTerminator.cpp and the
CacheIO thread. The Shutdown Watchdog thread stays alive past leak detection
during shutdown (by design), so we'd report leaks if we profiled it. The
CacheIO thread seems to stay alive past shutdown leak detection sometimes as
well.

This adds a AutoProfilerRegister stack class for easy registering and
unregistering. There are a few places where we still call
profiler_register_thread() and profiler_unregister_thread() manually, either
because registration happens conditionally, or because there is a variable that
gets put on the stack before the AutoProfilerRegister (e.g. a dynamically
generated thread name). AutoProfilerRegister needs to be the first object on
the stack because it uses its own `this` pointer as the stack top address.

MozReview-Commit-ID: 3vwhS55Yzt

--HG--
extra : rebase_source : 56dd27282e7bd09a7e7dc7ca09ccfe3a0198e7af
2017-01-05 16:34:26 +01:00
Mark Banner
4fbabbbacb Bug 1328565 - bump the eslint-plugin-mozilla version to ensure developers get the changes installed properly. r=bustage-fix
commit 9b316dd630c7777efd347dfc7d93c9c2cf4f69ae
Author: Mark Banner <standard8@mozilla.com>
    Follow-up to bug 1328565 - bump the eslint-plugin-mozilla version to ensure deveelopers get the changes installed properly. r=bustage-fix-for-developers

    MozReview-Commit-ID: G4qbsRNqual
2017-01-05 08:49:44 +00:00
Mark Banner
46ee297329 Bug 1328565 - Prevent cases of Cu.import importing into variables and global scope at the same time. r=mossop
MozReview-Commit-ID: CXly2RhNpRP

--HG--
extra : rebase_source : 9b9a8542bbd437aa0160c122b1b826e08de03009
2017-01-04 19:37:43 +00:00
J. Ryan Stinnett
c2bd027ba3 Bug 1326479 - Update ESLint to 3.12.2. r=jaws
MozReview-Commit-ID: 472UvTOhP2R

--HG--
extra : rebase_source : 2bc3cd4cd451a61a49d5059430ae4ed9c6d1496f
2016-12-30 15:23:15 -06:00
Joel Maher
767b9e9306 Bug 1253155 - remove test_saved_stacks.js as it isn't useful. r=fitzgen
MozReview-Commit-ID: FLBM9k6jpn6
2016-12-30 12:30:17 -05:00
Wes Kocher
26a1ba5c14 Backed out 27 changesets (bug 1323100) for clipboard leaktest failures a=backout
Backed out changeset 84fb749698ab (bug 1323100)
Backed out changeset d6d25e8bd001 (bug 1323100)
Backed out changeset 1b0855bb0c38 (bug 1323100)
Backed out changeset b6953e3f5739 (bug 1323100)
Backed out changeset 5572f3b63215 (bug 1323100)
Backed out changeset 12fb4c533659 (bug 1323100)
Backed out changeset c36524e4e919 (bug 1323100)
Backed out changeset 1e3b3eddbe26 (bug 1323100)
Backed out changeset 061110f1ae12 (bug 1323100)
Backed out changeset 413dbd31725b (bug 1323100)
Backed out changeset 06550f7eca62 (bug 1323100)
Backed out changeset 940933b13b36 (bug 1323100)
Backed out changeset a6d75c1cd724 (bug 1323100)
Backed out changeset 681cacbbaa3b (bug 1323100)
Backed out changeset 3d53787293f6 (bug 1323100)
Backed out changeset c0340dfe4766 (bug 1323100)
Backed out changeset 9f554991549d (bug 1323100)
Backed out changeset 757539e7039a (bug 1323100)
Backed out changeset a3c9b45aa917 (bug 1323100)
Backed out changeset 23d69df98a66 (bug 1323100)
Backed out changeset 1297ded6a01d (bug 1323100)
Backed out changeset f4235b97257f (bug 1323100)
Backed out changeset 93419cb4f29f (bug 1323100)
Backed out changeset 865d1b81c804 (bug 1323100)
Backed out changeset 54acf4ef8e84 (bug 1323100)
Backed out changeset 88d17bcd8205 (bug 1323100)
Backed out changeset 0c466e5e8933 (bug 1323100)
2016-12-29 16:28:36 -08:00
Markus Stange
2319d2881d Bug 1324941 - Add a profiler label and a profiler marker for DOMEvent dispatch. r=smaug
MozReview-Commit-ID: 9nyftWPKRVe

--HG--
extra : rebase_source : 0ef900fa5c7749dd5bcec32da6b37aad91f0a518
2016-12-23 12:44:35 +01:00
Markus Stange
48513de60f Bug 1323100 - Register most of the remaining threadfunc threads with the profiler. r=froydnj
As far as I can tell, this covers all the remaining threads which we start
using PR_CreateThread, except the ones that are created inside NSPR or NSS.

This adds a AutoProfilerRegister stack class for easy registering and
unregistering. There are a few places where we still call
profiler_register_thread() and profiler_unregister_thread() manually, either
because registration happens conditionally, or because there is a variable that
gets put on the stack before the AutoProfilerRegister (e.g. a dynamically
generated thread name). AutoProfilerRegister needs to be the first object on
the stack because it uses its own `this` pointer as the stack top address.

MozReview-Commit-ID: 3vwhS55Yzt

--HG--
extra : rebase_source : dffab11abf7d4b57fa54475fd22e71b84375cd7b
2016-12-29 22:32:52 +01:00
Wes Kocher
c4adb53fc9 Merge m-c to inbound, a=merge
MozReview-Commit-ID: IQlYASgyniL
2017-01-05 17:32:50 -08:00
Steve Fink
bb5723d671 Bug 1326134 - Report whether javascript.options.asyncstack is active, r=fitzgen
--HG--
extra : rebase_source : dce39aa1d4c1c3ae264beb3bd6ea2866b6d960b7
2016-12-28 17:33:12 -08:00
Steve Fink
3949f5f1e8 Bug 1326134 - Report DEBUG builds in profiles, r=mstange
--HG--
extra : rebase_source : 6b63ad187df9f1591e30397e017c69277d014697
2016-12-28 17:20:42 -08:00
Steve Fink
8ccd756578 Bug 1326134 - Report whether GC poisoning is enabled in profiles, r=jonco
--HG--
extra : rebase_source : 8b64acda00627b1ab9c8ba3666dc0dc4e51819d9
2016-12-28 17:12:23 -08:00
Nathan Froyd
e618b8d55a Bug 1328408 - make Sampler::GetRegisteredThreads not copy the registered threads list; r=mstange
We call GetRegisteredThreads repeatedly on the sampler thread whenever
the profiler is active; there's no reason to have it churn memory.
2017-01-05 15:55:47 -05:00
Nathan Froyd
fea256a2e2 Bug 1328636 - move Sampler::{Register,Unregister}CurrentThread into common code; r=mstange
We have an abstraction over the current thread ID already, so we can use
that to get the current thread id and eliminate this bit of
cut-and-paste programming.
2017-01-05 15:41:09 -05:00
Nathan Froyd
977ac8192b Bug 1328370 - remove GeckoSampler::mPrimaryThreadProfile; r=mstange
The only interesting setter of this field is
GeckoSampler::GetPrimaryThreadProfile, which is unused.  Once that
function is removed, mPrimaryThreadProfile is set to null in
GeckoSampler's constructor and never changed or referenced.
2017-01-06 09:21:01 -05:00
Nathan Froyd
4039d9589a Bug 1142197 - manage ProfilerBacktrace with UniquePtr; r=mstange
Smart pointers are better than raw pointers.
2017-01-06 09:21:01 -05:00
Nathan Froyd
0dab5bba8e Bug 1322863 - part 3 - manage Sampler::PlatformData with UniquePtr; r=mstange
Smart pointers are better than raw pointers, and this makes clients of
PlatformData slightly simpler because they don't have to manage
destruction themselves: the new UniquePtr-derived type handles all of
that for us.
2017-01-06 09:21:01 -05:00
Nathan Froyd
5767fcd327 Bug 1322863 - part 2 - make ThreadInfo manage mProfile with UniquePtr; r=mstange
Smart pointers are better than raw pointers.  This change also has the
benefit of removing the manual memory management in ~GeckoSampler and
locating all the memory management in ThreadInfo, where it belongs.
2017-01-06 09:21:01 -05:00
Nathan Froyd
9a1517cd65 Bug 1322863 - part 1 - make ThreadInfo::mName a UniqueFreePtr; r=mstange
Smart pointers are better than raw pointers.
2017-01-06 09:21:01 -05:00