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

Issue 7575026: Session/tab sync performance tests. (Closed)

Created:
9 years, 4 months ago by braffert
Modified:
9 years, 4 months ago
CC:
chromium-reviews, Raghu Simha, ncarter (slow), idana, tim (not reviewing), Paweł Hajdan Jr.
Visibility:
Public.

Description

Session/tab sync performance tests. This patch adds tab sync performance tests, similar to the tests for the existing datatypes in live_sync/performance. Changes to LiveSessionsSyncTest were required - most significantly the addition of AwaitSessionPropagation, which waits until a vector of urls can all be found in the model associator. This type of wait loop previously existed as part of OpenTab, and worked with a single url. AwaitSessionPropagation supports multiple urls, and is called from OpenTab, OpenMultipleTabs, and SessionsSyncPerfTest::UpdateTabs. BUG=none TEST=sync_performance_tests, sync_integration_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=95675

Patch Set 1 #

Patch Set 2 : comment typos #

Total comments: 12

Patch Set 3 : review fixes #

Patch Set 4 : Review fixes + adjust wait loop #

Patch Set 5 : Remove disabled test #

Patch Set 6 : Remove unneeded variables used by disabled test #

Total comments: 7

Patch Set 7 : more review suggestions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -16 lines) Patch
M chrome/chrome_tests.gypi View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/test/live_sync/live_sessions_sync_test.h View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/test/live_sync/live_sessions_sync_test.cc View 1 2 3 4 5 6 1 chunk +39 lines, -16 lines 0 comments Download
A chrome/test/live_sync/performance/sessions_sync_perf_test.cc View 1 2 3 4 5 6 1 chunk +124 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
braffert
http://codereview.chromium.org/7575026/diff/1001/chrome/test/live_sync/live_sessions_sync_test.cc File chrome/test/live_sync/live_sessions_sync_test.cc (right): http://codereview.chromium.org/7575026/diff/1001/chrome/test/live_sync/live_sessions_sync_test.cc#newcode118 chrome/test/live_sync/live_sessions_sync_test.cc:118: found = false; Using a flag here to avoid ...
9 years, 4 months ago (2011-08-04 23:47:34 UTC) #1
Nicolas Zea
http://codereview.chromium.org/7575026/diff/1001/chrome/test/live_sync/live_sessions_sync_test.cc File chrome/test/live_sync/live_sessions_sync_test.cc (right): http://codereview.chromium.org/7575026/diff/1001/chrome/test/live_sync/live_sessions_sync_test.cc#newcode125 chrome/test/live_sync/live_sessions_sync_test.cc:125: found = ModelAssociatorHasTabWithUrl(index, *it); May as well put this ...
9 years, 4 months ago (2011-08-05 00:40:02 UTC) #2
braffert
http://codereview.chromium.org/7575026/diff/1001/chrome/test/live_sync/live_sessions_sync_test.cc File chrome/test/live_sync/live_sessions_sync_test.cc (right): http://codereview.chromium.org/7575026/diff/1001/chrome/test/live_sync/live_sessions_sync_test.cc#newcode125 chrome/test/live_sync/live_sessions_sync_test.cc:125: found = ModelAssociatorHasTabWithUrl(index, *it); On 2011/08/05 00:40:02, nzea wrote: ...
9 years, 4 months ago (2011-08-05 00:47:38 UTC) #3
braffert
Missed a couple comments from your last review. I reworded the comment you pointed out, ...
9 years, 4 months ago (2011-08-05 17:43:55 UTC) #4
Raghu Simha
I have a few minor comments. LGTM pending green trybots after that. http://codereview.chromium.org/7575026/diff/13001/chrome/test/live_sync/live_sessions_sync_test.cc File chrome/test/live_sync/live_sessions_sync_test.cc ...
9 years, 4 months ago (2011-08-05 21:26:07 UTC) #5
braffert
http://codereview.chromium.org/7575026/diff/13001/chrome/test/live_sync/live_sessions_sync_test.cc File chrome/test/live_sync/live_sessions_sync_test.cc (right): http://codereview.chromium.org/7575026/diff/13001/chrome/test/live_sync/live_sessions_sync_test.cc#newcode102 chrome/test/live_sync/live_sessions_sync_test.cc:102: VLOG(1) << "Opening tab: " << it->spec(); On 2011/08/05 ...
9 years, 4 months ago (2011-08-05 21:37:21 UTC) #6
Nicolas Zea
9 years, 4 months ago (2011-08-05 21:40:41 UTC) #7
LGTM

http://codereview.chromium.org/7575026/diff/13001/chrome/test/live_sync/live_...
File chrome/test/live_sync/live_sessions_sync_test.cc (right):

http://codereview.chromium.org/7575026/diff/13001/chrome/test/live_sync/live_...
chrome/test/live_sync/live_sessions_sync_test.cc:120: found =
ModelAssociatorHasTabWithUrl(index, *it);
On 2011/08/05 21:37:21, braffert wrote:
> On 2011/08/05 21:26:07, rsimha wrote:
> > Curious: What if found becomes true at the last possible instant? If the
line
> > above this comment returns true, but we just went past the deadline, this
> > function will end up returning false when it could technically return true.
> > 
> > If you think this is an edge case that we probably don't care about, I'm
fine
> > leaving this as it is.
> 
> I don't think it's anything to be concerned with.  I originally had the
timeout
> check come before the call to ModelAssociatorHasTabWithUrl, which would
slightly
> change the meaning of the corner case.  
> 
> Nicolas, what do you think? 

There's nothing we can do about it turning true after the call and before the
timeout. The timeout is sufficiently large that this should never happen, and if
it does it's likely a bug anyways, so I think this is fine.

Powered by Google App Engine
This is Rietveld 408576698