Skip to content

Commit

Permalink
add trace events to cache sweeps (flutter#29686)
Browse files Browse the repository at this point in the history
  • Loading branch information
flar authored Nov 11, 2021
1 parent aaacb67 commit ce849c1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions flow/raster_cache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,12 @@ void RasterCache::PrepareNewFrame() {
void RasterCache::CleanupAfterFrame() {
picture_metrics_ = {};
layer_metrics_ = {};
SweepOneCacheAfterFrame(picture_cache_, picture_metrics_);
SweepOneCacheAfterFrame(display_list_cache_, picture_metrics_);
SweepOneCacheAfterFrame(layer_cache_, layer_metrics_);
{
TRACE_EVENT0("flutter", "RasterCache::SweepCaches");
SweepOneCacheAfterFrame(picture_cache_, picture_metrics_);
SweepOneCacheAfterFrame(display_list_cache_, picture_metrics_);
SweepOneCacheAfterFrame(layer_cache_, layer_metrics_);
}
TraceStatsToTimeline();
}

Expand Down

0 comments on commit ce849c1

Please sign in to comment.