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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 2893863002: Disable recoding purge-and-suspend memory growth temporarily (Closed)
Patch Set: Created 3 years, 7 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
« 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/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 1f51af05768cec3ce702e55f26f648b462ed9ede..b3634808ed046646f90338d356974d5bf8985815 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -1677,24 +1677,6 @@ void RenderThreadImpl::OnProcessPurgeAndSuspend() {
return;
purge_and_suspend_memory_metrics_ = memory_metrics;
- // record how many memory usage increases after purged.
- // Since RenderThreadImpl is kept alive while its render process is alive,
- // it is possible to use base::Unretained(this) here.
- GetRendererScheduler()->DefaultTaskRunner()->PostDelayedTask(
- FROM_HERE,
- base::Bind(&RenderThreadImpl::RecordPurgeAndSuspendMemoryGrowthMetrics,
- base::Unretained(this), "30min", process_foregrounded_count_),
- base::TimeDelta::FromMinutes(30));
- GetRendererScheduler()->DefaultTaskRunner()->PostDelayedTask(
- FROM_HERE,
- base::Bind(&RenderThreadImpl::RecordPurgeAndSuspendMemoryGrowthMetrics,
- base::Unretained(this), "60min", process_foregrounded_count_),
- base::TimeDelta::FromMinutes(60));
- GetRendererScheduler()->DefaultTaskRunner()->PostDelayedTask(
- FROM_HERE,
- base::Bind(&RenderThreadImpl::RecordPurgeAndSuspendMemoryGrowthMetrics,
- base::Unretained(this), "90min", process_foregrounded_count_),
- base::TimeDelta::FromMinutes(90));
}
// TODO(tasak): Replace the following GetMallocUsage() with memory-infra
« 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