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

287 Коммитов

Автор SHA1 Сообщение Дата
Jared Wein d6647f3b6e Bug 1681421 - Read the label property instead of textContent to exclude hidden text. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D102613
2021-01-21 16:10:45 +00:00
Greg Tatum b9f323e9a1 Bug 1599774 - Localize about:profiling and DevTools perf panel; r=julienw,flod
This handles most of the localization, but will require a few follow-ups.

First off is Bug 1681539, which is for localizing profiler presets. There
isn't anything too weird about this for the DevTools and about:profilling
context, but requires a solution for the popup. The appmenu.ftl bundle
might need to be included.

I did not localize profiler feature list, nor the byte size computation.

Differential Revision: https://phabricator.services.mozilla.com/D99275
2021-01-21 15:49:42 +00:00
Gerald Squelart 70fea80cd0 Bug 1687603 - Bring 'CPU Utilization' description up to date - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D102380
2021-01-20 09:05:10 +00:00
Markus Stange c66257367b Bug 1650835 - Use a "button-and-view" widget for the profiler button. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D98217
2021-01-15 17:04:25 +00:00
Gerald Squelart 484485975e Bug 1679930 - Add ActivePS experimental feature "CPU Utilization" - r=canaltinova
This patch adds "CPU Utilization" ("cpu" for short) as a new feature that will control the upcoming still-experimental CPU measurements.

Differential Revision: https://phabricator.services.mozilla.com/D99054
2021-01-04 07:17:38 +00:00
Nazım Can Altınova f4d36497aa Bug 1667061 - Add ProfilerViewMode for preset and append `view` querystring while opening the front-end. r=gregtatum
Depends on D91266

Differential Revision: https://phabricator.services.mozilla.com/D91267
2020-12-04 10:47:22 +00:00
Nazım Can Altınova 349951062c Bug 1667061 - Format the perf.d.ts file. r=gregtatum
My editor formats this file automatically when I need to change something here,
and it's annoying to exclude these when I need to change something in this
file. I guess it doesn't hurt to format it so we won't have to do that again.

Differential Revision: https://phabricator.services.mozilla.com/D91266
2020-12-04 10:47:09 +00:00
Razvan Maries bde72eb2fd Backed out 2 changesets (bug 1667061) for perma failures on browser_popup-record-capture-view.js. CLOSED TREE
Backed out changeset af2cb6cee546 (bug 1667061)
Backed out changeset f374a2996151 (bug 1667061)
2020-12-03 20:01:56 +02:00
Nazım Can Altınova 4b0e6b19ca Bug 1667061 - Add ProfilerViewMode for preset and append `view` querystring while opening the front-end. r=gregtatum
Depends on D91266

Differential Revision: https://phabricator.services.mozilla.com/D91267
2020-12-03 14:19:22 +00:00
Nazım Can Altınova 43ad52a612 Bug 1667061 - Format the perf.d.ts file. r=gregtatum
My editor formats this file automatically when I need to change something here,
and it's annoying to exclude these when I need to change something in this
file. I guess it doesn't hurt to format it so we won't have to do that again.

Differential Revision: https://phabricator.services.mozilla.com/D91266
2020-12-03 11:14:47 +00:00
Christian Holler 894124e3cf Bug 1677049 - Skip problematic mochitest-bc tests in TSan. r=Gankro,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D98365
2020-12-01 20:21:20 +00:00
Markus Stange b3bfed14fe Bug 1669838 - Add the SwComposite thread to the presets "Firefox Platform", "Firefox Front-End", "Firefox Graphics" and "Media". r=gregtatum
These are the presets that I think are most likely in use by people
who report performance bugs with the browser.

The SwComposite thread is used when software webrender is enabled,
except on macOS where it is never used. In those configurations, the
samples from the SwComposite thread are interesting in the same cases
when the samples from the Renderer thread are interesting, i.e. whenever
the performance bottleneck is on the rendering side.
However, we do not need to profile the SwComposite thread in all cases where
we profile the Renderer thread, because in some configurations the Renderer
thread is only profiled so that the screenshot markers are captured. The
SwComposite thread does not have screenshot markers.

Differential Revision: https://phabricator.services.mozilla.com/D95546
2020-11-02 17:41:50 +00:00
Julian Descottes 3fc97c1b4d Bug 1673419 - [devtools] Ignore existing typescript violations in devtools/client/performance-new r=gregtatum
Depends on D95235

Ignore remaining typescript violations in performance-new

Differential Revision: https://phabricator.services.mozilla.com/D95236
2020-10-30 17:27:50 +00:00
Julian Descottes 900514e20e Bug 1673419 - [devtools] Support performance-new typescript checks in devtools node try runner r=gregtatum,nchevobbe
This allows to run the performance-new typescript checks via
"node devtools/client/bin/devtools-node-test-runner.js --suite=performance"

Differential Revision: https://phabricator.services.mozilla.com/D95232
2020-10-30 17:15:55 +00:00
Julian Descottes 626540c038 Bug 1666815 - [devtools] Add a test for new performance panel onboarding r=julienw
Depends on D94355

Differential Revision: https://phabricator.services.mozilla.com/D94711
2020-10-27 11:32:57 +00:00
Julian Descottes bb9e772655 Bug 1666815 - [devtools] Simple on-boarding UI for the new Performance panel r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D94355
2020-10-27 11:31:17 +00:00
Ricky Stewart 02a7b4ebdf Bug 1654103: Standardize on Black for Python code in `mozilla-central`.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Bryce Seager van Dyk a861f9e347 Bug 1669570 - Rename MeidaController to MediaSupervisor for the profiler. r=alwu
Depends on D93806

Differential Revision: https://phabricator.services.mozilla.com/D93807
2020-10-16 18:18:46 +00:00
Bogdan Tara da1098d4aa Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart c0cea3b0fa Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Dorel Luca 1ff59cb7a3 Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Ricky Stewart 50762dacab Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Ben Delevingne 14aa4fcf8e Bug 1582699 - [devtools] Update thunk actions to take an object as an argument. r=nchevobbe
In short, thunk actions are changing from a signature with 2 parameters (dispatch and getState): `(dispatch, getState)`, to an object that contains those properties: `({ dispatch, getState })`.
This is done so we can merge thunk and thunk-with-options

Differential Revision: https://phabricator.services.mozilla.com/D92888
2020-10-13 07:48:12 +00:00
Itiel 98722ba7f7 Bug 1668624 - Fix the arrow part of the Profiler panel not being colored the same as the header when the info section is expanded r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D92126
2020-10-08 20:32:59 +00:00
Ted Campbell 144a4531e5 Bug 1668808 - Add "JS Helper" threads to profiler settings r=julienw
These threads are used by SpiderMonkey for (some) parsing, jit compilation,
and GC tasks.

Differential Revision: https://phabricator.services.mozilla.com/D92230
2020-10-05 13:34:57 +00:00
Itiel 210d2ba3ec Bug 1667646 - Unify the info button's hover/focus/active design for the bookmarks CFR, protections popup and the profiler r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D91513
2020-10-01 15:46:56 +00:00
Nicolas Silva b5919b16d2 Bug 1659990 - Add a profiler preset for gfx. r=julienw,jnicol
Differential Revision: https://phabricator.services.mozilla.com/D87590
2020-08-20 10:13:26 +00:00
alwu 8aa1cfd69f Bug 1658614 - capture 'MediaController' thread in media preset. r=canaltinova
`MediaPlayback` thread has been renamed to `MediaController` thread, so update the captured thread list for media preset.

Differential Revision: https://phabricator.services.mozilla.com/D86749
2020-08-11 18:46:14 +00:00
Julien Wajsberg b5e4bc5b10 Bug 1655999 - Support netlify.app URLs for the profiler frontend code deploy previews r=canaltinova
Netlify recently moved from netlify.com to netlify.app for their
deployed URLs. Netlify.com deploy URLs are redirected to netlify.app.
(Netlify.com is still used for their main websites).

Differential Revision: https://phabricator.services.mozilla.com/D85304
2020-07-29 17:22:54 +00:00
Gerald Squelart e0e32e17b6 Bug 1653181 - Enable Audio Callback Tracing in Media preset - r=canaltinova
Audio Tracing Callback will be most useful when used to profile Media workloads.

Differential Revision: https://phabricator.services.mozilla.com/D83750
2020-07-17 11:22:36 +00:00
Gerald Squelart 126afc3ab4 Bug 1653181 - Profiler feature 'audiocallbacktracing' controls Start/StopAudioCallbackTracing(), off by default - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D83749
2020-07-17 11:22:23 +00:00
Florian Quèze 668686ae05 Bug 1621015 - Profiler popup button should be split into a start/stop button, and a down arrow, r=julienw.
Differential Revision: https://phabricator.services.mozilla.com/D77680
2020-07-03 14:28:17 +00:00
Emma Malysz 596d4bd960 Bug 1648638, remove profiler panel from main view and place in template r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D81413
2020-07-02 16:42:46 +00:00
Gerald Squelart 56736f31c3 Bug 1648507 - Distinguish pausing sampling only from pausing the whole profiler - r=canaltinova,perftest-reviewers,geckoview-reviewers,agi
The profiler can be "paused", which stops sampling, and since bug 1578329 stops markers as well.

Some test suites use pausing between tests (to better differentiate the tests, to keep the profiler ready to run, and to lower the amount of recorded data). But this causes problems with some tracing markers, as their matching ends have not been recorded (e.g., an end marker is missing), which show up as very loooong markers.
To solve this, we need to be able to pause sampling only, but keep recording markers.
But we still need to be able to pause the whole profiler, in particular before capturing, to avoid recording anything around that time.

