Closed Bug 1498164 Opened 6 years ago Closed 6 years ago

Add parser support for multiple stores

Categories

(Toolkit :: Telemetry, enhancement, P1)

enhancement
Points:
2

Tracking

()

RESOLVED FIXED
mozilla65
Tracking Status
firefox65 --- fixed

People

(Reporter: janerik, Assigned: janerik)

References

Details

Attachments

(5 files)

All probes gain a new attribute `record_in_store`, defaulting to ['main'].
The parsers need to support that.

Code generation needs to generate the list of stores per probe.
Assignee: nobody → jrediger
Points: --- → 1
Priority: -- → P1
Points: 1 → 2
Previously the test succeeded, but not for the right reasons.
This generates new things:

* store_count and store_offset in the ScalarInfo struct.
  store_count indicates the number of stores the scalar is registered in.
  store_offset is an offset into the gScalarStoresTable array.
  If store_count == 1 && store_offset == UINT16_MAX, then the scalar is only in the main store.
* gScalarStoresMap: An array containing the offsets into gScalarsStringTable to get a store's name

Depends on D10920
This generates several new things:

* store_count and store_offset in the HistogramInfo struct.
  store_count indicates the number of stores the histogram is registered in.
  store_offset is an offset into the gHistogramStoresTable array.
  If store_count == 1 && store_offset == UINT16_MAX, then the histogram is only in the main store.
* gHistogramStoresTable: An array containing the actual offsets into gHistogramStringTable to get a store's name

Depends on D10921
Pushed by jrediger@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/29641f93f289
Fix scalar definition in parser test r=chutten
https://hg.mozilla.org/integration/autoland/rev/d94fdea046be
Use correct attribute to set release collection on dynamic scalar r=chutten
https://hg.mozilla.org/integration/autoland/rev/feba93f1cc21
Add support to parse `record_into_store` for scalars and histograms r=chutten
https://hg.mozilla.org/integration/autoland/rev/b7563042430d
Generate stores for scalars r=chutten
https://hg.mozilla.org/integration/autoland/rev/4407a6d3e374
Generate stores for histograms r=chutten
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: