Commit 7cf8f9aa authored by Khushal's avatar Khushal Committed by Commit Bot

cc: Add some tracing for navigation events in cc.

R=ericrk@chromium.org

Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel
Change-Id: I03fa2d870efcdd7f63122dd8c3d68826faeb4c0f
Reviewed-on: https://chromium-review.googlesource.com/879921Reviewed-by: default avatarEric Karl <ericrk@chromium.org>
Commit-Queue: Khushal <khushalsagar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#531770}
parent e33e8e62
...@@ -982,6 +982,8 @@ void CompositorTimingHistory::SetTreePriority(TreePriority priority) { ...@@ -982,6 +982,8 @@ void CompositorTimingHistory::SetTreePriority(TreePriority priority) {
} }
void CompositorTimingHistory::ClearHistoryOnNavigation() { void CompositorTimingHistory::ClearHistoryOnNavigation() {
TRACE_EVENT0("cc", "CompositorTimingHistory::ClearHistoryOnNavigation");
begin_main_frame_queue_duration_history_.Clear(); begin_main_frame_queue_duration_history_.Clear();
begin_main_frame_queue_duration_critical_history_.Clear(); begin_main_frame_queue_duration_critical_history_.Clear();
begin_main_frame_queue_duration_not_critical_history_.Clear(); begin_main_frame_queue_duration_not_critical_history_.Clear();
......
...@@ -333,6 +333,7 @@ void LayerTreeHost::FinishCommitOnImplThread( ...@@ -333,6 +333,7 @@ void LayerTreeHost::FinishCommitOnImplThread(
// the |content_source_id_| on the sync tree. // the |content_source_id_| on the sync tree.
bool did_navigate = content_source_id_ != sync_tree->content_source_id(); bool did_navigate = content_source_id_ != sync_tree->content_source_id();
if (did_navigate) { if (did_navigate) {
TRACE_EVENT0("cc", "LayerTreeHost::DidNavigate");
proxy_->ClearHistoryOnNavigation(); proxy_->ClearHistoryOnNavigation();
host_impl->ClearImageCacheOnNavigation(); host_impl->ClearImageCacheOnNavigation();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment