Closed Bug 587805 Opened 16 years ago Closed 16 years ago

TM: Clean GCMeter

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: gwagner, Assigned: gwagner)

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file, 1 obsolete file)

There are members in JSGCStats that are never used.
Assignee: general → anygregor
Attached patch patch (obsolete) — — Splinter Review
Attachment #466436 - Flags: review?(igor)
Or maybe we should discuss what we still want and add the functionality again.
Metering that's not enabled in DEBUG builds just bitrots. We are trying to keep useful instrumentation around, unrotted, by making it #ifdef DEBUG but enabling the costly parts depend on an envariable naming a file, to which to write logs or stats or dumps, being set. Search for getenv calls. /be
GCMETER is defined in a debug build. Everything compiles fine. The problem is that we no longer record the data.
Comment on attachment 466436 [details] [diff] [review] patch >- METER_UPDATE_MAX(rt->gcStats.maxnchunks, rt->gcStats.nchunks); ... >- METER_UPDATE_MAX(rt->gcStats.maxnallarenas, rt->gcStats.nallarenas); What is the reason for the removal of these two counters? They are definitely used and updated.
(In reply to comment #5) > Comment on attachment 466436 [details] [diff] [review] > patch > > >- METER_UPDATE_MAX(rt->gcStats.maxnchunks, rt->gcStats.nchunks); > ... > >- METER_UPDATE_MAX(rt->gcStats.maxnallarenas, rt->gcStats.nallarenas); > > What is the reason for the removal of these two counters? They are definitely > used and updated. Yes they are updated but where are they used?
(In reply to comment #6) > > >- METER_UPDATE_MAX(rt->gcStats.maxnchunks, rt->gcStats.nchunks); > > >- METER_UPDATE_MAX(rt->gcStats.maxnallarenas, rt->gcStats.nallarenas); > > > > What is the reason for the removal of these two counters? They are definitely > > used and updated. > > Yes they are updated but where are they used? Right, but this is a simple oversight (on my side!) not to include the counters in the stats printouts. So r+ with adding the counters to the printouts.
Attached patch patch — — Splinter Review
Attachment #466436 - Attachment is obsolete: true
Attachment #466676 - Flags: review?(igor)
Attachment #466436 - Flags: review?(igor)
Attachment #466676 - Flags: review?(igor) → review+
Whiteboard: fixed-in-tracemonkey
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: