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

287 Коммитов

Автор SHA1 Сообщение Дата
Greg Tatum a73463458c Bug 1617208 - Make about:profiling available everywhere by removing ifdef; r=julienw
This enables about:profiling everywhere, and removes the ifdefs. I can confirm that it
does not break things on a full Beta simulation in my manual tests. The DevTools panel
cannot be enabled. The popup cannot be enabled either.

Differential Revision: https://phabricator.services.mozilla.com/D63706

--HG--
extra : moz-landing-system : lando
2020-02-25 20:42:10 +00:00
Greg Tatum 7a74223d84 Bug 1597378 - Migrate profiler popup tests; r=julienw
This commit adds tests for the profiler popup, and migrates some of the
older ones to use about:profiling instead.

Differential Revision: https://phabricator.services.mozilla.com/D62915

--HG--
rename : devtools/client/performance-new/test/browser/browser_popup-env-restart-button.js => devtools/client/performance-new/test/browser/browser_aboutprofiling-env-restart-button.js
rename : devtools/client/performance-new/test/browser/browser_popup-features-disabled.js => devtools/client/performance-new/test/browser/browser_aboutprofiling-features-disabled.js
rename : devtools/client/performance-new/test/browser/browser_popup-end-to-end-click.js => devtools/client/performance-new/test/browser/browser_popup-record-capture.js
extra : moz-landing-system : lando
2020-02-25 20:41:15 +00:00
Greg Tatum f34a461b3d Bug 1597378 - Create new UI for the profiler popup; r=julienw
This commit implements the actual UI changes. A follow-up commit adds the
tests for the changes. The CSS is a little bit awkard since it uses lots of
ID selectors rather than class selectors. I wanted to be able to write quick
selects, since it's selecting across the entire browser document. I feel
a little conflicted with the approach, as I would prefer to use classes in
general.

The panel.jsm.js file collects all of the UI handling changes rather than
having everything in menu-button.jsm.js, as the latter can get loaded
at startup. I'm not sure if it's completely worth the trouble of having
two files, as most of it should be pretty light.

This commit does not handle localization for the panel, as we should be moving
to Fluent. Rather than solve that here, I will follow-up with it in Bug 1599774.

Differential Revision: https://phabricator.services.mozilla.com/D62914

--HG--
extra : moz-landing-system : lando
2020-02-25 20:39:27 +00:00
Greg Tatum 7bfba0e99e Bug 1597378 - Remove old popup implementation; r=julienw
This commit removes the old popup implementation, but does not implement the new one
yet. This is in a follow-up commit. The client is in a bit of an awkard state where
it is mid-transition to a new architecture. Some of the code comments and documentation
were updated to reflect the changes coming up.

Differential Revision: https://phabricator.services.mozilla.com/D62913

--HG--
extra : moz-landing-system : lando
2020-02-25 20:37:53 +00:00
Greg Tatum 08b378c2c8 Bug 1597378 - Change location of the presets; r=julienw
The presets in recording-utils.js couldn't be shared via the ChromeUtils.import
mechanism. When they were in recording-utils.js they could only be loaded in
via the DevTools require() loader. This commit changes it so that they are
stored in a jsm, and are also injected to each UI interface where the
ChromeUtils.import function is available (only in the initializers).

Differential Revision: https://phabricator.services.mozilla.com/D62912

--HG--
extra : moz-landing-system : lando
2020-02-25 20:36:34 +00:00
Arthur Iakab 854fd7a3b4 Backed out 6 changesets (bug 1144438, bug 1617208, bug 1597378) for causing mochitest failures on test_perf-settings-entries.html.
Backed out changeset 2181d8a99229 (bug 1617208)
Backed out changeset 38c8db44b398 (bug 1597378)
Backed out changeset b2f0cf9a387e (bug 1597378)
Backed out changeset 4d1ff8bd4e64 (bug 1597378)
Backed out changeset 9b760d8fc1dc (bug 1597378)
Backed out changeset bc5727185383 (bug 1144438)

--HG--
rename : devtools/client/performance-new/test/browser/browser_popup-record-capture.js => devtools/client/performance-new/test/browser/browser_popup-end-to-end-click.js
rename : devtools/client/performance-new/test/browser/browser_aboutprofiling-env-restart-button.js => devtools/client/performance-new/test/browser/browser_popup-env-restart-button.js
rename : devtools/client/performance-new/test/browser/browser_aboutprofiling-features-disabled.js => devtools/client/performance-new/test/browser/browser_popup-features-disabled.js
2020-02-25 20:51:07 +02:00
Greg Tatum e5d64933bf Bug 1617208 - Make about:profiling available everywhere by removing ifdef; r=julienw
This enables about:profiling everywhere, and removes the ifdefs. I can confirm that it
does not break things on a full Beta simulation in my manual tests. The DevTools panel
cannot be enabled. The popup cannot be enabled either.

Differential Revision: https://phabricator.services.mozilla.com/D63706

--HG--
extra : moz-landing-system : lando
2020-02-25 16:49:51 +00:00
Greg Tatum 139eec011c Bug 1597378 - Migrate profiler popup tests; r=julienw
This commit adds tests for the profiler popup, and migrates some of the
older ones to use about:profiling instead.

Differential Revision: https://phabricator.services.mozilla.com/D62915

--HG--
rename : devtools/client/performance-new/test/browser/browser_popup-env-restart-button.js => devtools/client/performance-new/test/browser/browser_aboutprofiling-env-restart-button.js
rename : devtools/client/performance-new/test/browser/browser_popup-features-disabled.js => devtools/client/performance-new/test/browser/browser_aboutprofiling-features-disabled.js
rename : devtools/client/performance-new/test/browser/browser_popup-end-to-end-click.js => devtools/client/performance-new/test/browser/browser_popup-record-capture.js
extra : moz-landing-system : lando
2020-02-25 16:49:31 +00:00
Greg Tatum 10b5ed8b35 Bug 1597378 - Create new UI for the profiler popup; r=julienw
This commit implements the actual UI changes. A follow-up commit adds the
tests for the changes. The CSS is a little bit awkard since it uses lots of
ID selectors rather than class selectors. I wanted to be able to write quick
selects, since it's selecting across the entire browser document. I feel
a little conflicted with the approach, as I would prefer to use classes in
general.

The panel.jsm.js file collects all of the UI handling changes rather than
having everything in menu-button.jsm.js, as the latter can get loaded
at startup. I'm not sure if it's completely worth the trouble of having
two files, as most of it should be pretty light.

This commit does not handle localization for the panel, as we should be moving
to Fluent. Rather than solve that here, I will follow-up with it in Bug 1599774.

Differential Revision: https://phabricator.services.mozilla.com/D62914

--HG--
extra : moz-landing-system : lando
2020-02-25 16:47:19 +00:00
Greg Tatum b328f26823 Bug 1597378 - Remove old popup implementation; r=julienw
This commit removes the old popup implementation, but does not implement the new one
yet. This is in a follow-up commit. The client is in a bit of an awkard state where
it is mid-transition to a new architecture. Some of the code comments and documentation
were updated to reflect the changes coming up.

Differential Revision: https://phabricator.services.mozilla.com/D62913

--HG--
extra : moz-landing-system : lando
2020-02-25 16:45:47 +00:00
Greg Tatum c773b9bc0f Bug 1597378 - Change location of the presets; r=julienw
The presets in recording-utils.js couldn't be shared via the ChromeUtils.import
mechanism. When they were in recording-utils.js they could only be loaded in
via the DevTools require() loader. This commit changes it so that they are
stored in a jsm, and are also injected to each UI interface where the
ChromeUtils.import function is available (only in the initializers).

Differential Revision: https://phabricator.services.mozilla.com/D62912

--HG--
extra : moz-landing-system : lando
2020-02-25 16:44:19 +00:00
Markus Stange cb4b236c58 Bug 1615436 - Allow capturing profiles even when profiling was started by another tool. r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D62825

--HG--
extra : moz-landing-system : lando
2020-02-18 16:23:50 +00:00
Greg Tatum 27ffbb2854 Bug 1615413 - Do not use presets in the DevTools panel for performance-new; r=mstange
The default preset is "web-developer", and the DevTools panel was using that
preset over the custom values until at least one value was tweaked. This patch
changes the UI to only use the "custom" preset when in the DevTools panel. This
panel code will all be removed soon, so this is only a migration step.

Differential Revision: https://phabricator.services.mozilla.com/D62956

--HG--
extra : moz-landing-system : lando
2020-02-14 20:39:27 +00:00
Greg Tatum f656d38f91 Bug 1614712 - Add a requestId to the profiler's WebChannel messages; r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D62459

--HG--
extra : moz-landing-system : lando
2020-02-12 22:30:51 +00:00
Greg Tatum ab1649cafe Bug 1614667 - Only run webchannel test on desktop Nightly; r=julienw
This test isn't ready to be run on all versions of Firefox yet. It is
part of the suite of changes for the new about:profiling workflow.

Differential Revision: https://phabricator.services.mozilla.com/D62458

--HG--
extra : moz-landing-system : lando
2020-02-11 17:27:44 +00:00
Greg Tatum 32556a6521 Bug 1602079 - Add a mochitest to test the profiler.firefox.com WebChannel; r=julienw
This test covers the basic enabling of the profiler popup menu button.

Differential Revision: https://phabricator.services.mozilla.com/D57123

--HG--
extra : moz-landing-system : lando
2020-02-10 15:53:23 +00:00
Greg Tatum 38f00a26ce Bug 1602079 - Add a test for profiler.firefox.com WebChannel validation; r=julienw
We want to be sure that the URL used for the WebChannel is validated to an
allowed set of domains. This test ensures that we are not allowing unknown
domains through.

Differential Revision: https://phabricator.services.mozilla.com/D57122

--HG--
extra : moz-landing-system : lando
2020-02-10 15:53:08 +00:00
Greg Tatum d56410932c Bug 1602079 - Add a WebChannel to profiler.firefox.com; r=julienw,jdescottes
This commit adds a WebChannel mechanism to the profiler popup workflow.
This will enable us to provide some configuration operations from the
content page in order to ease user onboarding, as well as a mechanism
to migrate away from the extension.

Differential Revision: https://phabricator.services.mozilla.com/D57121

--HG--
extra : moz-landing-system : lando
2020-02-10 15:52:59 +00:00
Greg Tatum 1c15092dfe Bug 1611815 - Fix thrown error about presetName om the performance-new devtools panel; r=canaltinova
The reducer errors in the implementation of the DevTools panel, as the presetName was not being fetched from the preferences in the debuggee. This fixes that. TypeScript caught this, but I guess I forgot to check it.

Differential Revision: https://phabricator.services.mozilla.com/D61128

--HG--
extra : moz-landing-system : lando
2020-01-28 11:38:19 +00:00
Greg Tatum 3851bf14af Bug 1597381 - Add tests for the about:profiling presets; r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D58467

--HG--
extra : moz-landing-system : lando
2020-01-22 23:12:48 +00:00
Greg Tatum 258b0879c5 Bug 1597381 - Make testing util getNearestInputFromText generic; r=julienw
This commit changes the testing utility to be generic to work for any
input radio or checkbox on the page, where the input is located near
in the DOM to the text element.

Differential Revision: https://phabricator.services.mozilla.com/D58466

--HG--
extra : moz-landing-system : lando
2020-01-22 23:12:46 +00:00
Greg Tatum 57b03a170c Bug 1597381 - Create profiler presets for about:profiling; r=julienw
This commit creates profiler presets for the current browser. It does not
handle remote profiling yet, as there is no UI surface for it yet. The
preset setting updates happen inside of the reducers and presets, and not
the selectors. This design was chosen so that as the presets were changed,
it would actually change the settings below, making it easy to change and
customize the settings by chosing the nearest preset.

The UI designs are still in a bit of a flux, so this UI design was the
easiest to implement for the initial pass, but we don't yet have consensus
on what the UI will look like for the final design.

Differential Revision: https://phabricator.services.mozilla.com/D58465

--HG--
extra : moz-landing-system : lando
2020-01-22 23:11:49 +00:00
Michael Hoffmann 70326bf275 Bug 1569630 - Make it easy to profile all threads r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D58712

--HG--
extra : moz-landing-system : lando
2020-01-06 16:07:07 +00:00
Michael Hoffmann 85c3b123f5 Bug 1604482 - Fix TypeScript type error for gIsDarkMode r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D57649

--HG--
extra : moz-landing-system : lando
2020-01-03 12:24:09 +00:00
Greg Tatum bb5bb4599a Bug 1606472 - Fixup some typings that were set to any; r=julienw
Specifically this is fixing up some issues around loading in JSMs.

Differential Revision: https://phabricator.services.mozilla.com/D57120

--HG--
extra : moz-landing-system : lando
2019-12-31 20:53:48 +00:00
Greg Tatum 6bb43533fc Bug 1606082 - Skip about:profiling tests when not on nightly; r=gerald
Currently, the panel is nightly only while it is in development.

Differential Revision: https://phabricator.services.mozilla.com/D58296

--HG--
extra : moz-landing-system : lando
2019-12-27 20:23:10 +00:00
Greg Tatum 54db7528d6 Bug 1601697 - Add about:profiling tests for configuring features and threads; r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D55999

--HG--
extra : moz-landing-system : lando
2019-12-26 15:39:52 +00:00
Nazım Can Altınova 0870dac6cd Bug 1602800 - Backout some of the preferences handling to make sure we have defaults for older firefox versions r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D56721

--HG--
extra : moz-landing-system : lando
2019-12-12 13:54:40 +00:00
Nazım Can Altınova 5a7c30d79f Bug 1602800 - Move the function that gets BrowsingContext ID to a new file inside shared folder r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D56720

--HG--
extra : moz-landing-system : lando
2019-12-12 13:53:31 +00:00
Greg Tatum f70625dc40 Bug 1597376 - Implement the new about:profiling page; r=julienw
This patch adds a new context for the performance-new components. It's
eventually the only place where the settings will live, but for now
the components share the settings between the popup, the devtools panel,
and the about:profiling page.

This page uses the base styling that the preferences page uses. The styles
should obey the theming for the browser, and ignore the devtools theming
colors.

Differential Revision: https://phabricator.services.mozilla.com/D55010

--HG--
extra : moz-landing-system : lando
2019-12-05 17:42:35 +00:00
Greg Tatum b59fc045d3 Bug 1597376 - Make the summary dropdowns conditional in the profiler settings; r=julienw
This is probably the biggest change to the existing components, as it makes the
summary dropdowns conditional based on the page context. This keeps the old
workflow working, but allows for the new about:profiling page's design. Most
of the diff here is creating the new _renderSection method which consolidates
this logic, and also handles the summary div structure.

Differential Revision: https://phabricator.services.mozilla.com/D55009

--HG--
extra : moz-landing-system : lando
2019-12-05 17:39:22 +00:00
Greg Tatum 0955f88f7b Bug 1597376 - Change the isPopup flag to a PageContext; r=julienw
The new about:profiling page creates some more complexity around what
the page context is. It is simpler to handle the different cases with
a union, rather than booleans.

Differential Revision: https://phabricator.services.mozilla.com/D55008

--HG--
extra : moz-landing-system : lando
2019-12-05 17:39:07 +00:00
Greg Tatum bfa25deee0 Bug 1597376 - Break out profiler event handling into a separate component; r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D55007

--HG--
rename : devtools/client/performance-new/components/Perf.js => devtools/client/performance-new/components/DevToolsAndPopup.js
extra : moz-landing-system : lando
2019-12-05 17:38:52 +00:00
Greg Tatum 90d9086cc8 Bug 1598320 - Add types to the performance-new components; r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D54771

--HG--
extra : moz-landing-system : lando
2019-12-05 17:38:38 +00:00
Greg Tatum 24b52aed54 Bug 1597373 - Create a minimal about:profiling page; r=jdescottes,mconley
This commit is fairly trivial, but creates the about:profiler page to
start the new about:profiler work.

Differential Revision: https://phabricator.services.mozilla.com/D53729

--HG--
extra : moz-landing-system : lando
2019-12-05 17:38:25 +00:00
Noemi Erli 813cd66e92 Backed out 6 changesets (bug 1597373, bug 1598320, bug 1597376) for causing assertion failure in nsContentSecurityUtils.cpp CLOSED TREE
Backed out changeset abb73036e3ae (bug 1597376)
Backed out changeset a0076bbce8f9 (bug 1597376)
Backed out changeset 76055c79cada (bug 1597376)
Backed out changeset 145bc8015c6c (bug 1597376)
Backed out changeset fa0278f155ef (bug 1598320)
Backed out changeset 32711edf1baf (bug 1597373)

--HG--
rename : devtools/client/performance-new/components/DevToolsAndPopup.js => devtools/client/performance-new/components/Perf.js
2019-12-05 19:11:24 +02:00
Greg Tatum 2ade1a1b96 Bug 1597376 - Implement the new about:profiling page; r=julienw
This patch adds a new context for the performance-new components. It's
eventually the only place where the settings will live, but for now
the components share the settings between the popup, the devtools panel,
and the about:profiling page.

This page uses the base styling that the preferences page uses. The styles
should obey the theming for the browser, and ignore the devtools theming
colors.

Differential Revision: https://phabricator.services.mozilla.com/D55010

--HG--
extra : moz-landing-system : lando
2019-12-04 22:23:46 +00:00
Greg Tatum c29911fdb8 Bug 1597376 - Make the summary dropdowns conditional in the profiler settings; r=julienw
This is probably the biggest change to the existing components, as it makes the
summary dropdowns conditional based on the page context. This keeps the old
workflow working, but allows for the new about:profiling page's design. Most
of the diff here is creating the new _renderSection method which consolidates
this logic, and also handles the summary div structure.

Differential Revision: https://phabricator.services.mozilla.com/D55009

--HG--
extra : moz-landing-system : lando
2019-12-04 22:23:31 +00:00
Greg Tatum 6cba996a44 Bug 1597376 - Change the isPopup flag to a PageContext; r=julienw
The new about:profiling page creates some more complexity around what
the page context is. It is simpler to handle the different cases with
a union, rather than booleans.

Differential Revision: https://phabricator.services.mozilla.com/D55008

--HG--
extra : moz-landing-system : lando
2019-12-04 22:23:17 +00:00
Greg Tatum 805e67f354 Bug 1597376 - Break out profiler event handling into a separate component; r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D55007

--HG--
rename : devtools/client/performance-new/components/Perf.js => devtools/client/performance-new/components/DevToolsAndPopup.js
extra : moz-landing-system : lando
2019-12-04 22:23:02 +00:00
Greg Tatum 086d2b5725 Bug 1598320 - Add types to the performance-new components; r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D54771

--HG--
extra : moz-landing-system : lando
2019-12-04 22:22:42 +00:00
Greg Tatum 246f170a3d Bug 1597373 - Create a minimal about:profiling page; r=jdescottes,mconley
This commit is fairly trivial, but creates the about:profiler page to
start the new about:profiler work.

Differential Revision: https://phabricator.services.mozilla.com/D53729

--HG--
extra : moz-landing-system : lando
2019-12-04 22:22:30 +00:00
Michael Hoffmann 7011479978 Bug 1595677 - Support dark mode profiler popup in default theme for Win and Mac r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D55116

--HG--
extra : moz-landing-system : lando
2019-12-03 13:32:12 +00:00
Nazım Can Altınova bc16854171 Bug 1600294 - Fix the profiler default features test by removing unsupported features. r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D55304

--HG--
extra : moz-landing-system : lando
2019-11-29 16:29:12 +00:00
Nazım Can Altınova c413bb265b Bug 1599745 - Update default values of profiler recording preferences. r=julienw
This patch:
- Removes the responsiveness feature from the default features since we don't
  have it anymore.
- Adds "Renderer" thread to the default threads list. That is needed to capture
  screenshots with webrender.

Depends on D55103

Differential Revision: https://phabricator.services.mozilla.com/D55158

--HG--
extra : moz-landing-system : lando
2019-11-28 17:37:29 +00:00
Nazım Can Altınova b2fd37c431 Bug 1599745 - Use the constant pref variables inside the file instead of hardcoding them. r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D55103

--HG--
extra : moz-landing-system : lando
2019-11-28 17:17:42 +00:00
Nazım Can Altınova e77b282b59 Bug 1599745 - Register all performance panel recording preferences and move their default values there. r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D55102

--HG--
extra : moz-landing-system : lando
2019-11-28 17:19:54 +00:00
Nazım Can Altınova e4cc74e4a7 Bug 1599745 - Fix the profiler popup panel preference test. r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D55101

--HG--
extra : moz-landing-system : lando
2019-11-28 17:25:13 +00:00
Nazım Can Altınova 3817d21f33 Bug 1590706 - Part 2: Update devtools and popup panels to include BrowsingContext IDs. r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D54145

--HG--
extra : moz-landing-system : lando
2019-11-27 14:27:48 +00:00
Mihai Alexandru Michis 096946a25f Backed out 2 changesets (bug 1590706) for causing bustages in gtest/GeckoProfiler.cpp CLOSED TREE
Backed out changeset c98daf6c7687 (bug 1590706)
Backed out changeset 4c2af658ce76 (bug 1590706)
2019-11-27 15:42:55 +02:00
Nazım Can Altınova 993e44188b Bug 1590706 - Part 2: Update devtools and popup panels to include BrowsingContext IDs. r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D54145

