Closed Bug 1473497 Opened 7 years ago Closed 7 years ago

Add AutoProfilerLabel to places where we call JS from C++ through WebIDL

Categories

(Core :: Gecko Profiler, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: canova, Assigned: canova)

References

Details

Attachments

(1 file)

Adding to the binding codegen should add all the necessary label frames since we are generating a Call function for all bindings.
Summary: Add AutoProfilerLabel to where we call JS from C++ → Add AutoProfilerLabel to places where we call JS from C++
Summary: Add AutoProfilerLabel to places where we call JS from C++ → Add AutoProfilerLabel to places where we call JS from C++ through WebIDL
Attachment #8989981 - Flags: review?(mstange) → review?(bzbarsky)
Comment on attachment 8989981 [details] Bug 1473497 - Add AutoProfilerLabel to places where we call JS from C++ through WebIDL https://reviewboard.mozilla.org/r/255004/#review264514 I don't think we want to do this. The reason we don't want to do this is that these existing bits: if (!aExecutionReason) { aExecutionReason = "${executionReason}"; } CallSetup s(this, aRv, aExecutionReason, aExceptionHandling, aRealm); already pass an execution reason to CallSetup. And that reason is either the one this patch is adding or a string the caller passed as an override (presumably because it's better). What CallSetup does with the execution reason, amongst other things, is pass it to the AutoEntryScript constructor. So we already have a label here, from bug 1473303, with a string that is either identical to the one being added here or is strictly better.
Attachment #8989981 - Flags: review?(bzbarsky) → review-
> This is an example of the label frames I added Did that profile also include bug 1473303? Why didn't we end up with duplicate labels for the two AutoProfilerLabels on the stack?
I didn't include the patch in bug 1473303 while taking that profile. I just took another profile with that patch included: https://deploy-preview-1072--perf-html.netlify.com/public/631f65c405246edaeba7de73eceb94006368e2d0/calltree/?hiddenThreads=2-3&search=MessageListener.receiveMessage&thread=4&threadOrder=0-2-3-4-5-6-1&v=3 And it appears you're right. We are just duplicating the frames here. Closing the bug since we don't need this.
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: