Closed
Bug 1246644
Opened 9 years ago
Closed 9 years ago
Document childPayloads in the main ping
Categories
(Toolkit :: Telemetry, defect, P2)
Toolkit
Telemetry
Tracking
()
RESOLVED
FIXED
mozilla47
Tracking | Status | |
---|---|---|
firefox47 | --- | fixed |
People
(Reporter: Dexter, Assigned: Dexter)
References
Details
(Whiteboard: [measurement:client])
Attachments
(1 file, 1 obsolete file)
2.53 KB,
patch
|
Dexter
:
review+
|
Details | Diff | Splinter Review |
(In reply to Georg Fritzsche [:gfritzsche] from bug 1244182 comment #3)
> I'd like to see more documentation on how childPayloads are collected etc. - maybe
> chutten can document this in a follow-up bug.
Assignee | ||
Comment 1•9 years ago
|
||
Chris, would you mind adding some details about the childPayloads? Thanks!
Blocks: 1216191
Points: --- → 1
Flags: needinfo?(chutten)
Priority: -- → P3
Whiteboard: [measurements:client]
Comment 2•9 years ago
|
||
Any histogram whose Accumulate call happens on a child process will be accumulated into a childPayload's histogram, not the parent's. As such, some histograms in childPayloads will contain different data (GC_MS will be much different in childPayloads, for instance, because the child GC needs to content with content scripts and parent doesn't) and some histograms will be absent (EVENTLOOP_UI_ACTIVITY is parent-process-only because it measures inter-event timings where the OS delivers the events in the parent).
...is that the sort of information you're after?
Flags: needinfo?(chutten)
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(gfritzsche)
Comment 3•9 years ago
|
||
(In reply to Chris H-C :chutten from comment #2)
> Any histogram whose Accumulate call happens on a child process will be
> accumulated into a childPayload's histogram, not the parent's. As such, some
> histograms in childPayloads will contain different data (GC_MS will be much
> different in childPayloads, for instance, because the child GC needs to
> content with content scripts and parent doesn't) and some histograms will be
> absent (EVENTLOOP_UI_ACTIVITY is parent-process-only because it measures
> inter-event timings where the OS delivers the events in the parent).
>
> ...is that the sort of information you're after?
This is really useful to add. I would also love to see a basic summary of how/when we currently collect child payloads and what childPayload data we'd expect in what subsession.
Is this something you can summarize Chris? I haven't closely followed the recent child payload collection patches.
Flags: needinfo?(gfritzsche) → needinfo?(chutten)
Comment 4•9 years ago
|
||
That is unfortunately something I do not know (I think it was finalized just before I was hired).
Luckily, I'm a curious sort of person, so simply by you asking me about it you have mind-controlled me into wanting to know the answer :S
According to TelemetrySession.jsm, child telemetry payloads are recorded on child process shutdown (event "content-child-shutdown" observed) and whenever someone calls `TelemetrySession.requestChildPayloads()` (which is never, outside of tests).
So "when a child process terminates" appears to be the answer to "When?". About "How?" I'm not sure what you mean. As I stated above, anything that has an Accumulate call on the child process (so, in PresShell or below, not in hardly any chrome js, probably not plugin/addon stuff) will be in a histogram on the child payload. That's all there is to it, as far as I know.
Flags: needinfo?(chutten)
Assignee | ||
Updated•9 years ago
|
Priority: P3 → P2
Updated•9 years ago
|
Whiteboard: [measurements:client] → [measurement:client]
Assignee | ||
Comment 5•9 years ago
|
||
Assignee: nobody → alessio.placitelli
Status: NEW → ASSIGNED
Attachment #8722423 -
Flags: review?(gfritzsche)
Comment 6•9 years ago
|
||
Comment on attachment 8722423 [details] [diff] [review]
bug1246644.patch
Review of attachment 8722423 [details] [diff] [review]:
-----------------------------------------------------------------
::: toolkit/components/telemetry/docs/main-ping.rst
@@ +84,5 @@
> If ``sessionLength`` is ``-1``, the monotonic clock is not working.
>
> childPayloads
> -------------
> +The Telemetry payloads sent by child processes, recorded on child process shutdown (event ``content-child-shutdown`` observed) and whenever ``TelemetrySession.requestChildPayloads()`` is called (only inside the tests). They are reduced session payloads, only available with e10s. Among some other things, they don't report addon details, addon histograms or UI Telemetry.
Nit: "(currently only used in tests)"
@@ +86,5 @@
> childPayloads
> -------------
> +The Telemetry payloads sent by child processes, recorded on child process shutdown (event ``content-child-shutdown`` observed) and whenever ``TelemetrySession.requestChildPayloads()`` is called (only inside the tests). They are reduced session payloads, only available with e10s. Among some other things, they don't report addon details, addon histograms or UI Telemetry.
> +
> +Any histogram whose Accumulate call happens on a child process will be accumulated into a childPayload's histogram, not the parent's. As such, some histograms in childPayloads will contain different data (e.g. ``GC_MS`` will be much different in childPayloads, for instance, because the child GC needs to content with content scripts and parent doesn't) and some histograms will be absent (``EVENTLOOP_UI_ACTIVITY`` is parent-process-only because it measures inter-event timings where the OS delivers the events in the parent).
Let's add:
"Note: Child payloads are not collected and cleared with subsession splits, they are currently only meaningful when analysed from "saved-session" or "main" pings with "reason" set to "shutdown".
Attachment #8722423 -
Flags: review?(gfritzsche) → review+
Assignee | ||
Comment 7•9 years ago
|
||
Attachment #8722423 -
Attachment is obsolete: true
Attachment #8722496 -
Flags: review+
Assignee | ||
Comment 8•9 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/e6af92fd715fd6977112af762024abe90519d01f
Bug 1246644 - Document childPayloads in the main ping. r=gfritzsche
Comment 9•9 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in
before you can comment on or make changes to this bug.
Description
•