mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-31 11:58:40 +09:00
Remove all C++ telemetry autotimers
This commit is contained in:
parent
8c8145e620
commit
ad782894c8
28 changed files with 37 additions and 119 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue