From 5a523fef68c55b66c542fd12ba877195d9b57c1c Mon Sep 17 00:00:00 2001 From: Herb Derby Date: Thu, 26 Jan 2017 16:48:28 -0500 Subject: [PATCH] Keep valgrind happen by purging caches. Change-Id: Ic387edb9b5d71110c10c8a40a362ed2853d140f5 Reviewed-on: https://skia-review.googlesource.com/7638 Reviewed-by: Ben Wagner Commit-Queue: Herb Derby --- bench/nanobench.cpp | 2 ++ dm/DM.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp index 4a058be..6aea7b5 100644 --- a/bench/nanobench.cpp +++ b/bench/nanobench.cpp @@ -1364,6 +1364,8 @@ int nanobench_main() { } } + SkGraphics::PurgeAllCaches(); + log->bench("memory_usage", 0,0); log->config("meta"); log->metric("max_rss_mb", sk_tools::getMaxResidentSetSizeMB()); diff --git a/dm/DM.cpp b/dm/DM.cpp index 26883b1..7159f19 100644 --- a/dm/DM.cpp +++ b/dm/DM.cpp @@ -1382,6 +1382,7 @@ int dm_main() { #endif // SK_PDF_IMAGE_STATS print_status(); + SkGraphics::PurgeAllCaches(); info("Finished!\n"); return 0; } -- 2.7.4