tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 204c02b48d718bbc3b538988198d84f4d81254fb
parent 93865a01eaa60ca078f5e880bd88a2bd95659bdf
Author: Randell Jesup <rjesup@mozilla.com>
Date:   Tue,  7 Oct 2025 17:56:03 +0000

Bug 1978496: Add markers for Compression Dictionaries #necko-reviewers! r=necko-reviewers,valentin

Differential Revision: https://phabricator.services.mozilla.com/D265362

Diffstat:
Mnetwerk/cache2/Dictionary.cpp | 14+++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/netwerk/cache2/Dictionary.cpp b/netwerk/cache2/Dictionary.cpp @@ -21,7 +21,6 @@ #include "nsICancelable.h" #include "nsIChannel.h" #include "nsContentUtils.h" -#include "mozilla/dom/Document.h" #include "nsIFile.h" #include "nsIHttpChannel.h" #include "nsIInputStream.h" @@ -42,6 +41,8 @@ #include "mozilla/Logging.h" #include "mozilla/Components.h" +#include "mozilla/dom/Document.h" +#include "mozilla/FlowMarkers.h" #include "mozilla/OriginAttributes.h" #include "mozilla/Preferences.h" #include "mozilla/SchedulerGroup.h" @@ -632,6 +633,9 @@ void DictionaryOriginReader::Start( mCallback = aCallback; mCache = aCache; + AUTO_PROFILER_FLOW_MARKER("DictionaryOriginReader::Start", NETWORK, + Flow::FromPointer(this)); + // The cache entry is for originattribute extension of // META_DICTIONARY_PREFIX, plus key of prepath @@ -699,9 +703,14 @@ NS_IMETHODIMP DictionaryOriginReader::OnCacheEntryAvailable( (reader->mCallback)(true, nullptr); } mOrigin->mWaitingCacheRead.Clear(); + AUTO_PROFILER_TERMINATING_FLOW_MARKER( + "DictionaryOriginReader::OnCacheEntryAvailable", NETWORK, + Flow::FromPointer(this)); return NS_OK; } + AUTO_PROFILER_FLOW_MARKER("DictionaryOriginReader::VisitMetaData", NETWORK, + Flow::FromPointer(this)); mOrigin->SetCacheEntry(aCacheEntry); // There's no data in the cache entry, just metadata nsCOMPtr<nsICacheEntryMetaDataVisitor> metadata(mOrigin); @@ -713,6 +722,9 @@ NS_IMETHODIMP DictionaryOriginReader::OnCacheEntryAvailable( reader->FinishMatch(); } mOrigin->mWaitingCacheRead.Clear(); + AUTO_PROFILER_TERMINATING_FLOW_MARKER( + "DictionaryOriginReader::OnCacheEntryAvailable", NETWORK, + Flow::FromPointer(this)); return NS_OK; }