diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-09-04 10:06:24 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-09-04 10:07:40 +0200 |
commit | b28ab55f9675f2e97dda9a4fcac0d4f5267a2bb9 (patch) | |
tree | 0b6e4cfff6c1d4f699aa04c98c27744b4c0c481f /netwerk/cookie/nsCookieService.cpp | |
parent | 45ec2bceb4822646805136b8874a3681b14e78ef (diff) | |
parent | 93cae908bcbd063f21d5663a7d3149464af2ad20 (diff) | |
download | UXP-b28ab55f9675f2e97dda9a4fcac0d4f5267a2bb9.tar UXP-b28ab55f9675f2e97dda9a4fcac0d4f5267a2bb9.tar.gz UXP-b28ab55f9675f2e97dda9a4fcac0d4f5267a2bb9.tar.lz UXP-b28ab55f9675f2e97dda9a4fcac0d4f5267a2bb9.tar.xz UXP-b28ab55f9675f2e97dda9a4fcac0d4f5267a2bb9.zip |
Remove all C++ telemetry autotimers
Tag #21
Diffstat (limited to 'netwerk/cookie/nsCookieService.cpp')
-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); |