Closed
Bug 587805
Opened 16 years ago
Closed 16 years ago
TM: Clean GCMeter
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: gwagner, Assigned: gwagner)
Details
(Whiteboard: fixed-in-tracemonkey)
Attachments
(1 file, 1 obsolete file)
|
5.73 KB,
patch
|
igor
:
review+
|
Details | Diff | Splinter Review |
There are members in JSGCStats that are never used.
| Assignee | ||
Updated•16 years ago
|
Assignee: general → anygregor
| Assignee | ||
Comment 1•16 years ago
|
||
| Assignee | ||
Updated•16 years ago
|
Attachment #466436 -
Flags: review?(igor)
| Assignee | ||
Comment 2•16 years ago
|
||
Or maybe we should discuss what we still want and add the functionality again.
Comment 3•16 years ago
|
||
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
| Assignee | ||
Comment 4•16 years ago
|
||
GCMETER is defined in a debug build. Everything compiles fine. The problem is that we no longer record the data.
Comment 5•16 years ago
|
||
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.
| Assignee | ||
Comment 6•16 years ago
|
||
(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?
Comment 7•16 years ago
|
||
(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.
| Assignee | ||
Comment 8•16 years ago
|
||
Attachment #466436 -
Attachment is obsolete: true
Attachment #466676 -
Flags: review?(igor)
Attachment #466436 -
Flags: review?(igor)
Comment 9•16 years ago
|
||
Comment on attachment 466676 [details] [diff] [review]
patch
nice!
Attachment #466676 -
Flags: review?(igor) → review+
| Assignee | ||
Comment 10•16 years ago
|
||
| Assignee | ||
Updated•16 years ago
|
Whiteboard: fixed-in-tracemonkey
Comment 11•16 years ago
|
||
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.
Description
•