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

Unified Diff: content/child/child_thread_impl_browsertest.cc

Issue 2541573002: Count discardable memory in browsertest
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/child_thread_impl_browsertest.cc
diff --git a/content/child/child_thread_impl_browsertest.cc b/content/child/child_thread_impl_browsertest.cc
index ab21ddd453db3b28c0b4f633d8fea71ae7c32a29..7b504f92dec21e06aa9bf08cea8685043903394e 100644
--- a/content/child/child_thread_impl_browsertest.cc
+++ b/content/child/child_thread_impl_browsertest.cc
@@ -94,6 +94,17 @@ IN_PROC_BROWSER_TEST_F(ChildThreadImplBrowserTest,
ASSERT_NE(nullptr, addr);
memory->Unlock();
instances.push_back(std::move(memory));
+
+ if (i % 10 == 0) {
+ size_t s = 0;
+ for (auto& m : instances) {
+ if (m->Lock()) {
+ s += kLargeSize;
+ m->Unlock();
+ }
+ }
+ fprintf(stderr, "EEE s=%luMB\n", s / 1024/1024);
+ }
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698