summaryrefslogtreecommitdiffstats
path: root/toolkit/components/url-classifier/VariableLengthPrefixSet.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-09-04 09:41:24 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-09-04 09:41:24 +0200
commit93cae908bcbd063f21d5663a7d3149464af2ad20 (patch)
tree8809b848f23acede820937356df6083a3f57685c /toolkit/components/url-classifier/VariableLengthPrefixSet.cpp
parentab961aeb54335fd07c66de2e3b8c3b6af6f89ea2 (diff)
downloadUXP-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 'toolkit/components/url-classifier/VariableLengthPrefixSet.cpp')
-rw-r--r--toolkit/components/url-classifier/VariableLengthPrefixSet.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/toolkit/components/url-classifier/VariableLengthPrefixSet.cpp b/toolkit/components/url-classifier/VariableLengthPrefixSet.cpp
index e9d6770d3..a387a698c 100644
--- a/toolkit/components/url-classifier/VariableLengthPrefixSet.cpp
+++ b/toolkit/components/url-classifier/VariableLengthPrefixSet.cpp
@@ -209,8 +209,6 @@ VariableLengthPrefixSet::LoadFromFile(nsIFile* aFile)
NS_ENSURE_ARG_POINTER(aFile);
- Telemetry::AutoTimer<Telemetry::URLCLASSIFIER_VLPS_FILELOAD_TIME> timer;
-
nsCOMPtr<nsIInputStream> localInFile;
nsresult rv = NS_NewLocalFileInputStream(getter_AddRefs(localInFile), aFile,
PR_RDONLY | nsIFile::OS_READAHEAD);
@@ -255,15 +253,12 @@ VariableLengthPrefixSet::StoreToFile(nsIFile* aFile)
uint32_t fileSize = 0;
// Preallocate the file storage
- {
- nsCOMPtr<nsIFileOutputStream> fos(do_QueryInterface(localOutFile));
- Telemetry::AutoTimer<Telemetry::URLCLASSIFIER_VLPS_FALLOCATE_TIME> timer;
+ nsCOMPtr<nsIFileOutputStream> fos(do_QueryInterface(localOutFile));
- fileSize += mFixedPrefixSet->CalculatePreallocateSize();
- fileSize += CalculatePreallocateSize();
+ fileSize += mFixedPrefixSet->CalculatePreallocateSize();
+ fileSize += CalculatePreallocateSize();
- Unused << fos->Preallocate(fileSize);
- }
+ Unused << fos->Preallocate(fileSize);
// Convert to buffered stream
nsCOMPtr<nsIOutputStream> out =