Closed
Bug 748444
Opened 12 years ago
Closed 12 years ago
eliminate relocations required by gHistograms
Categories
(Toolkit :: Telemetry, defect)
Toolkit
Telemetry
Tracking
()
RESOLVED
FIXED
mozilla18
People
(Reporter: froydnj, Assigned: froydnj)
References
Details
Attachments
(1 file)
6.77 KB,
patch
|
taras.mozilla
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•12 years ago
|
||
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.
Comment 2•12 years ago
|
||
Comment on attachment 656475 [details] [diff] [review] patch rubberstamp
Attachment #656475 -
Flags: review?(taras.mozilla) → review+
Comment 3•12 years ago
|
||
What are the footprint wins here?
Assignee | ||
Comment 4•12 years ago
|
||
(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.
Assignee | ||
Comment 5•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/a8b7d2524e94
Comment 6•12 years ago
|
||
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.
Description
•