Closed Bug 1308220 Opened 8 years ago Closed 8 years ago

TraceLogger: report calls

Categories

(Core :: JavaScript Engine: JIT, defect, P5)

defect

Tracking

()

RESOLVED FIXED
mozilla52
Tracking Status
firefox52 --- fixed

People

(Reporter: h4writer, Assigned: h4writer, NeedInfo)

References

Details

Attachments

(1 file)

We have VM calls and also VMSpecific, but nothing similar for Calls. This bug is specific for calls to C++ code, since if we go to C++ code out of IonMonkey we want to know that!
Assignee: nobody → hv1989
Attachment #8798434 - Flags: review?(bbouvier)
Todo: Add TraceLogger_CallSpecific
Flags: needinfo?(hv1989)
Priority: -- → P5
Comment on attachment 8798434 [details] [diff] [review]
Add TraceLogger_Call

Review of attachment 8798434 [details] [diff] [review]:
-----------------------------------------------------------------

Moar tracelogger!

::: js/src/jit/CodeGenerator.cpp
@@ +3753,5 @@
>      // Move the StackPointer back to its original location, unwinding the native exit frame.
>      masm.adjustStack(NativeExitFrameLayout::Size() - unusedStack);
>      MOZ_ASSERT(masm.framePushed() == initialStack);
> +
> +    emitTracelogStopEvent(TraceLogger_Call);

Either this needs to be moved just before the branchIfFalseBool, or you need to duplicate it on the failure label path, right?

::: js/src/vm/TraceLoggingTypes.h
@@ +37,5 @@
>      _(Scripts)                                        \
>      _(VM)                                             \
>      _(CompressSource)                                 \
>      _(WasmCompilation)                                \
> +    _(Call)                                           \

Should this be enabled by default?
Attachment #8798434 - Flags: review?(bbouvier) → review+
Pushed by hv1989@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/c4bd4302355b
TraceLogger: generally report non-jit calls in ionmonkey, r=bbouvier
https://hg.mozilla.org/mozilla-central/rev/c4bd4302355b
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
Depends on: 1326528
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: