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

Side by Side Diff: sync/protocol/client_debug_info.proto

Issue 9702083: sync: Count and report reflected updates (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update python test server Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 // Common sync protocol for encrypted data. 5 // Common sync protocol for encrypted data.
6 6
7 syntax = "proto2"; 7 syntax = "proto2";
8 8
9 option optimize_for = LITE_RUNTIME; 9 option optimize_for = LITE_RUNTIME;
10 option retain_unknown_fields = true; 10 option retain_unknown_fields = true;
11 11
12 package sync_pb; 12 package sync_pb;
13 13
14 import "get_updates_caller_info.proto";
15
14 // The additional info here is from SyncerStatus. They get sent when the event 16 // The additional info here is from SyncerStatus. They get sent when the event
15 // SYNC_CYCLE_COMPLETED is sent. 17 // SYNC_CYCLE_COMPLETED is sent.
16 message SyncCycleCompletedEventInfo { 18 message SyncCycleCompletedEventInfo {
17 // optional bool syncer_stuck = 1; // Was always false, now obsolete. 19 // optional bool syncer_stuck = 1; // Was always false, now obsolete.
18 20
19 // The client has never set these values correctly. It set 21 // The client has never set these values correctly. It set
20 // num_blocking_conflicts to the total number of conflicts detected and set 22 // num_blocking_conflicts to the total number of conflicts detected and set
21 // num_non_blocking_conflicts to the number of blocking (aka. simple) 23 // num_non_blocking_conflicts to the number of blocking (aka. simple)
22 // conflicts. 24 // conflicts.
23 // 25 //
24 // These counters have been deprecated to avoid further confusion. The newer 26 // These counters have been deprecated to avoid further confusion. The newer
25 // counters provide more detail and are less buggy. 27 // counters provide more detail and are less buggy.
26 optional int32 num_blocking_conflicts = 2 [deprecated = true]; 28 optional int32 num_blocking_conflicts = 2 [deprecated = true];
27 optional int32 num_non_blocking_conflicts = 3 [deprecated = true]; 29 optional int32 num_non_blocking_conflicts = 3 [deprecated = true];
28 30
29 // These new conflict counters replace the ones above. 31 // These new conflict counters replace the ones above.
30 optional int32 num_encryption_conflicts = 4; 32 optional int32 num_encryption_conflicts = 4;
31 optional int32 num_hierarchy_conflicts = 5; 33 optional int32 num_hierarchy_conflicts = 5;
32 optional int32 num_simple_conflicts = 6; 34 optional int32 num_simple_conflicts = 6;
33 optional int32 num_server_conflicts = 7; 35 optional int32 num_server_conflicts = 7;
36
37 // Counts to track the effective usefulness of our GetUpdate requests.
38 optional int32 num_updates_downloaded = 8;
39 optional int32 num_reflected_updates_downloaded = 9;
40 optional GetUpdatesCallerInfo caller_info = 10;
34 } 41 }
35 42
36 message DebugEventInfo { 43 message DebugEventInfo {
37 // These events are sent by |SyncManager| class. Note: In the code they each 44 // These events are sent by |SyncManager| class. Note: In the code they each
38 // of these events have some additional info but we are not sending them to 45 // of these events have some additional info but we are not sending them to
39 // server. 46 // server.
40 enum EventType { 47 enum EventType {
41 CONNECTION_STATUS_CHANGE = 1; // Connection status change. Note this 48 CONNECTION_STATUS_CHANGE = 1; // Connection status change. Note this
42 // gets generated even during a successful 49 // gets generated even during a successful
43 // connection. 50 // connection.
(...skipping 22 matching lines...) Expand all
66 // Whether cryptographer is ready to encrypt and decrypt data. 73 // Whether cryptographer is ready to encrypt and decrypt data.
67 optional bool cryptographer_ready = 2; 74 optional bool cryptographer_ready = 2;
68 75
69 // Cryptographer has pending keys which indicates the correct passphrase 76 // Cryptographer has pending keys which indicates the correct passphrase
70 // has not been provided yet. 77 // has not been provided yet.
71 optional bool cryptographer_has_pending_keys = 3; 78 optional bool cryptographer_has_pending_keys = 3;
72 79
73 // Indicates client has dropped some events to save bandwidth. 80 // Indicates client has dropped some events to save bandwidth.
74 optional bool events_dropped = 4; 81 optional bool events_dropped = 4;
75 } 82 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698