--HG--
extra : moz-landing-system : lando
2019-11-27 12:56:00 +00:00
JaStenson a1ff10a14a Bug 1592637 - [popup] Lazyload link.js in Description.js, r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D53324

--HG--
extra : moz-landing-system : lando
2019-11-18 14:16:04 +00:00
Greg Tatum 790c8e1c1c Bug 1585659 - Hook up the supported features to the popup UI; r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D50669

--HG--
extra : moz-landing-system : lando
2019-11-12 19:07:46 +00:00
Greg Tatum 5f235fa2c5 Bug 1585659 - Add a getSupportedFeatures method to the perf actor; r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D50668

--HG--
extra : moz-landing-system : lando
2019-11-12 19:07:28 +00:00
Greg Tatum e10889da76 Bug 1591455 - Add types to the Settings component; r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D50667

--HG--
extra : moz-landing-system : lando
2019-11-12 19:07:16 +00:00
Greg Tatum 691c9057fc Bug 1594842 - Move gecko-profiler-interface.js out of the server and into shared; r=julienw
It's being used in the client and server, and so is a shared file.

Differential Revision: https://phabricator.services.mozilla.com/D52247

--HG--
rename : devtools/server/performance-new/gecko-profiler-interface.js => devtools/shared/performance-new/gecko-profiler-interface.js
rename : devtools/server/performance-new/moz.build => devtools/shared/performance-new/moz.build
extra : moz-landing-system : lando
2019-11-12 19:07:03 +00:00
Greg Tatum f0ec628a73 Bug 1582779 - Offer to restart the browser when JS Tracer is enabled; r=julienw
To test this feature, check the "JSTracer" feature, and the user should be
prompted with a message bar to restart the browser. This will then set the
proper environment variable. Unfortunately, currently the user can still do
this even if a feature is not available in the build. See Bug 1585659.

Differential Revision: https://phabricator.services.mozilla.com/D50085

--HG--
extra : moz-landing-system : lando
2019-11-12 19:06:48 +00:00
Markus Stange 5d1bd1ad8b Bug 1563305 - Make error objects propagate correctly from the worker into the profiler page. r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D44402

--HG--
extra : moz-landing-system : lando
2019-11-08 20:44:50 +00:00
Michael Hoffmann cdfcf7765d Bug 1579982 - Handle dark theme in profiler popup r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D52235

--HG--
extra : moz-landing-system : lando
2019-11-08 10:22:03 +00:00
Greg Tatum 9157afe622 Bug 1588295 - Change popup test to use the js feature rather than stackwalk; r=gerald
This test is relying on a profiler feature that is not available in every
platform. This patch changes it to use the "js" feature, which should be
supported everywhere.

Differential Revision: https://phabricator.services.mozilla.com/D49948

--HG--
extra : moz-landing-system : lando
2019-10-23 14:07:47 +00:00
Greg Tatum de7682bba8 Bug 1588192 - Fix the TypeScript require function in the initializers; r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D49012

--HG--
extra : moz-landing-system : lando
2019-10-23 13:49:27 +00:00
Julien Wajsberg bed13567fb Bug 1589122 - Add a simple check to the xpcshell test r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D49646

--HG--
extra : moz-landing-system : lando
2019-10-22 08:14:07 +00:00
Julien Wajsberg 333cd53ceb Bug 1589122 - Rename some arguments from settings to prefs where appropriate r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D49645

--HG--
extra : moz-landing-system : lando
2019-10-22 08:14:00 +00:00
Julien Wajsberg 2ef21585f6 Bug 1589122 - Add and use functions to translate values between the stored preferences and the state r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D49644

--HG--
extra : moz-landing-system : lando
2019-10-22 08:13:58 +00:00
Julien Wajsberg 6ab2fdc4a0 Bug 1589122 - Add comments to the functions called when using the shortcut keys r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D49733

--HG--
extra : moz-landing-system : lando
2019-10-22 08:13:56 +00:00
Julien Wajsberg 75ff79ea60 Bug 1589122 - Fix the default interval in reducers r=canaltinova
This value isn't really used, nevertheless it's good to have it to the
right value for documentation reason and consistency.

Differential Revision: https://phabricator.services.mozilla.com/D49643

--HG--
extra : moz-landing-system : lando
2019-10-22 08:13:55 +00:00
Julien Wajsberg 2ca92e3b9a Bug 1589122 - Appropriately configure the default interval pref in microseconds r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D49642

--HG--
extra : moz-landing-system : lando
2019-10-22 08:13:47 +00:00
Julien Wajsberg 75f5c38006 Bug 1589122 - Rename getDefaultRecordingSettings to getDefaultRecordingPreferences r=canaltinova
This also renames various variables from "settings" to "preferences" to
make it clearer that the values are about actual preferences stored in
the user profile.

Differential Revision: https://phabricator.services.mozilla.com/D49641

--HG--
extra : moz-landing-system : lando
2019-10-22 08:13:46 +00:00
Gerald Squelart 93254141e5 Bug 1583430 - Profiler popup feature "No Periodic Sampling" - r=julienw
Expose the Gecko Profiler feature "nostacksampling" as "No Periodic Sampling".

Differential Revision: https://phabricator.services.mozilla.com/D49231

--HG--
extra : moz-landing-system : lando
2019-10-22 06:23:28 +00:00
Jim Porter 9354dfda4a Bug 1557447 - Profiler support for IPC information; r=nika,smaug
This adds the ability to add profile markers for both the sender and recipient
sides of IPC messages. These can then be correlated with one another in the
profile visualization. For the UI component of this patch, see
<https://github.com/firefox-devtools/profiler/pull/2172>.

Differential Revision: https://phabricator.services.mozilla.com/D42226

--HG--
extra : moz-landing-system : lando
2019-10-21 20:51:07 +00:00
Julien Wajsberg efcb99116b Bug 1590115 - Add getSymbolsFromThisBrowser back r=canaltinova
This function is used in several locations and at least two files, so
it's useful to have it exist as a named and exported function.

Differential Revision: https://phabricator.services.mozilla.com/D49945

--HG--
extra : moz-landing-system : lando
2019-10-21 17:00:28 +00:00
Daniel Varga 8fdca46bc7 Backed out changeset 2923afce519a (bug 1557447) for browser chrome failure at tools/profiler/tests/browser/browser_test_feature_preferencereads.js. On a CLOSED TREE 2019-10-18 07:54:09 +03:00
Jim Porter 80bfcd6e57 Bug 1557447 - Profiler support for IPC information; r=nika
This adds the ability to add profile markers for both the sender and recipient
sides of IPC messages. These can then be correlated with one another in the
profile visualization. For the UI component of this patch, see
<https://github.com/firefox-devtools/profiler/pull/2172>.

Differential Revision: https://phabricator.services.mozilla.com/D42226

--HG--
extra : moz-landing-system : lando
2019-10-18 02:56:02 +00:00
Dorel Luca efd52379da Backed out changeset cd4dc0ae3364 (bug 1557447) for Browser-chrome failures in build/src/obj-firefox/dist/include/mozilla/BlocksRingBuffer.h 2019-10-18 03:59:06 +03:00
Jim Porter 641b95fb72 Bug 1557447 - Profiler support for IPC information; r=nika
This adds the ability to add profile markers for both the sender and recipient
sides of IPC messages. These can then be correlated with one another in the
profile visualization. For the UI component of this patch, see
<https://github.com/firefox-devtools/profiler/pull/2172>.

