Closed
Bug 1270816
Opened 10 years ago
Closed 10 years ago
Various improvements to Tracelogger
Categories
(Core :: JavaScript Engine: JIT, defect)
Core
JavaScript Engine: JIT
Tracking
()
RESOLVED
FIXED
mozilla49
| Tracking | Status | |
|---|---|---|
| firefox49 | --- | fixed |
People
(Reporter: h4writer, Assigned: h4writer)
Details
Attachments
(1 file)
|
15.17 KB,
patch
|
bbouvier
:
review+
|
Details | Diff | Splinter Review |
During the use of Tracelogger this week I introduced some small changes that best should get into the tree.
- Various additions to log places. IonAnalysis, WasmCompilation, CompressSource, RestartLoop
- Mark the creation of Events as TL internal time
- For IonCompilation only report after releasing the helperthread lock. This was causing a false positive I chased for some time.
| Assignee | ||
Comment 1•10 years ago
|
||
Assignee: nobody → hv1989
Attachment #8749626 -
Flags: review?(bbouvier)
Comment 2•10 years ago
|
||
Comment on attachment 8749626 [details] [diff] [review]
Patch
Review of attachment 8749626 [details] [diff] [review]:
-----------------------------------------------------------------
Nice, thanks!
::: js/src/jit/IonBuilder.cpp
@@ +2463,5 @@
>
> IonBuilder::ControlStatus
> IonBuilder::restartLoop(const CFGState& state)
> {
> + TraceLoggerThread* logger = TraceLoggerForMainThread(compartment->runtime()->mainThread()->runtimeFromMainThread());
Even if it's used only once, perhaps you could make an helper mainThread() in IonBuilder, just below names()?
::: js/src/vm/HelperThreads.cpp
@@ +1369,5 @@
> {
> AutoUnlockHelperThreadState unlock;
> +
> + TraceLoggerThread* logger = TraceLoggerForCurrentThread();
> + AutoTraceLog logCompile(logger, TraceLogger_WasmCompilation);
If you want to be complete, you should add the same thing in wasm::ModuleGenerator::finishFuncDef, which takes care of the case where we can't off-thread compile things.
I've checked, this can't happen with source compression as we always need at least one helper thread. Can this happen with other markers? I guess that GC can't be done in parallel all the time and needs to happen in any cases, so maybe its execution time needs to be captured somewhere else too?
Attachment #8749626 -
Flags: review?(bbouvier) → review+
Comment 4•10 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox49:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in
before you can comment on or make changes to this bug.
Description
•