Closed Bug 924147 Opened 12 years ago Closed 12 years ago

Enable dark matter detector on engineering builds

Categories

(Firefox OS Graveyard :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: diego, Assigned: diego)

Details

Attachments

(1 file)

Attached file pr.htm
We have found this useful for debugging FxOS memory usage and would like to enable it by default on debug builds.
Attachment #814155 - Flags: review?(mwu)
Assignee: nobody → dwilson
Status: NEW → ASSIGNED
I updated the PR to enable on -eng builds only as per :m1's suggestion
Attachment #814155 - Flags: review?(mwu) → review?(fabrice)
What's the runtime impact of enabling that?
Flags: needinfo?(n.nethercote)
Non-trivial: a small amount of extra work on every allocation and deallocation, and a stack trace is obtained every once in a while. Debug builds are so much slower than opt builds that the slowdown caused by DMD may not matter, but you'd have to measure to be sure.
Flags: needinfo?(n.nethercote)
What about building DMD but not enabling?
> What about building DMD but not enabling? Less overhead, but still non-zero. But you're going to have to measure it to know for sure.
Fabrice, what do you suggest to move this forward? It's not clear to me what measurements (if any) would we need. If I can do this myself I can try it out.
Flags: needinfo?(fabrice)
(In reply to Diego Wilson [:diego] from comment #6) > Fabrice, what do you suggest to move this forward? It's not clear to me what > measurements (if any) would we need. If I can do this myself I can try it > out. My fear is that any performance testing done with dmd enabled will be badly biased. Since I think that all the perf automation runs with eng builds, I'd rather not enable that by default.
Flags: needinfo?(fabrice)
All this speculation about performance is entertaining but this bug won't move forward without measurements. Having said that, I think doing memory measurements in debug builds is a bad idea because they won't match the measurements in opt builds. The particular case I know of is that the entry storage of pldhash tables -- of which we have many -- is larger on debug builds than opt builds, up to twice as large, due to it storing extra verification info. And there might be other cases like this.
This bug's summary is a bit misleading - we're considering building dmd on engineering (gonk) builds, not debug (gecko) builds. Engineering builds normally build opt versions of gecko, not debug.
Summary: Enable dark matter detector on debug builds → Enable dark matter detector on engineering builds
This doesn't seem to be going anywhere. Oh well.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
Attachment #814155 - Flags: review?(fabrice)
If it would help, we can probably enable dmd on debug (mozilla debug, not userdebug) builds on tinderbox just to make sure they don't break.
> If it would help, we can probably enable dmd on debug (mozilla debug, not > userdebug) builds on tinderbox just to make sure they don't break. That's probably worthwhile!
(In reply to Michael Wu [:mwu] from comment #11) > If it would help, we can probably enable dmd on debug (mozilla debug, not > userdebug) builds on tinderbox just to make sure they don't break. That would definitely help. How do we go about doing that?
It requires modifying browser/config/mozconfigs/*/debug. Unfortunately, those builds all use --enable-trace-malloc, which is incompatible with --enable-dmd :( And I don't think this is important enough to be worth creating additional builds.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: