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)
Core
Gecko Profiler
Tracking
()
RESOLVED
FIXED
mozilla63
Tracking | Status | |
---|---|---|
firefox63 | --- | fixed |
People
(Reporter: canova, Assigned: canova)
References
Details
Attachments
(2 files)
No description provided.
Comment hidden (mozreview-request) |
Assignee | ||
Comment 2•6 years ago
|
||
The new frame can be seen here: https://perfht.ml/2LjKBLz
Updated•6 years ago
|
Priority: -- → P1
Updated•6 years ago
|
Attachment #8994875 -
Flags: review?(mstange) → review?(sphink)
Comment 3•6 years ago
|
||
mozreview-review |
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)
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 6•6 years ago
|
||
Thanks for the feedback sfink! Edited the string and added a new frame for "script emit". Could you look at it again?
Comment 7•6 years ago
|
||
mozreview-review |
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 8•6 years ago
|
||
mozreview-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
Comment 10•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/c36fc94df388
https://hg.mozilla.org/mozilla-central/rev/75ef4a9cbc00
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in
before you can comment on or make changes to this bug.
Description
•