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

Side by Side Diff: tools/perf/page_sets/indexeddb_perf/endure/app-worker.js

Issue 1238393003: [IndexedDB] Adding traces, perf tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 5 years, 4 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
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 // This file simulates a typical background process of an offline-capable 5 // This file simulates a typical background process of an offline-capable
6 // authoring application. When in an "online" state it receives chunks of 6 // authoring application. When in an "online" state it receives chunks of
7 // data updates from a simulated server and stores them in a temporary IDB 7 // data updates from a simulated server and stores them in a temporary IDB
8 // data store. On a different timer, the chunks are drained from the 8 // data store. On a different timer, the chunks are drained from the
9 // temporary store and combined into larger records in a permanent store. 9 // temporary store and combined into larger records in a permanent store.
10 // When in an "offline" state, nothing else happens. 10 // When in an "offline" state, nothing else happens.
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 }; 215 };
216 transaction.onabort = unexpectedAbortCallback; 216 transaction.onabort = unexpectedAbortCallback;
217 transaction.oncomplete = function () { 217 transaction.oncomplete = function () {
218 log('combine ' + combine_id + 218 log('combine ' + combine_id +
219 ' finished, processed ' + combine_chunk_count + ' chunks'); 219 ' finished, processed ' + combine_chunk_count + ' chunks');
220 db.close(); 220 db.close();
221 combineTimeoutId = setTimeout(combine, COMBINE_TIMEOUT); 221 combineTimeoutId = setTimeout(combine, COMBINE_TIMEOUT);
222 }; 222 };
223 }; 223 };
224 } 224 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698