Commit Graph
22 Commits
Author SHA1 Message Date
Tim van der Lippe 5e1aeb0577 Remove suppress annotations
All of these were Closure-specific.

R=szuend@chromium.org

No-Presubmit: True
Bug: 1011811
Change-Id: Ia580e21cd3b06f532bb5a63a770ccfa3d7c796ee
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2569761
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2020-12-02 17:27:02 +00:00
Tim van der Lippe 7dcef88d8b Remove skip_compilation from module.json files
R=aerotwist@chromium.org

Bug: 1011811
Change-Id: I4c4fd280adb4f5f7b327239d08d80b2cb98b203b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2560248
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
2020-11-25 13:19:08 +00:00
Tim van der Lippe 8b068ffba1 Remove initialization of globals in Runtime
We initialize the globals in the `-legacy.js` files and therefore
don't require the additional assignments in the Runtime itself.

R=jacktfranklin@chromium.org

Bug: 1127902
Fixed: 1058320
Change-Id: Id6c13d9f2b9d781bfab73957621324335d394a2b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2410225
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-09-15 12:08:12 +00:00
Tim van der Lippe 8e74d69253 Load performance_test_runner as module
R=jacktfranklin@chromium.org

Bug: 1105476
Change-Id: If36ca8ce0d04da4965b6084155c7813f1c71a1c8
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2409995
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-09-14 16:19:38 +00:00
Songtao Xia 1e6926836e [DevTools] More info for Service Worker Fetch Responses
This is to re-land PR:

https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2233229

The PR is reverted because web_test network/resource-priority.js is
flaky. The test is now disabled.

Add ResponseSource, CacheStorageCacheName, ResponseTime information
for ServiceWorker Fetch responses.

Based on previous work by Anubmat@microsoft.com.

Corresponding Chromium.src
changes: https://chromium-review.googlesource.com/c/chromium/src/+/2145090
Image: https://imgur.com/a/vchMPGZ

Explainer:
https://docs.google.com/document/d/1L-dhKWYoVECdoqVQ0hOKqtyWbk5LtluFWbZE8PJZtnU/edit
Bug: 1066595
Change-Id: Ie34d05d8d3c018b756127385e49d977248f9acc5
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2251079
Commit-Queue: Songtao Xia <soxia@microsoft.com>
Reviewed-by: Kalon Hinds <kahinds@microsoft.com>
2020-06-19 15:10:31 +00:00
Kim-Anh Tran c2b2b0b863 Revert "[DevTools] More info for Service Worker Fetch Responses"
This reverts commit ce3397987e.

Reason for revert: Fails webtest in Chromium roll: https://ci.chromium.org/p/chromium/builders/ci/Linux%20Tests%20%28dbg%29%281%29/89664

TBR: soxia@microsoft.com,Rob.Paveza@microsoft.com,vidorteg@microsoft.com
Bug: chromium:1095582, chromium:1066595
Change-Id: I7af40a63e65f7f0daedbaeb68de4a779391ca3ec
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2248193
Reviewed-by: Kim-Anh Tran <kimanh@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
2020-06-17 07:22:47 +00:00
Songtao Xia ce3397987e [DevTools] More info for Service Worker Fetch Responses
Add ResponseSource, CacheStorageCacheName, ResponseTime information
for ServiceWorker Fetch responses.

Based on previous work by Anubmat@microsoft.com.

Corresponding Chromium.src
changes: https://chromium-review.googlesource.com/c/chromium/src/+/2145090
Image: https://imgur.com/a/vchMPGZ

Explainer:
https://docs.google.com/document/d/1L-dhKWYoVECdoqVQ0hOKqtyWbk5LtluFWbZE8PJZtnU/edit
Bug: 1066595
Change-Id: I437966c567d3f90aa0b7c11a784de45cd41bfb14
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2233229
Commit-Queue: Songtao Xia <soxia@microsoft.com>
Reviewed-by: Robert Paveza <Rob.Paveza@microsoft.com>
Reviewed-by: Vidal Diazleal <vidorteg@microsoft.com>
2020-06-16 05:41:06 +00:00
danakj cae7aa58cf Remove use of capturePixelsAsyncThen() which will be removed.
This switches to using updateAllLifecyclePhasesAndComposite() instead,
which doesn't pretend to return pixels.

R=yangguo@chromium.org

