Open Bug 1963832 Opened 7 months ago Updated 7 months ago

Experiment with Rooted Creation profiling when C++20

Categories

(Core :: JavaScript Engine, task, P5)

task

Tracking

()

People

(Reporter: mgaudet, Unassigned)

References

(Blocks 1 open bug)

Details

In theory, with C++20 under an ifdef we could change the definition of Rooted to take an std::source::location provided as a default parameter then, we could register each rooted with a hash table, counting often each rooted source location is constructed, producing a list of filename:lineno,count pairs which we could sort.

These could identify places where we ought to use RootedTuple or etc.

(We could potentially do this with macros today, but I don't think that would be landable whereas I think we could land the C++20 version)

Blocks: sm-runtime
Severity: -- → N/A
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.