Differential Revision: https://phabricator.services.mozilla.com/D42226

--HG--
extra : moz-landing-system : lando
2019-10-17 23:39:42 +00:00
Greg Tatum 037581be8e Bug 1588086 - Fix the multi-modal getSymbolTable; r=julienw
The function had the wrong argument parameters, and it wasn't
fetching the latest list of objdirs.

Differential Revision: https://phabricator.services.mozilla.com/D49006

--HG--
extra : moz-landing-system : lando
2019-10-15 11:25:18 +00:00
Greg Tatum e114c68c00 Bug 1587117 - Fix profiler popup shortcuts to use the correct preferences; r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D48562

--HG--
extra : moz-landing-system : lando
2019-10-10 18:00:05 +00:00
Michael Hoffmann ffc801394d Bug 1555021 - Dark theme colors for new profiler tab r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D48740

--HG--
extra : moz-landing-system : lando
2019-10-11 12:34:54 +00:00
Greg Tatum 0b3c8bde66 Bug 1586757 - Add types to everything but the components; r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D47913

--HG--
extra : moz-landing-system : lando
2019-10-08 20:43:16 +00:00
Greg Tatum edef14c2cb Bug 1586757 - Create a @types directory and change to // @ts-check; r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D47912

--HG--
rename : devtools/client/performance-new/types.ts => devtools/client/performance-new/@types/perf.d.ts
extra : moz-landing-system : lando
2019-10-08 20:30:49 +00:00
Greg Tatum b4b444658c Bug 1586757 - Rename .jsm files to .jsm.js to allow type checking; r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D47911

--HG--
rename : devtools/client/performance-new/popup/background.jsm => devtools/client/performance-new/popup/background.jsm.js
rename : devtools/client/performance-new/popup/menu-button.jsm => devtools/client/performance-new/popup/menu-button.jsm.js
extra : moz-landing-system : lando
2019-10-08 20:48:04 +00:00
Greg Tatum 430ff3e871 Bug 1581569 - Add type definitions for performance-new client; r=julienw
Everything should be typed in the JS Docs. I added a bunch of TODOs for features
the could be added in the future, but weren't valuable for this initial
prototype. Unfortunately I couldn't get the @types folder working, and had to
co-locate the redux.d.ts next to the vender file. TypeScript was attempting
to parse the file, and was failing.

Differential Revision: https://phabricator.services.mozilla.com/D46042

--HG--
extra : moz-landing-system : lando
2019-10-07 13:44:12 +00:00
Greg Tatum f4aff6e9f3 Bug 1581569 - Configure the performance client to use TypeScript; r=julienw
This commit sets up the configuration for TypeScript to work in tree.
It also adds the commands to run everything in our CI. For now this
configuration is limiting everything to the performance-new directory
as much as possible.

Differential Revision: https://phabricator.services.mozilla.com/D46041

--HG--
extra : moz-landing-system : lando
2019-10-07 13:44:03 +00:00
Greg Tatum 84082f7f85 Bug 1581569 - Replace recording state object with plain strings; r=julienw
This patch changes the use of the recording state object with raw strings.
The strings can be type checked, and there is no more benefit to having
it as an Object. The plain strings are easier to type check.

Differential Revision: https://phabricator.services.mozilla.com/D46040

--HG--
extra : moz-landing-system : lando
2019-10-07 13:43:58 +00:00
Greg Tatum 3d718557fc Bug 1580469 - Create end to end profile capture tests; r=julienw
This patch creates the first full mochitest that exercises the profiler
popup's mechanisms of capturing profiles. The test tries to use user-focused
mechanisms–clicking buttons to fully capture a profile.

In addition, it fixes two leaks that were uncovered by the leaktest check.
The first has to do with the iframe src creating an about:blank page when
set to an empty string. The next was the Services.obs.addObserver call
in the perfFrontInterface not being removed when the page was unloaded.

Differential Revision: https://phabricator.services.mozilla.com/D45530

--HG--
extra : source : f44e632769d75b428d0a84a3274bdf45095b91fc
2019-10-04 18:23:48 +00:00
Greg Tatum 4128a5f6ec Bug 1581975 - Factor out the getSymbolsTable browser code from client code; r=julienw
The popup's shortcuts use a different codepath than the popup's buttons.
When using the buttons, the profile was not being captured as a gzipped
profile, and it was using the DevTools' mechanism for getting the symbol
tables. This patch makes the getSymbolTables mechanism configuring in the
recording panel's client.

In addition, browser code made its way into the client. This patch moves
the browser code to all be in browser.js to match the original code
organization for the panel, which was trying to keep browser APIs
out of the React components and Redux store.

Differential Revision: https://phabricator.services.mozilla.com/D45529

--HG--
extra : source : 5a3661caf52faaf67b10fcef9e3121d639a17cc3
2019-10-04 18:17:43 +00:00
Daniel Varga 038d80fc3b Backed out 2 changesets (bug 1580469, bug 1581975) for devtools failure at browser/browser_aboutdebugging_serviceworker_timeout.js
Backed out changeset f44e632769d7 (bug 1580469)
Backed out changeset 5a3661caf52f (bug 1581975)

--HG--
extra : rebase_source : 4ab13ee495ce0709daaaed4e3cec53d11bd3042a
2019-10-05 01:17:45 +03:00
Greg Tatum bdf72887ea Bug 1580469 - Create end to end profile capture tests; r=julienw
This patch creates the first full mochitest that exercises the profiler
popup's mechanisms of capturing profiles. The test tries to use user-focused
mechanisms–clicking buttons to fully capture a profile.

In addition, it fixes two leaks that were uncovered by the leaktest check.
The first has to do with the iframe src creating an about:blank page when
set to an empty string. The next was the Services.obs.addObserver call
in the perfFrontInterface not being removed when the page was unloaded.

Differential Revision: https://phabricator.services.mozilla.com/D45530

--HG--
extra : moz-landing-system : lando
2019-10-04 18:23:48 +00:00
Greg Tatum 47016d67d0 Bug 1581975 - Factor out the getSymbolsTable browser code from client code; r=julienw
The popup's shortcuts use a different codepath than the popup's buttons.
When using the buttons, the profile was not being captured as a gzipped
profile, and it was using the DevTools' mechanism for getting the symbol
tables. This patch makes the getSymbolTables mechanism configuring in the
recording panel's client.

In addition, browser code made its way into the client. This patch moves
the browser code to all be in browser.js to match the original code
organization for the panel, which was trying to keep browser APIs
out of the React components and Redux store.

Differential Revision: https://phabricator.services.mozilla.com/D45529

--HG--
extra : moz-landing-system : lando
2019-10-04 18:17:43 +00:00
Greg Tatum 2a2ea7713b Bug 1582140 - Create more detailed docs for the profiler popup; r=julienw a=doc
And also the DevTools new performance panel.

Differential Revision: https://phabricator.services.mozilla.com/D46288