This big patch is mostly mechanical changes: Wherever there are "Pause" and "Unpause/Resume" profiler functions, we add matching "PauseSampling" and "UnpauseSampling/ResumeSampling" functions that only impact the periodic sampling loop; And existing "Pause/Unpause/Resume" imply pausing sampling as well.
Exceptions and extra work:
- nsIProfiler (the JS API) already had `Pause/ResumeSampling()`, which misleadingly paused everything! Now they do the right thing, and we have `Pause/Resume()` as well.
- All tests using `Pause/ResumeSampling()` now use `Pause/Resume()`, except for Talos tests that only pause sampling between tests; Added some extra `Pause()` calls to pause everything before capturing profiles.
- GeckoJavaSampler doesn't handle pausing/resuming everything, this should be done in a follow-up bug.
- Sampling-only pauses are not streamed into JSON. If needed, we should follow-up, with potential work on the front-end to deal with these.

Differential Revision: https://phabricator.services.mozilla.com/D81492
2020-07-02 01:36:27 +00:00
Greg Tatum d8dddd8673 Bug 1625044 - Do not run the profiler private browsing test on linux; r=julienw
I spent some time looking into this, and the Linux runs when opening up the
popup and the private browser are not working consistently. The popupshown
and popuphidden events are not firing consistently. It's probably good enough
to just disable this test on Linux, as it's mainly a UI test, and it works
on the other platforms.

Differential Revision: https://phabricator.services.mozilla.com/D81602
2020-06-30 19:46:21 +00:00
Greg Tatum 41bd757afa Bug 1625044 - Handle profile popup showing more correctly in tests; r=julienw
Some intermittents were caused by the failure to ensure the popup was closed.
This patch creates a new API that explicitly ensures that the popup is actually
closed in the patch.

It also adds a listener to the popupshown and popuphidden events dispatched by
the XUL elements to ensure that we're not just relying on a single requestAnimationFrame
tick.

Differential Revision: https://phabricator.services.mozilla.com/D79332
2020-06-30 19:45:08 +00:00
Paul Adenot 5a606e463e Bug 1626918 - Add the native audio callback thread to the profiler. r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D78503
2020-06-12 13:13:06 +00:00
Greg Tatum 9322f4483d Bug 1642330 - Fix profiler icon in the overflow menu; r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D78143
2020-06-11 21:35:07 +00:00
Paul Adenot dfcea09efd Bug 1641608 - Add "GraphRunner" to the media preset thread list. r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D77299
2020-05-28 18:57:10 +00:00
Gerald Squelart fedbac274e Bug 1641149 - Add 'fileio', 'fileioall', 'noiostacks' to about:profiling - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D77013
2020-05-28 01:25:02 +00:00
Greg Tatum 3802fc82a4 Bug 1640274 - Remove the unused TrackOptimizations profiler; r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D76854
2020-05-27 22:08:49 +00:00
Greg Tatum ca8ec92461 Bug 1571086 - Remove privacy feature from the profiler; r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D76853
2020-05-27 22:07:57 +00:00
Greg Tatum db4d917032 Bug 1633855 - Break out the about:profiling features into separate sub-sections; r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D76512
2020-05-27 22:07:30 +00:00
Greg Tatum 873a3e02c2 Bug 1633855 - Re-work the experimental definitions for features; r=julienw
This commit changes up the definitions of the presets a bit. I promoted the
allocations work to non-experimental, as it's fairly well supported now in the UI.
Others I demoted to experimental if they were not supported in our current UI,
or flat out don't work.

Differential Revision: https://phabricator.services.mozilla.com/D76511
2020-05-27 22:07:08 +00:00
Greg Tatum 680b9f7324 Bug 1633855 - Clean up some old getSupportedFeatures actor compatibility; r=julienw
This is a drive-by clean-up, as I was touching this code.

Differential Revision: https://phabricator.services.mozilla.com/D76510
2020-05-27 22:06:54 +00:00
Greg Tatum 8b1305be4b Bug 1634448 - Update the menu button to reflect the current profiler states; r=canaltinova
This patch adjusts the profiler menu button to properly reflect the current state
of the profiler. It doesn't completely match the design spec, as there are a bunch
of CSS rules already in place in the toolbar, and I wanted to keep the changes
simple. It does however, update the UI based on the state of the profiler.

Differential Revision: https://phabricator.services.mozilla.com/D75851
2020-05-26 15:59:59 +00:00
Greg Tatum b9823e9fb8 Bug 1598734 - Refine background script toggleProfiler and captureProfile commands; r=canaltinova
This patch handles the issue where a user sends two commands two toggle the profiler and/or
capture. This gets the profiler UI in a weird state that usually is just because the UI
is hanging and lagging. This makes the profiler pause state into a "capturing" state.
I did not include a test with the behavior change, as I was worried about intermittent
failures on asserting this behavior.

Differential Revision: https://phabricator.services.mozilla.com/D75850
2020-05-26 15:42:34 +00:00
Greg Tatum b5e1be1d8d Bug 1634448 - Remove some unused references to the old profiler popup iframe; r=canaltinova
These were left-over from the previous implementation.

Differential Revision: https://phabricator.services.mozilla.com/D75849
2020-05-26 15:42:20 +00:00
Greg Tatum 5c9b8bef77 Bug 1634542 - Add a test for the private browsing popup support; r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D75602
2020-05-18 14:49:17 +00:00
Greg Tatum 2b35eaf09a Bug 1634542 - Teach the profiler popup about private browsing; r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D75601
2020-05-18 14:35:15 +00:00