Bug: 866140, 1069111, 952399
Change-Id: If4ea6117cf176e3649ee4394ae913a404f1652c1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2208540
Reviewed-by: Yang Guo <yangguo@chromium.org>
Commit-Queue: danakj <danakj@chromium.org>
2020-05-29 15:18:23 +00:00
Simon Zünd 6b7708a02a Prepare various test utilities for asynchronous source mapping
This CL prepares all test runners for:
  * asynchronous {rawLocationToUILocation}
  * asynchronous live location updates

The call-tree roots are web tests. All web tests have already been
prepared so this CL prepares the test runners themselves.

Bug: chromium:1032016
Change-Id: I1dc9432eaab7177df44ac0711294ee02e62a0fd2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2067072
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2020-02-25 12:22:33 +00:00
Paul Lewis 50993696be [Global] Update refs to UI.viewManager & UI.zoomManager
Bug: 1006759
Change-Id: Iebf11153861850acbbfef9f40e3552d1be9a6460
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2016760
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
2020-01-23 15:45:11 +00:00
Tim van der Lippe 83f02be257 Standardize license headers
Many of the license headers were incorrect or corrupted. To prepare for
a check that verifies correct license headers are added to source code,
we should fix up the existing license headers to use the correct format.

The license headers that include non-Google/non-Chromium authors are
left as-is.

Change-Id: Iab9bdc41d815ac7ab07ccacf44818f3b56a75230
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2016745
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
2020-01-23 13:00:41 +00:00
Paul Lewis 4ae5f4f5ce [Global] Update refs to SDK.targetManager
Bug: 1006759
Change-Id: I0686ef929b89e75c2ea8a731c593d955eca85935
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2015119
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
2020-01-23 10:56:40 +00:00
Anubha Mathur f3b0f52a1e DevTools: Add Supporting function for Performance panel a11y tests
Adds a function need for a11y tests in this PR - https://chromium-review.googlesource.com/c/chromium/src/+/1730764

Bug: 963183
Change-Id: I86158bd5d9516e6974d5ec8bc2fc6d900d6adc1f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1975093
Reviewed-by: Robert Paveza <Rob.Paveza@microsoft.com>
Commit-Queue: Anubha Mathur <anubmat@microsoft.com>
2020-01-02 21:04:39 +00:00
Tim van der Lippe e3595942b0 Migrate platform/ to ESM
- Change Multimap to Platform.Multimap
- Importscripts in workers. This means that the file does not export any
utilities, but we will need to clean that up later.

Bug: 1006759
Change-Id: I91d45febebfc597f0d0b5c6a017c26f6b12b84b4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1832218
Commit-Queue: Tim Van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#702111}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d704d799ac695e03ef367102c2a870e4a5f239e9
2019-10-02 18:15:32 +00:00
Tim van der Lippe 1d6e57a0e3 Always add braces to single-line if-statements
The Chromium/Google style guides does not enforce curly braces for
single-line if-statements, but does strongly recommend doing so. Adding
braces will improve code readability, by visually separating code
blocks. This will also prevent issues where accidental additions are
pushed to the "else"-clause instead of in the if-block.

This CL also updates the presubmit `eslint` to run the fix with the
correct configuration. It will now fix all issues it can fix.