--HG--
extra : moz-landing-system : lando
2019-09-20 16:33:16 +00:00
Greg Tatum 5375412046 Bug 1564475 - Add the native allocations feature to the profiler UI; r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D42197

--HG--
extra : moz-landing-system : lando
2019-09-18 18:46:51 +00:00
Greg Tatum e6f2eda3d9 Bug 1579530 - Validate the popup preferences; r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D45077

--HG--
extra : moz-landing-system : lando
2019-09-09 18:19:50 +00:00
Greg Tatum 2ebfd4a2eb Bug 1575682 - Stop the profiler popup from "blipping" with unrendered content r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D43121

--HG--
extra : moz-landing-system : lando
2019-09-04 20:06:37 +00:00
Greg Tatum 89ca6aada1 Bug 1575682 - Add a mechanism for the popup to signal that its size has changed r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D43116

--HG--
extra : moz-landing-system : lando
2019-09-04 20:06:29 +00:00
Greg Tatum db7a4dcd82 Bug 1575682 - Rename the recording buttons, and add a cancel button r=julienw
This is broken out into a separate commit since it is a layout change
for the DevTools as well. Note, that this area is still not localized.

Differential Revision: https://phabricator.services.mozilla.com/D43120

--HG--
extra : moz-landing-system : lando
2019-09-04 20:06:06 +00:00
Greg Tatum 93aa558934 Bug 1575682 - De-duplicate the profiler popup code r=julienw
This changeset is the bulk of the changes. It should contain most of
the minimum necessary changes to have everything working correctly.

Differential Revision: https://phabricator.services.mozilla.com/D43119

--HG--
rename : devtools/client/performance-new/popup/popup.html => devtools/client/performance-new/popup/popup.xhtml
extra : moz-landing-system : lando
2019-09-04 20:05:52 +00:00
Greg Tatum 2dc86d9090 Bug 1575682 - Change the behavior of the popup shortcuts to stop the profiler on capture r=julienw
This change is a one-liner, but I wanted to call it out in its own commit
since it is a true behavior change.

Differential Revision: https://phabricator.services.mozilla.com/D43118

--HG--
extra : moz-landing-system : lando
2019-09-04 20:05:38 +00:00
arthur.iakab e843afd6cd Backed out 6 changesets (bug 1575682) for causing devtools failures on browser_all_files_referenced.js CLOSED TREE
Backed out changeset 7e60a2013e96 (bug 1575682)
Backed out changeset c44c69605b87 (bug 1575682)
Backed out changeset abee6fadcd4d (bug 1575682)
Backed out changeset e4a75438c032 (bug 1575682)
Backed out changeset 985902e9abdb (bug 1575682)
Backed out changeset 31a67b9d47ab (bug 1575682)

--HG--
rename : devtools/client/performance-new/popup/popup.xhtml => devtools/client/performance-new/popup/popup.html
2019-09-03 21:01:24 +03:00
Greg Tatum b6c64887d8 Bug 1575682 - Stop the profiler popup from "blipping" with unrendered content r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D43121

--HG--
extra : moz-landing-system : lando
2019-09-03 16:06:09 +00:00
Greg Tatum e898f6ca4c Bug 1575682 - Add a mechanism for the popup to signal that its size has changed r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D43116

--HG--
extra : moz-landing-system : lando
2019-09-03 16:06:07 +00:00
Greg Tatum 899de33c54 Bug 1575682 - Rename the recording buttons, and add a cancel button r=julienw
This is broken out into a separate commit since it is a layout change
for the DevTools as well. Note, that this area is still not localized.

Differential Revision: https://phabricator.services.mozilla.com/D43120

--HG--
extra : moz-landing-system : lando
2019-09-03 16:06:03 +00:00
Greg Tatum adcb6873db Bug 1575682 - De-duplicate the profiler popup code r=julienw
This changeset is the bulk of the changes. It should contain most of
the minimum necessary changes to have everything working correctly.

Differential Revision: https://phabricator.services.mozilla.com/D43119

--HG--
rename : devtools/client/performance-new/popup/popup.html => devtools/client/performance-new/popup/popup.xhtml
extra : moz-landing-system : lando
2019-09-03 16:05:59 +00:00
Greg Tatum 39e7931b1e Bug 1575682 - Change the behavior of the popup shortcuts to stop the profiler on capture r=julienw
This change is a one-liner, but I wanted to call it out in its own commit
since it is a true behavior change.

Differential Revision: https://phabricator.services.mozilla.com/D43118

--HG--
extra : moz-landing-system : lando
2019-09-03 16:05:55 +00:00
Markus Stange c32c68086c Bug 1566986 - Make getSymbols an async function so that callers always get a promise and never a synchronous exception. r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D44400

--HG--
extra : moz-landing-system : lando
2019-09-03 14:30:22 +00:00
Florens Verschelde ac9c3d58a3 Bug 1575786 - Use unprefixed user-select property in devtools CSS; r=ladybenko,jlast
Differential Revision: https://phabricator.services.mozilla.com/D43217

--HG--
extra : moz-landing-system : lando
2019-08-29 10:12:25 +00:00
Will Hawkins 9e72ec1f8d Bug 1551313: Insert profiler markers when preferences are accessed. r=squib,gregtatum
Reviewers: squib, mstange, gregtatum

Reviewed By: squib, gregtatum

Subscribers: julienw, Fallen, reviewbot, mixedpuppy, mstange

Bug #: 1551313

Differential Revision: https://phabricator.services.mozilla.com/D39796

--HG--
extra : rebase_source : e7e0b41b2a4c6f7228f3d6c19ede1fe2e4e42343
extra : histedit_source : 55daf5b19e4f262f522339b5b00ee31130abbf1b
2019-08-23 13:12:51 +03:00
Alexandre Poirot 6bdd13f105 Bug 1569676 - Make new performance panel's destroy synchronous. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D39711

--HG--
extra : moz-landing-system : lando
2019-08-12 13:47:17 +00:00
Logan Smyth 6baad29f20 Bug 1550031 - Part 3: Centralize Redux store logic for various devtools. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D41122

--HG--
extra : moz-landing-system : lando
2019-08-09 01:27:53 +00:00
Greg Tatum 770b452ba1 Bug 1521929 - Remove the memory feature from profiler DevTools; r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D40288

--HG--
extra : moz-landing-system : lando
2019-08-05 15:37:21 +00:00
Bogdan Tara 80a144be91 Backed out 8 changesets (bug 1569676) for failures on browser_toolbox_tool_ready.js CLOSED TREE
Backed out changeset 997ad11003a3 (bug 1569676)
Backed out changeset 2dab5e2243d0 (bug 1569676)
Backed out changeset 59660e3e2e53 (bug 1569676)
Backed out changeset c0b0e0410a66 (bug 1569676)
Backed out changeset 1bc927ef181a (bug 1569676)
Backed out changeset 5227c89295f4 (bug 1569676)
Backed out changeset 8365fc01396b (bug 1569676)
Backed out changeset 996c40dbc9e2 (bug 1569676)
2019-08-05 22:00:23 +03:00
Alexandre Poirot 6127213588 Bug 1569676 - Make new performance panel's destroy synchronous. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D39711

