Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(heap-analysis) React component hook memory analysis
Summary: This is the first iteration of a prototypical heap analysis for React components and hooks. The idea and outline of this analysis comes from the awesome tech talk by Giulio Zausa in React Berlin Day 2023. For more technical details about how the analysis works, please check out the talk here: https://portal.gitnation.org/contents/how-much-ram-is-your-usememo-using-lets-profile-it To use this analysis, first take heap snapshot in Chrome DevTool and save the heap snapshot to disk (a `.heapsnapshot` file). Then use the following command to get memory stats of React components and hooks: ``` memlab analyze react-hooks --snapshot <path-to-snapshot-file> ``` This command also works for heap snapshots generated from MemLab run. Differential Revision: D52858977 fbshipit-source-id: c4f1e072f5e770ea587e0b438a91e9a647307940
- Loading branch information