Closed Bug 748444 Opened 12 years ago Closed 12 years ago

eliminate relocations required by gHistograms

Categories

(Toolkit :: Telemetry, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla18

People

(Reporter: froydnj, Assigned: froydnj)

References

Details

Attachments

(1 file)

bug 748417 is going to write a python script to parse TelemetryHistograms.h.  Once that's written, we should use the script to generate gHistograms at compile time; doing that will enable eliminating the pointers to names and descriptions (can simply use indices into a global char[] instead), reducing relocations and footprint.
Attached patch patchSplinter Review
I realize StringTable is a little overkill, but I copied the code directly from quickstubs, so I know it works, and if we start annotating histograms with units, we'll need something like StringTable anyway.  So I'd like to keep it around.
Assignee: nobody → nfroyd
Status: NEW → ASSIGNED
Attachment #656475 - Flags: review?(taras.mozilla)
Comment on attachment 656475 [details] [diff] [review]
patch

rubberstamp
Attachment #656475 - Flags: review?(taras.mozilla) → review+
What are the footprint wins here?
(In reply to Taras Glek (:taras) from comment #3)
> What are the footprint wins here?

N histograms * (2 relocations + 1 word).  More than 1k bytes, less than 10k bytes on x86/ARM Linux.  Might be the same range for x86-64/Linux.  I imagine it's roughly the same on Windows and OS X, but not really sure.
https://hg.mozilla.org/mozilla-central/rev/a8b7d2524e94
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: