diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-10-01 11:00:05 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-10-01 11:00:05 +0200 |
commit | 7b0f3f2f92a22df1b3d4a4a35bab2a5c637d3cb4 (patch) | |
tree | 03dad78c203c74a217b9d23f847d07f23993a018 | |
parent | 8ba6dd1bd12a3d13f9e2c683216dd8778011a72e (diff) | |
download | UXP-7b0f3f2f92a22df1b3d4a4a35bab2a5c637d3cb4.tar UXP-7b0f3f2f92a22df1b3d4a4a35bab2a5c637d3cb4.tar.gz UXP-7b0f3f2f92a22df1b3d4a4a35bab2a5c637d3cb4.tar.lz UXP-7b0f3f2f92a22df1b3d4a4a35bab2a5c637d3cb4.tar.xz UXP-7b0f3f2f92a22df1b3d4a4a35bab2a5c637d3cb4.zip |
Remove unused telemetry functions/variables.
Tag #21.
-rw-r--r-- | netwerk/cache2/CacheFile.cpp | 27 | ||||
-rw-r--r-- | xpcom/base/CycleCollectedJSContext.cpp | 1 | ||||
-rw-r--r-- | xpcom/base/nsCycleCollector.cpp | 2 |
3 files changed, 1 insertions, 29 deletions
diff --git a/netwerk/cache2/CacheFile.cpp b/netwerk/cache2/CacheFile.cpp index ce771c754..69fc3d33c 100644 --- a/netwerk/cache2/CacheFile.cpp +++ b/netwerk/cache2/CacheFile.cpp @@ -1865,33 +1865,6 @@ CacheFile::Truncate(int64_t aOffset) return NS_OK; } -static uint32_t -StatusToTelemetryEnum(nsresult aStatus) -{ - if (NS_SUCCEEDED(aStatus)) { - return 0; - } - - switch (aStatus) { - case NS_BASE_STREAM_CLOSED: - return 0; // Log this as a success - case NS_ERROR_OUT_OF_MEMORY: - return 2; - case NS_ERROR_FILE_DISK_FULL: - return 3; - case NS_ERROR_FILE_CORRUPTED: - return 4; - case NS_ERROR_FILE_NOT_FOUND: - return 5; - case NS_BINDING_ABORTED: - return 6; - default: - return 1; // other error - } - - NS_NOTREACHED("We should never get here"); -} - nsresult CacheFile::RemoveInput(CacheFileInputStream *aInput, nsresult aStatus) { diff --git a/xpcom/base/CycleCollectedJSContext.cpp b/xpcom/base/CycleCollectedJSContext.cpp index 02fc1aa4c..206984656 100644 --- a/xpcom/base/CycleCollectedJSContext.cpp +++ b/xpcom/base/CycleCollectedJSContext.cpp @@ -1537,7 +1537,6 @@ IncrementalFinalizeRunnable::Run() return NS_OK; } - TimeStamp start = TimeStamp::Now(); ReleaseNow(true); if (mDeferredFinalizeFunctions.Length()) { diff --git a/xpcom/base/nsCycleCollector.cpp b/xpcom/base/nsCycleCollector.cpp index a349e086d..7109d85bd 100644 --- a/xpcom/base/nsCycleCollector.cpp +++ b/xpcom/base/nsCycleCollector.cpp @@ -3524,9 +3524,9 @@ nsCycleCollector::CleanupAfterCollection() mGraph.Clear(); timeLog.Checkpoint("CleanupAfterCollection::mGraph.Clear()"); +#ifdef COLLECT_TIME_DEBUG uint32_t interval = (uint32_t)((TimeStamp::Now() - mCollectionStart).ToMilliseconds()); -#ifdef COLLECT_TIME_DEBUG printf("cc: total cycle collector time was %ums in %u slices\n", interval, mResults.mNumSlices); printf("cc: visited %u ref counted and %u GCed objects, freed %d ref counted and %d GCed objects", |