commit f28af4e89310f4e154b95f744dba76d12bb2f57b
parent 1c5e6866db14ff83e41af55ebb97eca0a415ee49
Author: Randell Jesup <rjesup@mozilla.com>
Date: Wed, 1 Oct 2025 18:46:03 +0000
Bug 1978496: Add markers for Compression Dictionaries #necko-reviewers! r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D265362
Diffstat:
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;
}