Bug 687081 - Time how long it takes to find (or not) things in the cache. r=jduell

This commit is contained in:
Nick Hurley
2011-10-30 15:39:53 +01:00
parent 11863041ab
commit 0883dccd82
5 changed files with 11 additions and 0 deletions

View File

@@ -68,6 +68,7 @@
#include "nsISeekableStream.h"
#include "mozilla/FunctionTimer.h"
#include "mozilla/Telemetry.h"
using namespace mozilla;
@@ -1340,6 +1341,7 @@ nsOfflineCacheDevice::GetDeviceID()
nsCacheEntry *
nsOfflineCacheDevice::FindEntry(nsCString *fullKey, bool *collision)
{
mozilla::Telemetry::AutoTimer<mozilla::Telemetry::CACHE_OFFLINE_SEARCH> timer;
LOG(("nsOfflineCacheDevice::FindEntry [key=%s]\n", fullKey->get()));
// SELECT * FROM moz_cache WHERE key = ?