--HG--
extra : moz-landing-system : lando
2019-08-05 10:47:01 +00:00
Alexandre Poirot c57a4aea23 Bug 1543023 - Use ChromeUtils.import only with one argument in all /devtools/ r=jdescottes
ChromeUtils.import still support a second argument as it used to do
when it was Components.utils.import. But this is deprecated and we should
instead always use the returned value.

Differential Revision: https://phabricator.services.mozilla.com/D37708

--HG--
extra : moz-landing-system : lando
2019-07-11 17:08:20 +00:00
Victor Porof f6db0ee557 Bug 1561435 - Format devtools/client/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35884

--HG--
extra : source : 60e4496cf9699dc59f2f4738cb60f87cbdb01e67
2019-07-05 11:24:38 +02:00
Greg Tatum 56a3070459 Bug 1545582 - Hook JS allocations into the profiler popup; r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D34545

--HG--
extra : moz-landing-system : lando
2019-07-01 21:53:40 +00:00
Julien Wajsberg a0fc08dc4a Bug 1561886 - Color the profiler icon in blue if the profiler is running at startup r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D36198

--HG--
extra : moz-landing-system : lando
2019-06-28 14:12:00 +00:00
Julien Wajsberg 050b115653 Bug 1561875 - Increase the profiler's popup's width to fix layout issues on Linux r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D36181

--HG--
extra : moz-landing-system : lando
2019-06-27 23:01:47 +00:00
Jim Porter 32b61264e9 Bug 1551992 - Compress profile data before sending to perf-html; r=mstange,julienw
Differential Revision: https://phabricator.services.mozilla.com/D33399

--HG--
extra : moz-landing-system : lando
2019-06-25 09:54:49 +00:00
Ciure Andrei 217ab9d060 Backed out 4 changesets (bug 1545582) for causing spidermonkey bustages CLOSED TREE
Backed out changeset c53f9e22d5f7 (bug 1545582)
Backed out changeset 6640b7f3d7e0 (bug 1545582)
Backed out changeset c65de5ec10da (bug 1545582)
Backed out changeset 3224107774b1 (bug 1545582)
2019-06-20 19:39:54 +03:00
Greg Tatum 34c1fdc5b4 Bug 1545582 - Hook JS allocations into the profiler popup; r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D34545

--HG--
extra : moz-landing-system : lando
2019-06-19 21:08:45 +00:00
Mihai Alexandru Michis cff1990963 Backed out 4 changesets (bug 1545582) for causing build bustages in SavedStacks.cpp CLOSED TREE
Backed out changeset a47c4a44bae0 (bug 1545582)
Backed out changeset c05a5d68d9a8 (bug 1545582)
Backed out changeset 699de45940b1 (bug 1545582)
Backed out changeset 285673afaa99 (bug 1545582)
2019-06-15 02:19:08 +03:00
Greg Tatum 6dc22ec6a1 Bug 1545582 - Hook JS allocations into the profiler popup; r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D34545

--HG--
extra : moz-landing-system : lando
2019-06-13 20:25:26 +00:00
Greg Tatum eccc1fe1ef Bug 1307227 - Integrate the profiler popup widget into the browser; r=jdescottes
This commit takes the popup, and wires it up the button using the
CustomizableUI interface. It is integrated with the DevTools initialization
code.

Differential Revision: https://phabricator.services.mozilla.com/D31629

--HG--
extra : moz-landing-system : lando
2019-05-31 15:54:18 +00:00
Greg Tatum ae0bdac16c Bug 1307227 - Ensure the provider is always initialized for calls to lazyRequireGetter; r=ochameau
The performance profiler pop-up menu wants to be near DevTools, but work
without the complete DevTools initialization. This patch ensure that
any calls to lazyRequireGetter properly initialize the provider.

Differential Revision: https://phabricator.services.mozilla.com/D31628

--HG--
extra : moz-landing-system : lando
2019-05-31 15:54:03 +00:00
Greg Tatum ac6c65f4d0 Bug 1307227 - Update the profiler's popup code to work in Gecko; r=julienw
This commit represents the changes needed to convert the existing
Gecko Profiler Add-on code to work outside of the WebExtensions
environment. A following commit will actually wire it into the
rest of the browser.

Differential Revision: https://phabricator.services.mozilla.com/D31627

--HG--
extra : moz-landing-system : lando
2019-05-31 15:53:46 +00:00
Greg Tatum f59b172f85 Bug 1307227 - Copy over the Gecko Profiler Addon files; r=julienw
This bug's first commit will be a non-working revision.

These files are taken from:

68d5de9c9f

Differential Revision: https://phabricator.services.mozilla.com/D31547

--HG--
extra : moz-landing-system : lando
2019-05-31 16:07:09 +00:00
Brian Grinstead 08992fb8e8 Bug 1546501 - Remove unnecessary type attributes (i.e. [type="application/javascript"]) on non-test script tags r=mossop
This is an autogenerated commit, generated with https://bug1546501.bmoattachments.org/attachment.cgi?id=9060222

Differential Revision: https://phabricator.services.mozilla.com/D28559

--HG--
extra : moz-landing-system : lando
2019-04-24 19:43:57 +00:00
Brian Grinstead 6515f97bcb Bug 1544322 - Part 1 - Remove the [type] attribute for one-liner <script> tags loading files in chrome://mochikit/content/ r=bzbarsky
This is an autogenerated commit to handle scripts loading mochitest harness files, in
the simple case where the script src is on the same line as the tag.

This was generated with https://bug1544322.bmoattachments.org/attachment.cgi?id=9058170
using the `--part 1` argument.

Differential Revision: https://phabricator.services.mozilla.com/D26812

--HG--
extra : moz-landing-system : lando
2019-04-15 20:56:58 +00:00
Philipp Kewisch 52aa5b978e Bug 1507709 - Move WebExtensions geckoProfiler API to toolkit. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D12100

--HG--
rename : browser/components/extensions/ProfilerGetSymbols-worker.js => toolkit/components/extensions/ProfilerGetSymbols-worker.js
rename : browser/components/extensions/ProfilerGetSymbols.jsm => toolkit/components/extensions/ProfilerGetSymbols.jsm
rename : browser/components/extensions/parent/ext-geckoProfiler.js => toolkit/components/extensions/parent/ext-geckoProfiler.js
rename : browser/components/extensions/profiler_get_symbols.js => toolkit/components/extensions/profiler_get_symbols.js
rename : browser/components/extensions/schemas/geckoProfiler.json => toolkit/components/extensions/schemas/geckoProfiler.json
rename : browser/components/extensions/test/xpcshell/test_ext_geckoProfiler_control.js => toolkit/components/extensions/test/xpcshell/test_ext_geckoProfiler_control.js
rename : browser/components/extensions/test/xpcshell/test_ext_geckoProfiler_schema.js => toolkit/components/extensions/test/xpcshell/test_ext_geckoProfiler_schema.js
extra : moz-landing-system : lando
2019-03-22 13:18:01 +00:00
Michael Ratcliffe e9a5487529 Bug 1531845 - Silence various React warnings to help clear up debug mode test logs r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D23115

--HG--
extra : moz-landing-system : lando
2019-03-19 15:29:37 +00:00
Greg Tatum 39cd1d4845 Bug 1525358 - Rename perf.html to profiler.firefox.com; r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D18728

