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

Side by Side Diff: cc/resources/tile_manager.cc

Issue 362803002: Track UMA stats for running out of tile memory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Corrected histogram as per comments Created 6 years, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/resources/tile_manager.h" 5 #include "cc/resources/tile_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <string> 9 #include <string>
10 10
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 ever_exceeded_memory_budget_ |= oomed_hard; 868 ever_exceeded_memory_budget_ |= oomed_hard;
869 if (ever_exceeded_memory_budget_) { 869 if (ever_exceeded_memory_budget_) {
870 TRACE_COUNTER_ID2("cc", 870 TRACE_COUNTER_ID2("cc",
871 "over_memory_budget", 871 "over_memory_budget",
872 this, 872 this,
873 "budget", 873 "budget",
874 global_state_.hard_memory_limit_in_bytes, 874 global_state_.hard_memory_limit_in_bytes,
875 "over", 875 "over",
876 bytes_that_exceeded_memory_budget); 876 bytes_that_exceeded_memory_budget);
877 } 877 }
878 UMA_HISTOGRAM_BOOLEAN("TileManager.ExceededMemoryBudget", oomed_hard);
878 memory_stats_from_last_assign_.total_budget_in_bytes = 879 memory_stats_from_last_assign_.total_budget_in_bytes =
879 global_state_.hard_memory_limit_in_bytes; 880 global_state_.hard_memory_limit_in_bytes;
880 memory_stats_from_last_assign_.bytes_allocated = 881 memory_stats_from_last_assign_.bytes_allocated =
881 hard_bytes_allocatable - hard_bytes_left; 882 hard_bytes_allocatable - hard_bytes_left;
882 memory_stats_from_last_assign_.bytes_unreleasable = 883 memory_stats_from_last_assign_.bytes_unreleasable =
883 resource_pool_->acquired_memory_usage_bytes() - bytes_releasable_; 884 resource_pool_->acquired_memory_usage_bytes() - bytes_releasable_;
884 memory_stats_from_last_assign_.bytes_over = bytes_that_exceeded_memory_budget; 885 memory_stats_from_last_assign_.bytes_over = bytes_that_exceeded_memory_budget;
885 } 886 }
886 887
887 void TileManager::FreeResourceForTile(Tile* tile, RasterMode mode) { 888 void TileManager::FreeResourceForTile(Tile* tile, RasterMode mode) {
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
1576 TRACE_EVENT0("cc", "TileManager::CheckIfReadyToActivate"); 1577 TRACE_EVENT0("cc", "TileManager::CheckIfReadyToActivate");
1577 1578
1578 rasterizer_->CheckForCompletedTasks(); 1579 rasterizer_->CheckForCompletedTasks();
1579 did_check_for_completed_tasks_since_last_schedule_tasks_ = true; 1580 did_check_for_completed_tasks_since_last_schedule_tasks_ = true;
1580 1581
1581 if (IsReadyToActivate()) 1582 if (IsReadyToActivate())
1582 client_->NotifyReadyToActivate(); 1583 client_->NotifyReadyToActivate();
1583 } 1584 }
1584 1585
1585 } // namespace cc 1586 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698