mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 730163 - Telemetry for how long we wait to acquire the cache service lock. r=michal.novotny
This commit is contained in:
parent
04d373eb1c
commit
076a7f08b6
8
netwerk/cache/nsCacheService.cpp
vendored
8
netwerk/cache/nsCacheService.cpp
vendored
@ -2324,7 +2324,13 @@ nsCacheService::OnDataSizeChange(nsCacheEntry * entry, PRInt32 deltaSize)
|
||||
void
|
||||
nsCacheService::Lock()
|
||||
{
|
||||
gService->mLock.Lock();
|
||||
if (NS_IsMainThread()) {
|
||||
Telemetry::AutoTimer<Telemetry::CACHE_SERVICE_LOCK_WAIT_MAINTHREAD> timer;
|
||||
gService->mLock.Lock();
|
||||
} else {
|
||||
Telemetry::AutoTimer<Telemetry::CACHE_SERVICE_LOCK_WAIT> timer;
|
||||
gService->mLock.Lock();
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -223,6 +223,8 @@ HISTOGRAM(CACHE_MEMORY_SEARCH, 1, 100, 100, LINEAR, "Time to search memory cache
|
||||
HISTOGRAM(CACHE_DISK_SEARCH, 1, 100, 100, LINEAR, "Time to search disk cache (ms)")
|
||||
HISTOGRAM(CACHE_OFFLINE_SEARCH, 1, 100, 100, LINEAR, "Time to search offline cache (ms)")
|
||||
HISTOGRAM(HTTP_DISK_CACHE_OVERHEAD, 1, 32000000, 100, EXPONENTIAL, "HTTP Disk cache memory overhead (bytes)")
|
||||
HISTOGRAM(CACHE_SERVICE_LOCK_WAIT, 1, 10000, 10000, LINEAR, "Time spent waiting on the cache service lock (ms)")
|
||||
HISTOGRAM(CACHE_SERVICE_LOCK_WAIT_MAINTHREAD, 1, 10000, 10000, LINEAR, "Time spent waiting on the cache service lock on the main thread (ms)")
|
||||
|
||||
HISTOGRAM(DNS_LOOKUP_METHOD, 1, 7, 7, LINEAR, "DNS Lookup Type (hit, renewal, negative-hit, literal, overflow, network-first, network-shared)")
|
||||
HISTOGRAM(DNS_CLEANUP_AGE, 1, 1440, 50, EXPONENTIAL, "DNS Cache Entry Age at Removal Time (minutes)")
|
||||
|
Loading…
Reference in New Issue
Block a user