Closed Bug 1478393 Opened 6 years ago Closed 6 years ago

Add AutoGeckoProfilerEntry to js parsing in BytecodeCompiler::compileScript

Categories

(Core :: Gecko Profiler, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: canova, Assigned: canova)

References

Details

Attachments

(2 files)

No description provided.
Priority: -- → P1
Attachment #8994875 - Flags: review?(mstange) → review?(sphink)
Comment on attachment 8994875 [details] Bug 1478393 - Add AutoGeckoProfilerEntry to parsing of script in BytecodeCompiler::compileScript https://reviewboard.mozilla.org/r/259408/#review267596 ::: js/src/frontend/BytecodeCompiler.cpp:335 (Diff revision 1) > return nullptr; > > for (;;) { > ParseNode* pn; > + { > + AutoGeckoProfilerEntry pseudoFrame(cx, "BytecodeCompiler::CompileScript::parse"); I know we have some existing examples that do this, but I would really really prefer the label here to *not* look like a C++ function name. "script parsing", maybe? ::: js/src/frontend/BytecodeCompiler.cpp:342 (Diff revision 1) > - pn = parser->evalBody(sc->asEvalContext()); > + pn = parser->evalBody(sc->asEvalContext()); > - else > + else > - pn = parser->globalBody(sc->asGlobalContext()); > + pn = parser->globalBody(sc->asGlobalContext()); > + } > > // Successfully parsed. Emit the script. As long as you're here, can you add another pseudo frame "script emit"? You shouldn't need another scope, you can just let it go from here to the end of the for (;;) body.
Attachment #8994875 - Flags: review?(sphink)
Thanks for the feedback sfink! Edited the string and added a new frame for "script emit". Could you look at it again?
Comment on attachment 8994875 [details] Bug 1478393 - Add AutoGeckoProfilerEntry to parsing of script in BytecodeCompiler::compileScript https://reviewboard.mozilla.org/r/259408/#review267774
Attachment #8994875 - Flags: review?(sphink) → review+
Comment on attachment 8996650 [details] Bug 1478393 - Add AutoGeckoProfilerEntry to emitting of script in BytecodeCompiler::compileScript https://reviewboard.mozilla.org/r/260744/#review267778 Perfect, thanks!
Attachment #8996650 - Flags: review?(sphink) → review+
Pushed by canaltinova@gmail.com: https://hg.mozilla.org/integration/autoland/rev/c36fc94df388 Add AutoGeckoProfilerEntry to parsing of script in BytecodeCompiler::compileScript r=sfink https://hg.mozilla.org/integration/autoland/rev/75ef4a9cbc00 Add AutoGeckoProfilerEntry to emitting of script in BytecodeCompiler::compileScript r=sfink
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: