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

Unified Diff: base/memory/discardable_shared_memory.h

Issue 1407483003: Reland of [tracing] Display the locked size of discardable memory segment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix. Created 5 years, 2 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: base/memory/discardable_shared_memory.h
diff --git a/base/memory/discardable_shared_memory.h b/base/memory/discardable_shared_memory.h
index 74bbe8e95f427ba347d696e6c6e9c408e166e167..5dca884ca82e2d6665930905c92e990b8a5515c2 100644
--- a/base/memory/discardable_shared_memory.h
+++ b/base/memory/discardable_shared_memory.h
@@ -107,6 +107,9 @@ class BASE_EXPORT DiscardableSharedMemory {
// Returns true if memory is still resident.
bool IsMemoryResident() const;
+ // Returns true if memory is locked.
+ bool IsMemoryLocked() const;
+
// Closes the open discardable memory segment.
// It is safe to call Close repeatedly.
void Close();
« no previous file with comments | « no previous file | base/memory/discardable_shared_memory.cc » ('j') | content/common/discardable_shared_memory_heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698