Pretenure count should be available in gecko profiler.

RESOLVED FIXED in Firefox 65

Status

()

enhancement
P3
normal
RESOLVED FIXED
8 months ago
8 months ago

People

(Reporter: pbone, Assigned: pbone)

Tracking

(Blocks 1 bug)

unspecified
mozilla65
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox65 fixed)

Details

Attachments

(3 attachments)

A pretenure count is calculated in Nursery::collect, it should be made available in the gecko profiler.
Assignee: nobody → pbone
Status: NEW → ASSIGNED
Priority: -- → P3
I want to add a new type of value to Statisticx, which is similar to
Stat but not the same.  This change renames the existing type to Count
(since it's used for counters) and the new one shall be Stat.
Attachment #9025558 - Flags: review?(jcoppeard)
Hi Steve, it is useful to commit this?  Are these nursery-strings related stats likely to change meaning in the future or are they fairly stable?
Attachment #9025560 - Flags: feedback?(sphink)
Comment on attachment 9025558 [details] [diff] [review]
Bug 1507379 - Rename gcstats::Stat to gcstats::Count

Review of attachment 9025558 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks, this name makes more sense.
Attachment #9025558 - Flags: review?(jcoppeard) → review+
Comment on attachment 9025559 [details] [diff] [review]
Bug 1507379 - Add an object groups pretenured field to GCMinor profiling data

Review of attachment 9025559 [details] [diff] [review]:
-----------------------------------------------------------------

::: js/src/gc/Statistics.h
@@ +31,4 @@
>  
>  #include "gc/StatsPhasesGenerated.h"
>  
> +// Counts can be incremented with Statistics::count(), they're reset at the end

nit: comma splice.  There should be a full stop before "they're".

@@ +48,4 @@
>      COUNT_LIMIT
>  };
>  
> +// Stats can be set with Statistics::setStat(), they're not reset automatically.

Ditto above.
Attachment #9025559 - Flags: review?(jcoppeard) → review+
(In reply to Jon Coppeard (:jonco) from comment #5)
> Comment on attachment 9025559 [details] [diff] [review]
> Bug 1507379 - Add an object groups pretenured field to GCMinor profiling data
> 
> Review of attachment 9025559 [details] [diff] [review]:
> -----------------------------------------------------------------
> 

Thanks.
Pushed by pbone@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/46cc3fa6e65e
Rename gcstats::Stat to gcstats::Count r=jonco
https://hg.mozilla.org/integration/mozilla-inbound/rev/5ab6d3eabd82
Add an object groups pretenured field to GCMinor profiling data r=jonco
Here's the PR for the perf.html part: https://github.com/devtools-html/perf.html/pull/1512
Comment on attachment 9025560 [details] [diff] [review]
Bug 1507379 - Make some nursery string values available in the profiler

Review of attachment 9025560 [details] [diff] [review]:
-----------------------------------------------------------------

Both of these seem useful, and (I think) stable. Thanks!
Attachment #9025560 - Flags: review+
Attachment #9025560 - Flags: feedback?(sphink)
Attachment #9025560 - Flags: feedback+
Pushed by pbone@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/47750e022e23
Make some nursery string values available in the profiler r=sfink
https://hg.mozilla.org/mozilla-central/rev/47750e022e23
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
You need to log in before you can comment on or make changes to this bug.