gecko-dev/devtools/shared/test-helpers
Alexandre Poirot 5cae64e6d5 Bug 1539518 - [devtools] Log allocations sites of object being created during the test and not being freed. r=jdescottes
This new method allows to do some kind of diff between two allocation sites records.
It will ignore/substract the allocation sites from the first record when processing the second.

As this can sometime return only allocations without stacks,
the old view, showing all the allocations is still helpful.

Also both views can't work at the same time.
So, DEVTOOLS_DEBUG_ALLOCATIONS env variable is used to enable one of the two views.
DEVTOOLS_DEBUG_ALLOCATIONS=allocations will display all the allocation log (which may display allocations which have been freed)
DEVTOOLS_DEBUG_ALLOCATIONS=leaks will display only the allocation which are still allocated at the end of the test. So it should only display leaks.

Differential Revision: https://phabricator.services.mozilla.com/D123833
2021-09-07 14:19:48 +00:00
..
.eslintrc.js
allocation-tracker.js Bug 1539518 - [devtools] Log allocations sites of object being created during the test and not being freed. r=jdescottes 2021-09-07 14:19:48 +00:00
browser.ini
browser_allocation_tracker.js Bug 1727571 - [devtools] Record allocations for toolbox opening+closing and page reloads. r=jdescottes 2021-09-02 11:36:03 +00:00