forked from facebookincubator/velox
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add reserve and release counter in SharedArbitrator::Stats (facebooki…
…ncubator#7530) Summary: MemoryManager calls `SharedArbitrator::reserveMemory` each time a root memory pool is created by its API `addRootPool`, and calls `SharedArbitrator::releaseMemory` through a callback method in the destructor of the `MemoryPoolImpl` when destructing a memory pool. This PR adds two counters and for `SharedArbitrator::reserveMemory` and `SharedArbitrator::releaseMemory` to count their call counts, which should be the same, at the end of the `MemoryManager` life cycle. Pull Request resolved: facebookincubator#7530 Reviewed By: tanjialiang Differential Revision: D51242751 Pulled By: xiaoxmeng fbshipit-source-id: 5de0274b42b0264bedf0b19a5e81fc7fb1c2a85a
- Loading branch information
1 parent
45fd3b4
commit e39c667
Showing
8 changed files
with
306 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.