diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-09-04 09:41:24 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-09-04 09:41:24 +0200 |
commit | 93cae908bcbd063f21d5663a7d3149464af2ad20 (patch) | |
tree | 8809b848f23acede820937356df6083a3f57685c /netwerk/cookie | |
parent | ab961aeb54335fd07c66de2e3b8c3b6af6f89ea2 (diff) | |
download | UXP-93cae908bcbd063f21d5663a7d3149464af2ad20.tar UXP-93cae908bcbd063f21d5663a7d3149464af2ad20.tar.gz UXP-93cae908bcbd063f21d5663a7d3149464af2ad20.tar.lz UXP-93cae908bcbd063f21d5663a7d3149464af2ad20.tar.xz UXP-93cae908bcbd063f21d5663a7d3149464af2ad20.zip |
Remove all C++ telemetry autotimers
Diffstat (limited to 'netwerk/cookie')
-rw-r--r-- | netwerk/cookie/nsCookieService.cpp | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/netwerk/cookie/nsCookieService.cpp b/netwerk/cookie/nsCookieService.cpp index 52558107b..ea54dbd61 100644 --- a/netwerk/cookie/nsCookieService.cpp +++ b/netwerk/cookie/nsCookieService.cpp @@ -954,19 +954,14 @@ nsCookieService::TryInitDB(bool aRecreateDB) NS_ENSURE_SUCCESS(rv, RESULT_FAILURE); } - // This block provides scope for the Telemetry AutoTimer - { - Telemetry::AutoTimer<Telemetry::MOZ_SQLITE_COOKIES_OPEN_READAHEAD_MS> - telemetry; - ReadAheadFile(mDefaultDBState->cookieFile); - - // open a connection to the cookie database, and only cache our connection - // and statements upon success. The connection is opened unshared to eliminate - // cache contention between the main and background threads. - rv = mStorageService->OpenUnsharedDatabase(mDefaultDBState->cookieFile, - getter_AddRefs(mDefaultDBState->dbConn)); - NS_ENSURE_SUCCESS(rv, RESULT_RETRY); - } + ReadAheadFile(mDefaultDBState->cookieFile); + + // open a connection to the cookie database, and only cache our connection + // and statements upon success. The connection is opened unshared to eliminate + // cache contention between the main and background threads. + rv = mStorageService->OpenUnsharedDatabase(mDefaultDBState->cookieFile, + getter_AddRefs(mDefaultDBState->dbConn)); + NS_ENSURE_SUCCESS(rv, RESULT_RETRY); // Set up our listeners. mDefaultDBState->insertListener = new InsertCookieDBListener(mDefaultDBState); |