Closed Bug 1921175 Opened 1 year ago Closed 1 year ago

Unused methods exist around value grips

Categories

(DevTools :: Debugger, task)

task

Tracking

(firefox133 fixed)

RESOLVED FIXED
133 Branch
Tracking Status
firefox133 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 1 open bug)

Details

Attachments

(8 files)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
No description provided.
Summary: A unused methods exist around value grips → Unused methods exist around value grips
Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED

This was only used in test and was involving the promote hooks method.

I kept the method on the front as many xpcshell test rely on this to simply
instantiate a front and it is tedious to create an object front via DevToolsClient.createObjectFront.

It sounds safer and easier to always check if the thread is paused
and _pausePool is defined to register the object actor in the right pool.

The actor objects usualy receive a connection as first argument
and thread attribute isn't used in hooks.

It's condition was the opposite of its meaning...
and it is only used within the class, so no need to expose it on hooks.

Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/985b7383feaa [devtools] Remove unused createEnvironmentActor method from ObjectActor hooks. r=devtools-reviewers,nchevobbe https://hg.mozilla.org/integration/autoland/rev/a95a3f0ebccd [devtools] Remove unused ObjectActor.threadGrip method. r=devtools-reviewers,nchevobbe https://hg.mozilla.org/integration/autoland/rev/0a821ddf28a1 [devtools] Remove unused pauseGrip and getProperties methods. r=devtools-reviewers,nchevobbe https://hg.mozilla.org/integration/autoland/rev/d8faa541e2ad [devtools] Use ThreadActor helper to create grip from the environment actor. r=devtools-reviewers,nchevobbe https://hg.mozilla.org/integration/autoland/rev/70bf92d8c197 [devtools] Create object grip from a unique method in the thread actor. r=devtools-reviewers,nchevobbe https://hg.mozilla.org/integration/autoland/rev/fe5f26df8632 [devtools] Revise ObjectActor arguments. r=devtools-reviewers,nchevobbe https://hg.mozilla.org/integration/autoland/rev/b52f4af8feeb [devtools] Rename ObjectActor.thread to threadActor. r=devtools-reviewers,nchevobbe https://hg.mozilla.org/integration/autoland/rev/bfa6b93cf1c5 [devtools] Fix PausedScopeObjectActor.isThreadLifetimePool. r=devtools-reviewers,nchevobbe

Perfherder has detected a devtools performance change from push 6d1113bb77a8bd300a5136c427d49bd55c64902f.

Improvements:

Ratio Test Platform Options Absolute values (old vs new)
7% damp console.log-in-loop-content-process-document windows11-64-shippable-qr e10s fission stylo webrender 83.85 -> 77.61
6% damp console.log-in-loop-content-process-document linux1804-64-shippable-qr e10s fission stylo webrender 270.49 -> 253.88
5% damp console.log-in-loop-content-process-document macosx1015-64-shippable-qr e10s fission stylo webrender 225.54 -> 214.32
3% damp console.log-in-loop-content-process-window windows11-64-shippable-qr e10s fission stylo webrender 248.68 -> 240.38

Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests.

If you need the profiling jobs you can trigger them yourself from treeherder job view or ask a sheriff to do that for you.

You can run these tests on try with ./mach try perf --alert 2329

For more information on performance sheriffing please see our FAQ.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: