Add option to filter out prototype objects with count ~1

NEW
Unassigned

Status

()

Firefox
Developer Tools: Memory
P3
normal
2 years ago
2 years ago

People

(Reporter: fitzgen, Unassigned)

Tracking

(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

Requested on twitter here: https://twitter.com/zackster/status/671476332413386752

> @zackster:
> 
> @FirefoxDevTools why are default prototype objects with a count of one
> visible? it's kinda redundant noise for web developers

----------

We could optionally filter out anything with a "Prototype" suffix and count of 1, but if there are iframes you get counts of 2 or 3 or more generally numberOfIframes + 1.

I guess we could have an option to just filter out all object prototypes.

We also have vague plans about enriching the filter language, so we could make a filter string of "-(Prototype AND count < 1)" do the Right Thing(tm) but I think that is a little too much manual work than this request wants and is a bit more niche.

----------------------

Aside: I would definitely want to keep this as an *option* not the default and unchangeable behavior because if these prototypes weren't there then I personally would be confused like "where are all these things that I can verify exist in the console???"
Has STR: --- → irrelevant

Comment 1

2 years ago
that's exactly what I meant, a few more examples

HTMLLinkElementPrototype
TextEncoderPrototype
HistoryPrototype
HTMLDivElementPrototype
DOMImplementationPrototype
DOMSettableTokenListPrototype
HTMLUListElementPrototype
CSSStyleDeclarationPrototype
HTMLFormElementPrototype
Uint16ArrayPrototype

being able to sort the columns would also help
Blocks: 1221506
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.