--HG--
extra : moz-landing-system : lando
2019-02-21 23:16:40 +00:00
Julian Descottes c1b4ec1075 Bug 1527966 - Update browserLoader baseURL for performance-new panel;r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D19824

--HG--
extra : moz-landing-system : lando
2019-02-19 09:45:45 +00:00
Patrick Brosset 37ee7ed440 Bug 1527826 - Reflect our github org name change in the m-c code; r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D19748

--HG--
extra : moz-landing-system : lando
2019-02-15 09:38:53 +00:00
Markus Stange 28ceeebff0 Bug 1504101 - When symbolicating profiles from remote targets, consult objdirs for symbol information. r=julienw
Depends on D13041

Differential Revision: https://phabricator.services.mozilla.com/D13176

--HG--
extra : moz-landing-system : lando
2019-02-07 19:44:32 +00:00
Markus Stange ecc072dac5 Bug 1504101 - Add UI to the performance pane that lets the user pick an objdir for local builds. r=julienw
The picked objdirs are stored in a preference named devtools.performance.recording.objdirs
as a JSON-ified array of string paths.

Differential Revision: https://phabricator.services.mozilla.com/D13041

--HG--
extra : moz-landing-system : lando
2019-02-07 19:43:47 +00:00
Markus Stange 9f8c3a5124 Bug 1504101 - Use the ProfilerGetSymbols module for symbolicating profiles captured using the perf panel. r=julienw
This gives the new devtools performance panel the same symbolication
capabilities as the Gecko Profiler add-on.

Differential Revision: https://phabricator.services.mozilla.com/D13425

--HG--
extra : moz-landing-system : lando
2019-02-07 19:42:56 +00:00
Kris Maglione e930b89c34 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

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
Nazım Can Altınova 6f9887c6a5 Bug 1515197 - Remove the "max" from "Max buffer size" label since it's not resizable anymore r=julienw
We made the profiler buffer resizable before that patch but then we decided that
it's not a good idea to do since we are spending so much time to allocate memory.
Since buffer size is constant, we don't need to add "max" anymore.

Differential Revision: https://phabricator.services.mozilla.com/D15656

--HG--
extra : moz-landing-system : lando
2019-01-07 21:37:30 +00:00
Nazım Can Altınova 89859d7246 Bug 1515197 - Remove the window length setting from devtools performance panel r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D15655

--HG--
extra : moz-landing-system : lando
2019-01-07 21:37:05 +00:00
Denis Palmeiro 1d2e62c07a Bug 1497016 - Add an API to extract tracelogger data and use this within the gecko profiler r=mstange,djvj
Add a new class to extract tracelogger data using chunked buffers and use this to write the data out to the profiler JSON output.  Copying the data in chunks lets us minimize our memory overhead when writing out to the profiler so a large array of millions of elements does not need to be allocated ahead of time.

Differential Revision: https://phabricator.services.mozilla.com/D11791

--HG--
extra : moz-landing-system : lando
2018-12-04 21:43:38 +00:00
Nazım Can Altınova e88550b119 Bug 1476775 - Part 2: Change the profiler usage in devtools after API change r=julienw,gregtatum
Depends on D6267

Differential Revision: https://phabricator.services.mozilla.com/D6268

--HG--
extra : moz-landing-system : lando
2018-11-23 16:10:08 +00:00
Barret Rennie 4575169eee Bug 1457546 - Add checkbox to record screenshots in new performance pane r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D12339

--HG--
extra : moz-landing-system : lando
2018-11-20 18:32:00 +00:00
Julien Wajsberg 9c1ba92750 Bug 1480593 - Allow setting a different instance of perf.html for the new performance panel, using a pref r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D8869

--HG--
extra : moz-landing-system : lando
2018-10-18 20:06:57 +00:00
Mark Banner ceaeb93550 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D8389

--HG--
extra : moz-landing-system : lando
2018-10-19 12:55:39 +00:00
Markus Stange 9d56241b4f Bug 1457481 - Hook up the new devtools performance panel to nsIProfiler.getSymbolTable. r=gregtatum
Depends on D7023

Differential Revision: https://phabricator.services.mozilla.com/D7024

--HG--
extra : moz-landing-system : lando
2018-10-02 01:52:32 +00:00
shindli 2cc7085b7a Backed out 4 changesets (bug 1457481) for c1 failures in devtools/client/performance-new/test/chrome/test_perf-settings-entries.html
Backed out changeset 212450f77860 (bug 1457481)
Backed out changeset ac3deff9340f (bug 1457481)
Backed out changeset 4478820fbcaa (bug 1457481)
Backed out changeset 1c8460b1d6da (bug 1457481)

--HG--
rename : third_party/rust/syn-0.14.6/src/parsers.rs => third_party/rust/syn/src/parsers.rs
rename : third_party/rust/syn-0.14.6/src/verbatim.rs => third_party/rust/syn/src/verbatim.rs
rename : third_party/rust/uuid-0.5.1/.travis.yml => third_party/rust/uuid/.travis.yml
rename : third_party/rust/uuid-0.5.1/src/rustc_serialize.rs => third_party/rust/uuid/src/rustc_serialize.rs
rename : third_party/rust/uuid-0.5.1/src/serde.rs => third_party/rust/uuid/src/serde.rs
2018-10-02 01:43:46 +03:00
Markus Stange 12d3a22f24 Bug 1457481 - Hook up the new devtools performance panel to nsIProfiler.getSymbolTable. r=gregtatum
Depends on D7023

Differential Revision: https://phabricator.services.mozilla.com/D7024

--HG--
extra : moz-landing-system : lando
2018-10-01 20:53:20 +00:00
Julien Wajsberg fa3590f449 Bug 1493680 - use the new getFront API and properly wait for the promise fullfilment r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D6671

--HG--
extra : moz-landing-system : lando
2018-09-24 15:50:35 +00:00
Julien Wajsberg 8dccd09804 Bug 1492893 - [Devtools Performance-new] Remove the unused toolbox object from the redux store r=gregtatum
MozReview-Commit-ID: 1LJ6HypOYbM

Differential Revision: https://phabricator.services.mozilla.com/D6469

--HG--
extra : moz-landing-system : lando
2018-09-21 15:57:05 +00:00
Alexandre Poirot fb4cd85e35 Bug 1222047 - Manage device and preference fronts via client.mainRoot.getFront. r=yulia
Summary: Depends On D3317

Tags: #secure-revision

Bug #: 1222047

Differential Revision: https://phabricator.services.mozilla.com/D3318

MozReview-Commit-ID: 3jaFZbXVLuw
2018-08-23 03:51:40 -07:00
Jonathan Kingston 9b7fb2f20c Bug 1362034 - Have addTab() provide the correct triggering principal. r=ckerschb r=Gijs
Reviewers: ckerschb!, Gijs!

Tags: #secure-revision

Bug #: 1362034

Differential Revision: https://phabricator.services.mozilla.com/D2046

--HG--
extra : source : 44b25dea67d2ed079e17057ab619d827e9983400
extra : amend_source : 5742820277e0269b6f5d42b1abd98fd9b228ac4a
extra : histedit_source : 790bd2490333e4d8fea7774d036eafbc2fc329b9
2018-07-06 15:14:54 +01:00