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

Unified Diff: chrome/browser/resources/sync_internals/types.html

Issue 290023003: sync: Add UI code for per type debug counters (Closed) Base URL: https://chromium.googlesource.com/chromium/src
Patch Set: Update some names (retry) Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/sync_internals/types.html
diff --git a/chrome/browser/resources/sync_internals/types.html b/chrome/browser/resources/sync_internals/types.html
new file mode 100644
index 0000000000000000000000000000000000000000..03e92b32cebb64f6cd10211593785da2340da53e
--- /dev/null
+++ b/chrome/browser/resources/sync_internals/types.html
@@ -0,0 +1,51 @@
+ <div id="type-counters-container-wrapper" jsskip="true">
+ <div class="section">
+ <h2>Type Counters</h2>
+ <table id="type-counters-table">
+ <thead>
+ <tr>
+ <th class='type'>Type</th>
+ <th>Total Entries</th>
+
+ <th>Updates Received</th>
+ <th>Reflected Updates Received</th>
+ <th>Tombstone Updates Received</th>
+
+ <th>Updates Applied</th>
+ <th>Hierarchy Conflict Application Failures</th>
+ <th>Encryption Conflict Application Failures</th>
+
+ <th>Server Overwrite Conflict</th>
maniscalco 2014/05/23 00:55:00 Is this a count? should it read Conflicts" instead
rlarocque 2014/05/27 20:13:26 Right, it should be plural. These are meant to in
+ <th>Local Overwrite Conflict</th>
+
+ <th>Commit Attempts</th>
+ <th>Commit Successes</th>
+ <th>Commit Conflicts</th>
+ <th>Commit Errors</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr jsselect="rows">
+ <td jscontent="type"></td>
+ <td jscontent="counters.numEntries || 0">0</td>
maniscalco 2014/05/23 00:55:00 What does the || 0 do?
rlarocque 2014/05/27 20:13:26 It's a bit of a hack to initialize the table to sh
maniscalco 2014/05/27 20:31:07 I see. Thanks for the explanation. Using "|| 0"
+
+ <td jscontent="counters.numUpdatesReceived || 0">0</td>
+ <td jscontent="counters.numReflectedUpdatesReceived || 0">0</td>
+ <td jscontent="counters.numTombstoneUpdatesReceived || 0">0</td>
+
+ <td jscontent="counters.numUpdatesApplied || 0">0</td>
+ <td jscontent="counters.numHierarchyConflictApplicationFailures || 0">0</td>
+ <td jscontent="counters.numEncryptionConflictApplicationFailures || 0">0</td>
+
+ <td jscontent="counters.numServerOverwrites || 0">0</td>
+ <td jscontent="counters.numLocalOverwrites || 0">0</td>
+
+ <td jscontent="counters.numCommitsAttempted || 0">0</td>
+ <td jscontent="counters.numCommitsSuccess || 0">0</td>
+ <td jscontent="counters.numCommitsConflict || 0">0</td>
+ <td jscontent="counters.numCommitsError || 0">0</td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ </div>

Powered by Google App Engine
This is Rietveld 408576698