From de4963c3f017007f36853564f4ed2ccbf299f454 Mon Sep 17 00:00:00 2001 From: "rlarocque@chromium.org" Date: Sat, 24 Mar 2012 02:17:30 +0000 Subject: sync: Count and report reflected updates Many of the updates a sync client receives are echoes of its own changes. This patch attempts to count how often these updates are received by comparing the version of downloaded updates against the local version. These counts are exposed locally through AllStatus/about:sync. We also upload this information to the server through the ClientDebugInfo mechanism. BUG=117565 TEST= Review URL: http://codereview.chromium.org/9702083 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128659 0039d316-1c4b-4281-b951-d872f2087c98 --- sync/sessions/status_controller.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sync/sessions/status_controller.cc') diff --git a/sync/sessions/status_controller.cc b/sync/sessions/status_controller.cc index 2ae1a96..19fdbaf 100644 --- a/sync/sessions/status_controller.cc +++ b/sync/sessions/status_controller.cc @@ -116,6 +116,12 @@ void StatusController::increment_num_tombstone_updates_downloaded_by( value; } +void StatusController::increment_num_reflected_updates_downloaded_by( + int value) { + shared_.syncer_status.mutate()->num_reflected_updates_downloaded_total += + value; +} + void StatusController::set_num_server_changes_remaining( int64 changes_remaining) { if (shared_.num_server_changes_remaining.value() != changes_remaining) -- cgit v1.1