Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Enhancement] Opt memory tracker for FE (#53055)
## Why I'm doing: `SizeEstimator.estimate` will calculate the retained size of the object, that is the size of the param object and all the referenced objects. This will lead to repeated counting when the same object is referenced by many objects, and result in very high resource usage when the param object refers to network object or GlobalMetaStore. ## What I'm doing: Change to `ClassLayout` to only calculate the shadow size of the object. Signed-off-by: gengjun-git <[email protected]> (cherry picked from commit 4f60313)
- Loading branch information