Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: third_party/leveldatabase/env_chromium.h

Issue 2953473002: Use leveldb_env::OpenDB() to open leveldb databases. (Closed)
Patch Set: Use OpenDB in unittests; add allocation edges Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/leveldatabase/env_chromium.h
diff --git a/third_party/leveldatabase/env_chromium.h b/third_party/leveldatabase/env_chromium.h
index adc9c25275888f57a7eaeb8489eebe60de72107f..38c0cdb3f2435b62229c5b9cc3068b929a04d76c 100644
--- a/third_party/leveldatabase/env_chromium.h
+++ b/third_party/leveldatabase/env_chromium.h
@@ -242,6 +242,11 @@ class DBTracker {
// DBTracker singleton instance.
static DBTracker* GetInstance();
+ // Returns name of memory-infra dump for |db|. Can be used to attach
+ // additional info to the database dump, or to properly attribute memory
+ // usage in memory dump providers that also dump |db|.
+ static std::string GetMemoryDumpName(leveldb::DB* db);
+
// Provides extra information about a tracked database.
class TrackedDB : public leveldb::DB {
public:

Powered by Google App Engine
This is Rietveld 408576698