Commit Graph

13 Commits

Author SHA1 Message Date
Markus Stange
cefcf3a4e7 Bug 1509549 - Use ProfilerGetSymbols for geckoProfiler WebExtension symbolication and remove all other sources of symbolication. r=kmag
We will no longer parse Breakpad-generated .sym files, and we will no longer
call out to dump_syms.exe or nm.

This has a number of advantages:
 - It's simpler.
 - It's faster, especially for local builds on Windows.
 - It's more extensible. For example, we can now easily add code to the wasm
   module which consults debugging information in order to obtain filename +
   line information or inlined call stacks.
 - On Macs that don't have the Xcode command line tools installed, Xcode will
   no longer pop up a dialog because we no longer attempt to run 'nm'.

Depends on D13005

Differential Revision: https://phabricator.services.mozilla.com/D13006
2019-02-07 19:37:21 +00:00
Kris Maglione
856fa07b17 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16750
2019-01-17 10:18:31 -08:00
Nazım Can Altınova
a0cbfcd8bb Bug 1476775 - Part 1: Discard samples that are older than given duration r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D6267
2018-11-21 14:13:15 +00:00
Nazım Can Altınova
1f83dc12de Bug 1414383 - Return an error if nm requires xcode license to be accepted during symbolication r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D8037
2018-10-09 03:08:43 +00:00
Markus Stange
7def0b9dc3 Bug 1494488 - Stop demangling in the geckoProfiler WebExtension API because perf.html knows how to demangle now. r=dthayer
Differential Revision: https://phabricator.services.mozilla.com/D7335
2018-10-01 22:39:28 +00:00
Kris Maglione
0847e8227e Bug 1464548: Part 3 - Update callers to use defineLazyGlobalGetters. r=mccr8
MozReview-Commit-ID: 9APGewiDDYB
2018-05-25 17:02:29 -07:00
Markus Stange
45abeb5b6b Bug 1461056 - Remove haveAbsolutePath and tweak some error messages. r=dthayer
MozReview-Commit-ID: IyQIyNaKBy3
2018-05-14 16:03:24 -04:00
Markus Stange
cdc646de29 Bug 1461056 - Remove unneeded function urlForSymFile. r=dthayer
MozReview-Commit-ID: 4OZws4zihDq
2018-05-14 23:37:18 -04:00
Markus Stange
ad74e2e76a Bug 1461056 - Remove the "remoteBreakpad" symbol rule, because it's no longer needed. r=dthayer
MozReview-Commit-ID: 6c2hWCtZ0UH
2018-05-11 23:18:44 -04:00
Andrew Swan
dfdaca71bf Bug 1450388 Part 1 Refactor EventManager r=kmag
As we add more behaviors to EventManager, the signature of the constructor
is going to get really clumsy.  Head that off by converting it to take a
general parameters object.

This introduces a compatibility problem for existing webextension experiments,
put in a backward-compatibility shim for now.

MozReview-Commit-ID: 72QDfiwRm5j
2018-03-14 14:52:44 -07:00
Kris Maglione
12808f301b Bug 1372406: Stop misusing import-globals-from in extension API scripts. r=aswan
MozReview-Commit-ID: FTkcmuguOwq
2018-03-25 21:20:17 -07:00
Margareta Eliza Balazs
6f3465c977 Backed out changeset 6af40fb76692 (bug 1372406) for Doc lint failure in builds/worker/checkouts/gecko/docs-out/html/main/_staging/python/mach.commands.rst on a CLOSED TREE 2018-03-28 07:26:10 +03:00
Kris Maglione
908b434d49 Bug 1372406: Stop misusing import-globals-from in extension API scripts. r=aswan
MozReview-Commit-ID: FTkcmuguOwq
2018-03-25 21:20:17 -07:00