chrome-devtools-mcp 1.4.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -3
- package/build/src/HeapSnapshotManager.js +83 -16
- package/build/src/McpContext.js +218 -367
- package/build/src/McpPage.js +242 -31
- package/build/src/McpResponse.js +165 -60
- package/build/src/PageCollector.js +48 -122
- package/build/src/TextSnapshot.js +20 -2
- package/build/src/ToolHandler.js +13 -3
- package/build/src/WaitForHelper.js +18 -8
- package/build/src/bin/chrome-devtools-cli-options.js +76 -4
- package/build/src/bin/chrome-devtools-mcp-cli-options.js +15 -6
- package/build/src/bin/chrome-devtools-mcp-main.js +2 -2
- package/build/src/bin/chrome-devtools.js +25 -1
- package/build/src/browser.js +1 -1
- package/build/src/daemon/client.js +33 -3
- package/build/src/daemon/daemon.js +3 -2
- package/build/src/daemon/utils.js +1 -1
- package/build/src/devtools/DevtoolsUtils.js +2 -63
- package/build/src/{issue-descriptions.js → devtools/issueDescriptions.js} +8 -6
- package/build/src/formatters/HeapSnapshotFormatter.js +43 -0
- package/build/src/formatters/IssueFormatter.js +2 -2
- package/build/src/index.js +14 -5
- package/build/src/telemetry/ClearcutLogger.js +1 -1
- package/build/src/telemetry/WatchdogClient.js +1 -1
- package/build/src/telemetry/metricsRegistry.js +2 -9
- package/build/src/telemetry/persistence.js +1 -1
- package/build/src/telemetry/transformation.js +20 -0
- package/build/src/telemetry/watchdog/ClearcutSender.js +1 -1
- package/build/src/telemetry/watchdog/main.js +1 -1
- package/build/src/third_party/THIRD_PARTY_NOTICES +13 -279
- package/build/src/third_party/bundled-packages.json +3 -5
- package/build/src/third_party/devtools-heap-snapshot-worker.js +81 -0
- package/build/src/third_party/index.js +2418 -2197
- package/build/src/third_party/lighthouse-devtools-mcp-bundle.js +3082 -6343
- package/build/src/tools/emulation.js +2 -2
- package/build/src/tools/extensions.js +1 -1
- package/build/src/tools/input.js +17 -8
- package/build/src/tools/lighthouse.js +1 -1
- package/build/src/tools/memory.js +76 -6
- package/build/src/tools/network.js +4 -4
- package/build/src/tools/pages.js +21 -89
- package/build/src/tools/performance.js +2 -2
- package/build/src/tools/screencast.js +1 -2
- package/build/src/tools/script.js +6 -10
- package/build/src/tools/snapshot.js +2 -2
- package/build/src/tools/thirdPartyDeveloper.js +7 -7
- package/build/src/tools/webmcp.js +1 -1
- package/build/src/trace-processing/parse.js +1 -1
- package/build/src/utils/files.js +0 -4
- package/build/src/{logger.js → utils/logger.js} +1 -1
- package/build/src/{polyfill.js → utils/polyfill.js} +1 -1
- package/build/src/version.js +1 -1
- package/package.json +17 -5
- package/skills/memory-leak-debugging/SKILL.md +22 -14
- package/build/src/utils/types.js +0 -7
- /package/build/src/{Mutex.js → utils/Mutex.js} +0 -0
|
@@ -1,30 +1,3 @@
|
|
|
1
|
-
Name: urlpattern-polyfill
|
|
2
|
-
URL: https://github.com/kenchris/urlpattern-polyfill
|
|
3
|
-
Version: 10.1.0
|
|
4
|
-
License: MIT
|
|
5
|
-
|
|
6
|
-
Copyright 2020 Intel Corporation
|
|
7
|
-
|
|
8
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
10
|
-
in the Software without restriction, including without limitation the rights
|
|
11
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
13
|
-
furnished to do so, subject to the following conditions:
|
|
14
|
-
|
|
15
|
-
The above copyright notice and this permission notice shall be included in
|
|
16
|
-
all copies or substantial portions of the Software.
|
|
17
|
-
|
|
18
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
24
|
-
THE SOFTWARE.
|
|
25
|
-
|
|
26
|
-
-------------------- DEPENDENCY DIVIDER --------------------
|
|
27
|
-
|
|
28
1
|
Name: core-js
|
|
29
2
|
URL: https://core-js.io
|
|
30
3
|
Version: 3.49.0
|
|
@@ -867,14 +840,14 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
867
840
|
|
|
868
841
|
Name: puppeteer-core
|
|
869
842
|
URL: https://github.com/puppeteer/puppeteer/tree/main/packages/puppeteer-core
|
|
870
|
-
Version: 25.
|
|
843
|
+
Version: 25.3.0
|
|
871
844
|
License: Apache-2.0
|
|
872
845
|
|
|
873
846
|
-------------------- DEPENDENCY DIVIDER --------------------
|
|
874
847
|
|
|
875
848
|
Name: @puppeteer/browsers
|
|
876
849
|
URL: https://github.com/puppeteer/puppeteer/tree/main/packages/browsers
|
|
877
|
-
Version: 3.0.
|
|
850
|
+
Version: 3.0.6
|
|
878
851
|
License: Apache-2.0
|
|
879
852
|
|
|
880
853
|
-------------------- DEPENDENCY DIVIDER --------------------
|
|
@@ -906,36 +879,6 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
|
906
879
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
907
880
|
|
|
908
881
|
|
|
909
|
-
-------------------- DEPENDENCY DIVIDER --------------------
|
|
910
|
-
|
|
911
|
-
Name: @toon-format/toon
|
|
912
|
-
URL: https://toonformat.dev
|
|
913
|
-
Version: 2.3.0
|
|
914
|
-
License: MIT
|
|
915
|
-
|
|
916
|
-
MIT License
|
|
917
|
-
|
|
918
|
-
Copyright (c) 2025-PRESENT Johann Schopplich
|
|
919
|
-
|
|
920
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
921
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
922
|
-
in the Software without restriction, including without limitation the rights
|
|
923
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
924
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
925
|
-
furnished to do so, subject to the following conditions:
|
|
926
|
-
|
|
927
|
-
The above copyright notice and this permission notice shall be included in all
|
|
928
|
-
copies or substantial portions of the Software.
|
|
929
|
-
|
|
930
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
931
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
932
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
933
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
934
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
935
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
936
|
-
SOFTWARE.
|
|
937
|
-
|
|
938
|
-
|
|
939
882
|
-------------------- DEPENDENCY DIVIDER --------------------
|
|
940
883
|
|
|
941
884
|
Name: chrome-devtools-frontend
|
|
@@ -1799,7 +1742,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|
|
1799
1742
|
|
|
1800
1743
|
Name: @paulirish/trace_engine
|
|
1801
1744
|
URL: N/A
|
|
1802
|
-
Version: 0.0.
|
|
1745
|
+
Version: 0.0.65
|
|
1803
1746
|
License: BSD-3-Clause
|
|
1804
1747
|
|
|
1805
1748
|
// Copyright 2014 The Chromium Authors
|
|
@@ -1865,7 +1808,7 @@ SOFTWARE.
|
|
|
1865
1808
|
|
|
1866
1809
|
Name: axe-core
|
|
1867
1810
|
URL: https://www.deque.com/axe/
|
|
1868
|
-
Version: 4.
|
|
1811
|
+
Version: 4.12.0
|
|
1869
1812
|
License: MPL-2.0
|
|
1870
1813
|
|
|
1871
1814
|
Mozilla Public License, version 2.0
|
|
@@ -2236,7 +2179,7 @@ Exhibit B - "Incompatible With Secondary Licenses" Notice
|
|
|
2236
2179
|
|
|
2237
2180
|
Name: csp_evaluator
|
|
2238
2181
|
URL: https://csp-evaluator.withgoogle.com/
|
|
2239
|
-
Version: 1.1.
|
|
2182
|
+
Version: 1.1.8
|
|
2240
2183
|
License: Apache-2.0
|
|
2241
2184
|
|
|
2242
2185
|
|
|
@@ -2446,7 +2389,7 @@ License: Apache-2.0
|
|
|
2446
2389
|
|
|
2447
2390
|
Name: debug
|
|
2448
2391
|
URL: git://github.com/debug-js/debug.git
|
|
2449
|
-
Version: 4.3
|
|
2392
|
+
Version: 4.4.3
|
|
2450
2393
|
License: MIT
|
|
2451
2394
|
|
|
2452
2395
|
(The MIT License)
|
|
@@ -3270,13 +3213,13 @@ APPENDIX: How to apply the Apache License to your work
|
|
|
3270
3213
|
-------------------- DEPENDENCY DIVIDER --------------------
|
|
3271
3214
|
|
|
3272
3215
|
Name: ms
|
|
3273
|
-
URL:
|
|
3274
|
-
Version: 2.1.
|
|
3216
|
+
URL: vercel/ms
|
|
3217
|
+
Version: 2.1.3
|
|
3275
3218
|
License: MIT
|
|
3276
3219
|
|
|
3277
3220
|
The MIT License (MIT)
|
|
3278
3221
|
|
|
3279
|
-
Copyright (c)
|
|
3222
|
+
Copyright (c) 2020 Vercel, Inc.
|
|
3280
3223
|
|
|
3281
3224
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
3282
3225
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -3301,7 +3244,7 @@ SOFTWARE.
|
|
|
3301
3244
|
|
|
3302
3245
|
Name: puppeteer-core
|
|
3303
3246
|
URL: https://github.com/puppeteer/puppeteer/tree/main/packages/puppeteer-core
|
|
3304
|
-
Version:
|
|
3247
|
+
Version: 25.0.2
|
|
3305
3248
|
License: Apache-2.0
|
|
3306
3249
|
|
|
3307
3250
|
-------------------- DEPENDENCY DIVIDER --------------------
|
|
@@ -3367,7 +3310,7 @@ SOFTWARE.
|
|
|
3367
3310
|
|
|
3368
3311
|
Name: tldts-core
|
|
3369
3312
|
URL: https://github.com/remusao/tldts#readme
|
|
3370
|
-
Version: 7.
|
|
3313
|
+
Version: 7.4.2
|
|
3371
3314
|
License: MIT
|
|
3372
3315
|
|
|
3373
3316
|
Copyright (c) 2017 Thomas Parisot, 2018 Rémi Berson
|
|
@@ -3389,7 +3332,7 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTH
|
|
|
3389
3332
|
|
|
3390
3333
|
Name: tldts-icann
|
|
3391
3334
|
URL: https://github.com/remusao/tldts#readme
|
|
3392
|
-
Version: 7.
|
|
3335
|
+
Version: 7.4.2
|
|
3393
3336
|
License: MIT
|
|
3394
3337
|
|
|
3395
3338
|
Copyright (c) 2017 Thomas Parisot, 2018 Rémi Berson
|
|
@@ -3425,213 +3368,4 @@ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
|
3425
3368
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
3426
3369
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
3427
3370
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
3428
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
3429
|
-
|
|
3430
|
-
-------------------- DEPENDENCY DIVIDER --------------------
|
|
3431
|
-
|
|
3432
|
-
Name: web-features
|
|
3433
|
-
URL: git+https://github.com/web-platform-dx/web-features.git
|
|
3434
|
-
Version: 3.26.0
|
|
3435
|
-
License: Apache-2.0
|
|
3436
|
-
|
|
3437
|
-
Apache License
|
|
3438
|
-
Version 2.0, January 2004
|
|
3439
|
-
http://www.apache.org/licenses/
|
|
3440
|
-
|
|
3441
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
3442
|
-
|
|
3443
|
-
1. Definitions.
|
|
3444
|
-
|
|
3445
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
3446
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
3447
|
-
|
|
3448
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
3449
|
-
the copyright owner that is granting the License.
|
|
3450
|
-
|
|
3451
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
3452
|
-
other entities that control, are controlled by, or are under common
|
|
3453
|
-
control with that entity. For the purposes of this definition,
|
|
3454
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
3455
|
-
direction or management of such entity, whether by contract or
|
|
3456
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
3457
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
3458
|
-
|
|
3459
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
3460
|
-
exercising permissions granted by this License.
|
|
3461
|
-
|
|
3462
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
3463
|
-
including but not limited to software source code, documentation
|
|
3464
|
-
source, and configuration files.
|
|
3465
|
-
|
|
3466
|
-
"Object" form shall mean any form resulting from mechanical
|
|
3467
|
-
transformation or translation of a Source form, including but
|
|
3468
|
-
not limited to compiled object code, generated documentation,
|
|
3469
|
-
and conversions to other media types.
|
|
3470
|
-
|
|
3471
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
3472
|
-
Object form, made available under the License, as indicated by a
|
|
3473
|
-
copyright notice that is included in or attached to the work
|
|
3474
|
-
(an example is provided in the Appendix below).
|
|
3475
|
-
|
|
3476
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
3477
|
-
form, that is based on (or derived from) the Work and for which the
|
|
3478
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
3479
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
3480
|
-
of this License, Derivative Works shall not include works that remain
|
|
3481
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
3482
|
-
the Work and Derivative Works thereof.
|
|
3483
|
-
|
|
3484
|
-
"Contribution" shall mean any work of authorship, including
|
|
3485
|
-
the original version of the Work and any modifications or additions
|
|
3486
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
3487
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
3488
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
3489
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
3490
|
-
means any form of electronic, verbal, or written communication sent
|
|
3491
|
-
to the Licensor or its representatives, including but not limited to
|
|
3492
|
-
communication on electronic mailing lists, source code control systems,
|
|
3493
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
3494
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
3495
|
-
excluding communication that is conspicuously marked or otherwise
|
|
3496
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
3497
|
-
|
|
3498
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
3499
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
3500
|
-
subsequently incorporated within the Work.
|
|
3501
|
-
|
|
3502
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
3503
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
3504
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
3505
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
3506
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
3507
|
-
Work and such Derivative Works in Source or Object form.
|
|
3508
|
-
|
|
3509
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
3510
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
3511
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
3512
|
-
(except as stated in this section) patent license to make, have made,
|
|
3513
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
3514
|
-
where such license applies only to those patent claims licensable
|
|
3515
|
-
by such Contributor that are necessarily infringed by their
|
|
3516
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
3517
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
3518
|
-
institute patent litigation against any entity (including a
|
|
3519
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
3520
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
3521
|
-
or contributory patent infringement, then any patent licenses
|
|
3522
|
-
granted to You under this License for that Work shall terminate
|
|
3523
|
-
as of the date such litigation is filed.
|
|
3524
|
-
|
|
3525
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
3526
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
3527
|
-
modifications, and in Source or Object form, provided that You
|
|
3528
|
-
meet the following conditions:
|
|
3529
|
-
|
|
3530
|
-
(a) You must give any other recipients of the Work or
|
|
3531
|
-
Derivative Works a copy of this License; and
|
|
3532
|
-
|
|
3533
|
-
(b) You must cause any modified files to carry prominent notices
|
|
3534
|
-
stating that You changed the files; and
|
|
3535
|
-
|
|
3536
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
3537
|
-
that You distribute, all copyright, patent, trademark, and
|
|
3538
|
-
attribution notices from the Source form of the Work,
|
|
3539
|
-
excluding those notices that do not pertain to any part of
|
|
3540
|
-
the Derivative Works; and
|
|
3541
|
-
|
|
3542
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
3543
|
-
distribution, then any Derivative Works that You distribute must
|
|
3544
|
-
include a readable copy of the attribution notices contained
|
|
3545
|
-
within such NOTICE file, excluding those notices that do not
|
|
3546
|
-
pertain to any part of the Derivative Works, in at least one
|
|
3547
|
-
of the following places: within a NOTICE text file distributed
|
|
3548
|
-
as part of the Derivative Works; within the Source form or
|
|
3549
|
-
documentation, if provided along with the Derivative Works; or,
|
|
3550
|
-
within a display generated by the Derivative Works, if and
|
|
3551
|
-
wherever such third-party notices normally appear. The contents
|
|
3552
|
-
of the NOTICE file are for informational purposes only and
|
|
3553
|
-
do not modify the License. You may add Your own attribution
|
|
3554
|
-
notices within Derivative Works that You distribute, alongside
|
|
3555
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
3556
|
-
that such additional attribution notices cannot be construed
|
|
3557
|
-
as modifying the License.
|
|
3558
|
-
|
|
3559
|
-
You may add Your own copyright statement to Your modifications and
|
|
3560
|
-
may provide additional or different license terms and conditions
|
|
3561
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
3562
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
3563
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
3564
|
-
the conditions stated in this License.
|
|
3565
|
-
|
|
3566
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
3567
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
3568
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
3569
|
-
this License, without any additional terms or conditions.
|
|
3570
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
3571
|
-
the terms of any separate license agreement you may have executed
|
|
3572
|
-
with Licensor regarding such Contributions.
|
|
3573
|
-
|
|
3574
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
3575
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
3576
|
-
except as required for reasonable and customary use in describing the
|
|
3577
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
3578
|
-
|
|
3579
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
3580
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
3581
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
3582
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
3583
|
-
implied, including, without limitation, any warranties or conditions
|
|
3584
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
3585
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
3586
|
-
appropriateness of using or redistributing the Work and assume any
|
|
3587
|
-
risks associated with Your exercise of permissions under this License.
|
|
3588
|
-
|
|
3589
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
3590
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
3591
|
-
unless required by applicable law (such as deliberate and grossly
|
|
3592
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
3593
|
-
liable to You for damages, including any direct, indirect, special,
|
|
3594
|
-
incidental, or consequential damages of any character arising as a
|
|
3595
|
-
result of this License or out of the use or inability to use the
|
|
3596
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
3597
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
3598
|
-
other commercial damages or losses), even if such Contributor
|
|
3599
|
-
has been advised of the possibility of such damages.
|
|
3600
|
-
|
|
3601
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
3602
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
3603
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
3604
|
-
or other liability obligations and/or rights consistent with this
|
|
3605
|
-
License. However, in accepting such obligations, You may act only
|
|
3606
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
3607
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
3608
|
-
defend, and hold each Contributor harmless for any liability
|
|
3609
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
3610
|
-
of your accepting any such warranty or additional liability.
|
|
3611
|
-
|
|
3612
|
-
END OF TERMS AND CONDITIONS
|
|
3613
|
-
|
|
3614
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
3615
|
-
|
|
3616
|
-
To apply the Apache License to your work, attach the following
|
|
3617
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
3618
|
-
replaced with your own identifying information. (Don't include
|
|
3619
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
3620
|
-
comment syntax for the file format. We also recommend that a
|
|
3621
|
-
file or class name and description of purpose be included on the
|
|
3622
|
-
same "printed page" as the copyright notice for easier
|
|
3623
|
-
identification within third-party archives.
|
|
3624
|
-
|
|
3625
|
-
Copyright [yyyy] [name of copyright owner]
|
|
3626
|
-
|
|
3627
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
3628
|
-
you may not use this file except in compliance with the License.
|
|
3629
|
-
You may obtain a copy of the License at
|
|
3630
|
-
|
|
3631
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
3632
|
-
|
|
3633
|
-
Unless required by applicable law or agreed to in writing, software
|
|
3634
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
3635
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3636
|
-
See the License for the specific language governing permissions and
|
|
3637
|
-
limitations under the License.
|
|
3371
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"@modelcontextprotocol/sdk": "1.29.0",
|
|
3
|
-
"
|
|
4
|
-
"chrome-devtools-frontend": "1.0.1650035",
|
|
3
|
+
"chrome-devtools-frontend": "1.0.1652307",
|
|
5
4
|
"core-js": "3.49.0",
|
|
6
5
|
"debug": "4.4.3",
|
|
7
6
|
"lighthouse": "13.4.0",
|
|
8
|
-
"semver": "
|
|
9
|
-
"urlpattern-polyfill": "^10.1.0",
|
|
7
|
+
"semver": "7.8.5",
|
|
10
8
|
"yargs": "18.0.0",
|
|
11
|
-
"puppeteer-core": "25.
|
|
9
|
+
"puppeteer-core": "25.3.0"
|
|
12
10
|
}
|
|
@@ -5930,6 +5930,9 @@ class HeapSnapshotProxy extends HeapSnapshotProxyObject {
|
|
|
5930
5930
|
aggregatesWithFilter(filter) {
|
|
5931
5931
|
return this.callMethodPromise('aggregatesWithFilter', filter);
|
|
5932
5932
|
}
|
|
5933
|
+
getDuplicateStrings() {
|
|
5934
|
+
return this.callMethodPromise('getDuplicateStrings');
|
|
5935
|
+
}
|
|
5933
5936
|
aggregatesForDiff(interfaceDefinitions) {
|
|
5934
5937
|
return this.callMethodPromise('aggregatesForDiff', interfaceDefinitions);
|
|
5935
5938
|
}
|
|
@@ -6712,6 +6715,45 @@ class HeapSnapshotNode {
|
|
|
6712
6715
|
value |= detachedness;
|
|
6713
6716
|
this.#setDetachednessAndClassIndex(value);
|
|
6714
6717
|
}
|
|
6718
|
+
findInternalEdgeTarget(name) {
|
|
6719
|
+
for (let iter = this.edges(); iter.hasNext(); iter.next()) {
|
|
6720
|
+
const edge = iter.edge;
|
|
6721
|
+
if (!edge.isInternal()) {
|
|
6722
|
+
continue;
|
|
6723
|
+
}
|
|
6724
|
+
if (edge.name() === name) {
|
|
6725
|
+
return edge.node();
|
|
6726
|
+
}
|
|
6727
|
+
}
|
|
6728
|
+
return undefined;
|
|
6729
|
+
}
|
|
6730
|
+
nodeValueAsBool() {
|
|
6731
|
+
if (this.rawType() !== this.snapshot.nodeNumberType) {
|
|
6732
|
+
return undefined;
|
|
6733
|
+
}
|
|
6734
|
+
if (this.rawName() !== 'bool') {
|
|
6735
|
+
return undefined;
|
|
6736
|
+
}
|
|
6737
|
+
const valNode = this.findInternalEdgeTarget('value');
|
|
6738
|
+
if (!valNode) {
|
|
6739
|
+
return undefined;
|
|
6740
|
+
}
|
|
6741
|
+
const rawName = valNode.rawName();
|
|
6742
|
+
if (rawName === 'true') {
|
|
6743
|
+
return true;
|
|
6744
|
+
}
|
|
6745
|
+
if (rawName === 'false') {
|
|
6746
|
+
return false;
|
|
6747
|
+
}
|
|
6748
|
+
return undefined;
|
|
6749
|
+
}
|
|
6750
|
+
nodeIsTruncatedString() {
|
|
6751
|
+
const truncNode = this.findInternalEdgeTarget('truncated');
|
|
6752
|
+
if (!truncNode) {
|
|
6753
|
+
return false;
|
|
6754
|
+
}
|
|
6755
|
+
return truncNode.nodeValueAsBool() === true;
|
|
6756
|
+
}
|
|
6715
6757
|
}
|
|
6716
6758
|
class HeapSnapshotNodeIterator {
|
|
6717
6759
|
node;
|
|
@@ -6927,6 +6969,7 @@ class HeapSnapshot {
|
|
|
6927
6969
|
nodeSyntheticType;
|
|
6928
6970
|
nodeClosureType;
|
|
6929
6971
|
nodeRegExpType;
|
|
6972
|
+
nodeNumberType;
|
|
6930
6973
|
edgeFieldsCount;
|
|
6931
6974
|
edgeTypeOffset;
|
|
6932
6975
|
edgeNameOffset;
|
|
@@ -7001,6 +7044,7 @@ class HeapSnapshot {
|
|
|
7001
7044
|
this.nodeSyntheticType = this.nodeTypes.indexOf('synthetic');
|
|
7002
7045
|
this.nodeClosureType = this.nodeTypes.indexOf('closure');
|
|
7003
7046
|
this.nodeRegExpType = this.nodeTypes.indexOf('regexp');
|
|
7047
|
+
this.nodeNumberType = this.nodeTypes.indexOf('number');
|
|
7004
7048
|
this.edgeFieldsCount = meta.edge_fields.length;
|
|
7005
7049
|
this.edgeTypeOffset = meta.edge_fields.indexOf('type');
|
|
7006
7050
|
this.edgeNameOffset = meta.edge_fields.indexOf('name_or_index');
|
|
@@ -7280,6 +7324,43 @@ class HeapSnapshot {
|
|
|
7280
7324
|
const key = filter ? filter.key : 'allObjects';
|
|
7281
7325
|
return this.getAggregatesByClassKey(false, key, filter);
|
|
7282
7326
|
}
|
|
7327
|
+
getDuplicateStrings() {
|
|
7328
|
+
const filter = this.createNamedFilter('duplicatedStrings');
|
|
7329
|
+
const groupsMap = new Map();
|
|
7330
|
+
const node = this.createNode(0);
|
|
7331
|
+
for (let i = 0; i < this.nodeCount; ++i) {
|
|
7332
|
+
node.nodeIndex = i * this.nodeFieldCount;
|
|
7333
|
+
if (filter(node)) {
|
|
7334
|
+
const name = node.name();
|
|
7335
|
+
const truncated = node.nodeIsTruncatedString();
|
|
7336
|
+
let group = groupsMap.get(name);
|
|
7337
|
+
if (!group) {
|
|
7338
|
+
group = {
|
|
7339
|
+
value: name,
|
|
7340
|
+
count: 0,
|
|
7341
|
+
totalSelfSize: 0,
|
|
7342
|
+
totalRetainedSize: 0,
|
|
7343
|
+
nodes: [],
|
|
7344
|
+
truncated,
|
|
7345
|
+
};
|
|
7346
|
+
groupsMap.set(name, group);
|
|
7347
|
+
}
|
|
7348
|
+
else if (truncated) {
|
|
7349
|
+
group.truncated = true;
|
|
7350
|
+
}
|
|
7351
|
+
group.count++;
|
|
7352
|
+
group.totalSelfSize += node.selfSize();
|
|
7353
|
+
group.totalRetainedSize += node.retainedSize();
|
|
7354
|
+
group.nodes.push({
|
|
7355
|
+
id: node.id(),
|
|
7356
|
+
selfSize: node.selfSize(),
|
|
7357
|
+
retainedSize: node.retainedSize(),
|
|
7358
|
+
distance: node.distance(),
|
|
7359
|
+
});
|
|
7360
|
+
}
|
|
7361
|
+
}
|
|
7362
|
+
return Array.from(groupsMap.values()).sort((a, b) => b.totalRetainedSize - a.totalRetainedSize);
|
|
7363
|
+
}
|
|
7283
7364
|
createNodeIdFilter(minNodeId, maxNodeId) {
|
|
7284
7365
|
function nodeIdFilter(node) {
|
|
7285
7366
|
const id = node.id();
|