[leveldb] tracking memory used by in-memory Env's.
leveldb::InMemoryEnv is not exposed with no official support for
calculating memory usage. However, this is a pretty decent estimate
and will be helpful for tracking in-memory Env RAM use.
Bug: 750803
Change-Id: I4e07327bf4480bdb786290c82d8f66412868f36a
Reviewed-on: https://chromium-review.googlesource.com/601207
Reviewed-by: Kinuko Yasuda <[email protected]>
Reviewed-by: Jochen Eisinger <[email protected]>
Reviewed-by: Siddhartha S <[email protected]>
Cr-Commit-Position: refs/heads/master@{#552361}
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index a34c03e6..11a05962 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -402,7 +402,8 @@
'leveldb::NewMemEnv',
(
'Instead of leveldb::NewMemEnv() use leveldb_chrome::NewMemEnv() from',
- 'third_party/leveldatabase/leveldb_chrome.h.',
+ 'third_party/leveldatabase/leveldb_chrome.h. It exposes environments',
+ "to Chrome's tracing, making their memory usage visible.",
),
True,
(