Change-Id: I4b616f21a99393f168dec743c0bcbdc7f5db04a9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1821526
Commit-Queue: Tim Van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Reviewed-by: Jeff Fisher <jeffish@microsoft.com>
Cr-Original-Commit-Position: refs/heads/master@{#701070}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7e0bdbe2d7f9fc2386bfaefda3cc29c66ccc18f9
2019-09-30 11:55:34 +00:00
Peter Marshall d660a81676 DevTools: Fix self-time calculation when filtering in Bottom-Up tab
Previously we applied the filtering from the user (_textFilter) before
we calculated the self-time for each of the nodes. The way this
calculation works is that each node is assigned the entire time of
its duration, and then child nodes 'steal' self-time from their parent,
and the parent is left with the remaining non-stolen self-time.

If we filter before calculating time, child nodes won't steal self-time
from their parents, and the self-time for the parents will be wrong as
seen in the bug report.

This change includes all nodes (ignoring _textFilter) in the
calculation step and then filters out the nodes from the final data
structure.

Bug: chromium:970825
Change-Id: I99655877e46671c4e2beb944116aa57eab69b8a4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1706694
Reviewed-by: Alexei Filippov <alph@chromium.org>
Commit-Queue: Peter Marshall <petermarshall@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#682720}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 3265a3b071b0a48bcad70f872a29d2f6756b042f
2019-07-31 15:26:34 +00:00
James Lissiak 821d228775 DevTools: Replace the chrome-devtools:// URL scheme with a more generic
devtools:// scheme

This change replaces the chrome-devtools:// URL scheme, with a more
browser-agnostic equivalent.
Naturally, many files had to be touched, but it's mostly a
straightforward find/replace.

A related change is out against the catapult repo here:
https://chromium-review.googlesource.com/c/catapult/+/1606268,
which removes a test file containing the old scheme. Once it goes in,
the root DEPS file in the chromium repo needs to be updated as well.

Note:
This is a continuation of patch 1552143, but since Fabio is out on
leave and I don't have permissions to upload to his patch, I needed to
start a new one.

Bug: 960409
Change-Id: I3ede7f8d1dcbca457167eb3641ae60e9685d8d78
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1582881
Commit-Queue: James Lissiak <jalissia@microsoft.com>
Reviewed-by: Joel Einbinder <einbinder@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Reviewed-by: Charlie Reis <creis@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#659944}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 28b21a67f09a13c465b73776aecd9995d8a07737
2019-05-15 15:32:04 +00:00
Alexei Filippov b7fd0cc5f3 DevTools: Expose renderer tasks on the performance panel.
Drive-by: Rename 'Other' category to 'System'.

BUG=681863

Change-Id: I6e2f71a9ad01280b2c13314a65d3a535fa54a31a
Reviewed-on: https://chromium-review.googlesource.com/c/1452774
Commit-Queue: Alexei Filippov <alph@chromium.org>
Commit-Queue: oysteine <oysteine@chromium.org>
Reviewed-by: oysteine <oysteine@chromium.org>
Reviewed-by: Alexander Timin <altimin@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Auto-Submit: Alexei Filippov <alph@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#630929}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6682b219ce38adb3b2302235ac3c4e2080cf46b2
2019-02-11 21:09:32 +00:00
Paul Irish d982f6cdf8 Build hash for PerformanceMeasureEntry trace event with start/end times
Bug: 912363
Change-Id: I33dfc873765de17ca6f30db850093337f89da5bd
Reviewed-on: https://chromium-review.googlesource.com/c/1359865
Commit-Queue: Paul Irish <paulirish@chromium.org>
Reviewed-by: Nicolás Peña Moreno <npm@chromium.org>
Reviewed-by: Alexei Filippov <alph@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#614575}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 3e4f35ef10df237ec8c34460552a6366058b763b
2018-12-07 01:59:50 +00:00
Alexei Filippov 45dbf9814a DevTools: Introduce FrameStartedLoading event
Show the navigation time mark on the timeline.

Change-Id: I1d8d832f40b17094f84ef1b1ae366beabe6016ec
Reviewed-on: https://chromium-review.googlesource.com/1036619
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Commit-Queue: Alexei Filippov <alph@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#555208}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 3423647773befa7ffab8395f6edc6d7e3890ca16
2018-05-01 22:51:52 +00:00
Alexei Filippov 35f97d680f DevTools: Move visible events filter to TimelineModel
BUG=836030

Change-Id: I0a11b2dd04b21b06a33e0fd9e20c9cc299901c6f
Reviewed-on: https://chromium-review.googlesource.com/1032232
Commit-Queue: Alexei Filippov <alph@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#554592}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b79085234f1897b39abeb8632008f5dd91c3f0fe
2018-04-28 01:02:31 +00:00
Blink Reformat 4c46d0969f The Great Blink mv for source files, part 2.
Move and rename files.

NOAUTOREVERT=true
NOPRESUBMIT=true
NOTREECHECKS=true
Bug: 768828
TBR=darin@chromium.org
NOTRY=true

Change-Id: I66d3b155808bc5bdbf237b80208e1e552bcf7f28
Reviewed-on: https://chromium-review.googlesource.com/1001153
Reviewed-by: Blink Reformat <blink-reformat@chromium.org>
Commit-Queue: Blink Reformat <blink-reformat@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#549061}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0aee4434a4dba42a42abaea9bfbc0cd196a63bc1
2018-04-07 15:32:37 +00:00