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

Unified Diff: runtime/vm/thread_registry.cc

Issue 2656723002: Moved isolate high watermark calculations into the Observatory client. (Closed)
Patch Set: Removed extra debug code and updated watermark calculation in client Created 3 years, 11 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: runtime/vm/thread_registry.cc
diff --git a/runtime/vm/thread_registry.cc b/runtime/vm/thread_registry.cc
index 828d53f7b945f4fc056ad8f088f579d61537cc2e..32d48a4c0b553f2103e710b0d55925d8fddc6094 100644
--- a/runtime/vm/thread_registry.cc
+++ b/runtime/vm/thread_registry.cc
@@ -195,16 +195,4 @@ void ThreadRegistry::ReturnToFreelistLocked(Thread* thread) {
free_list_ = thread;
}
-
-uintptr_t ThreadRegistry::ThreadHighWatermarksTotalLocked() const {
- ASSERT(threads_lock()->IsOwnedByCurrentThread());
- uintptr_t memory_high_watermarks_total = 0;
- Thread* current = active_list_;
- while (current != NULL) {
- memory_high_watermarks_total += current->memory_high_watermark();
- current = current->next_;
- }
- return memory_high_watermarks_total;
-}
-
} // namespace dart

Powered by Google App Engine
This is Rietveld 408576698