Closed
Bug 1184578
Opened 9 years ago
Closed 9 years ago
Fix the nursery's profiling print
Categories
(Core :: JavaScript: GC, defect)
Core
JavaScript: GC
Tracking
()
RESOLVED
FIXED
mozilla42
Tracking | Status | |
---|---|---|
firefox42 | --- | fixed |
People
(Reporter: terrence, Assigned: terrence)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
(deleted),
patch
|
sfink
:
review+
|
Details | Diff | Splinter Review |
Turns out the first column has gotten out of sync with what we're actually printing. This was pushing everything off by one and causing me a tremendous amount of confusion when none of my breakpoints where getting hit. This redesign makes it obvious what belongs with what so that that won't happen again. I also re-munged the spacing so that everything lines up nicely now.
Attachment #8634744 -
Flags: review?(jcoppeard)
Assignee | ||
Comment 1•9 years ago
|
||
Comment on attachment 8634744 [details] [diff] [review]
fix_nursery_profiling_print-v0.diff
I forgot that Jon is on PTO this week.
Attachment #8634744 -
Flags: review?(jcoppeard) → review?(sphink)
Comment 2•9 years ago
|
||
Comment on attachment 8634744 [details] [diff] [review]
fix_nursery_profiling_print-v0.diff
Review of attachment 8634744 [details] [diff] [review]:
-----------------------------------------------------------------
Very nice! Using c++ iterators with auto and an inline-defined struct array with an initializer is really handy.
::: js/src/gc/Nursery.cpp
@@ +577,5 @@
> + {"logPtT", TIME_TOTAL(logPromotionsToTenured)}
> + };
> + static int printedHeader = 0;
> + if ((printedHeader++ % 200) == 0) {
> + fprintf(stderr, "MinorGC: Reason PRate Size Time");
This might be a little better as
fprintf(stderr, "MinorGC: %20s %6s %4s %6s", "Reason", "PRate", "Size", "Time");
to match it up with the later printout. (Though the chances that I have no off-by-ones is vanishingly small, so clearly it doesn't help all that much.)
Attachment #8634744 -
Flags: review?(sphink) → review+
Comment 4•9 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in
before you can comment on or make changes to this bug.
Description
•