Closed Bug 1281795 Opened 8 years ago Closed 8 years ago

Add content processs histograms to the main ping payload

Categories

(Toolkit :: Telemetry, defect, P3)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1218576
Tracking Status
firefox50 --- affected

People

(Reporter: gfritzsche, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [measurement:client])

With bug 1218576 in place, we need to put the histogram data from the child processes in the "main" ping payload.
Chris raised the point that we probably have more child processes coming up (compositor per bug 1264543, possibly sandboxed addons, etc.), so that we should probably use a map structure to accommodate that. E.g. one possible format: > "payload": { > ... > "childHistograms": { > "content": { > ... histograms > }, > "compositor: { > ... histograms > }, > }, > "childKeyedHistograms": { > ... similar > }, > "childScalars": { // coming later, not now. > ... Alernatively: > "payload": { > ... > "childData": { > "histograms": { > "content": { > ... > }, > ... > }, > "keyedHistograms": { > ... > }, > "scalars": { // Later, not now. > ... I'd love to have the "main"/"parent" process histograms in there too, but i think that is not feasible due to the pipeline and analysis code depending on payload.histograms/keyedHistograms.
Opinions on comment 1?
Flags: needinfo?(rvitillo)
Flags: needinfo?(mreid)
Flags: needinfo?(chutten)
I'd like to suggest a third possibility: > "payload": { > ... > "processes": { > "content": { > "histograms": {...}, > "keyedHistograms": {...}, > "scalars": {...} > }, > "compositor": { > "histograms": {...}, > "keyedHistograms": {...}, > "scalars": {...} > }, > ... eventually, "parent" too? ..., > ... > } > ... > } This has a couple of main advantages. Each section has the same structure, so ideally the processing code can be simple/reusable. Also, it allows for the possibility to move standard "parent" measurements into the same structure in the future if we decide it's worthwhile (it doesn't assume "child" for things). If we wanted to introduce the "parent" section right away, we could even put scalars there for starters.
Flags: needinfo?(mreid)
I second mreid's suggestion. It's a little bit nested, but it's the clearest in intent. I wonder if special processes will need special structures beyond the shared hgrams/keyed/scalars triumvirate (threadHangs? slowSQL?)
Flags: needinfo?(chutten)
+1 on Mark's proposal.
Flags: needinfo?(rvitillo)
Great, lets go with this then. We should definitely start off with scalars in "parent" right away (per bug 1282091).
The new format approach also opens up possibilities for other use-cases: E.g. for GoFaster / system addons / etc. we could add additional sections that have the same format but possibly different handling/semantics server-side.
Blocks: 1277504
Summary: Add content histograms to the main ping payload → Add content processs histograms to the main ping payload
This is happening as part of bug 1218576 now.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.