Bug 1715321 - [profiler, netwerk] Reorder some parameters of profiler_add_network_marker r=necko-reviewers,gerald,valentin

This moves optional redirect-related parameters to the end, so that it's
easier to use in non-redirect cases.

Differential Revision: https://phabricator.services.mozilla.com/D117680
This commit is contained in:
Julien Wajsberg
2021-06-21 07:37:55 +00:00
parent f277ea1134
commit a4bea8a9cc
6 changed files with 26 additions and 24 deletions

View File

@@ -622,7 +622,7 @@ InterceptedHttpChannel::ResetInterception(void) {
mURI, requestMethod, priority, mChannelId,
NetworkLoadType::LOAD_REDIRECT, mAsyncOpenTime, TimeStamp::Now(), size,
kCacheUnknown, mLoadInfo->GetInnerWindowID(), &mTransactionTimings,
mURI, std::move(mSource), Some(nsDependentCString(contentType.get())));
std::move(mSource), Some(nsDependentCString(contentType.get())), mURI);
}
#endif
@@ -1121,8 +1121,8 @@ InterceptedHttpChannel::OnStopRequest(nsIRequest* aRequest, nsresult aStatus) {
profiler_add_network_marker(
mURI, requestMethod, priority, mChannelId, NetworkLoadType::LOAD_STOP,
mAsyncOpenTime, TimeStamp::Now(), size, kCacheUnknown,
mLoadInfo->GetInnerWindowID(), &mTransactionTimings, nullptr,
std::move(mSource), Some(nsDependentCString(contentType.get())));
mLoadInfo->GetInnerWindowID(), &mTransactionTimings, std::move(mSource),
Some(nsDependentCString(contentType.get())));
}
#endif