Closed Bug 1347948 Opened 8 years ago Closed 8 years ago

Report time that channel spent suspended between AsyncOpen and OnStartRequest

Categories

(Core :: Networking: HTTP, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: michal, Assigned: michal)

Details

(Whiteboard: [necko-active])

Attachments

(1 file, 1 obsolete file)

We need to make sure that HTTP_NET_VS_CACHE_ONSTART_ probes are not skewed by suspend time.
Attached patch patch (obsolete) — Splinter Review
Attachment #8848112 - Flags: review?(honzab.moz)
Comment on attachment 8848112 [details] [diff] [review] patch Review of attachment 8848112 [details] [diff] [review]: ----------------------------------------------------------------- ::: netwerk/protocol/http/nsHttpChannel.cpp @@ +8345,5 @@ > > ++mSuspendCount; > > + if (mSuspendCount == 1) { > + mSuspendTimestamp = TimeStamp::NowLoRes(); nit: indent ::: netwerk/protocol/http/nsHttpChannel.h @@ +518,5 @@ > uint32_t mOfflineCacheLastModifiedTime; > > mozilla::TimeStamp mOnStartRequestTimestamp; > + mozilla::TimeStamp mSuspendTimestamp; > + uint32_t mSuspendTotalTime; some comments how this is used would be good.
Attachment #8848112 - Flags: review?(honzab.moz) → review+
Attached patch patch v2Splinter Review
Attachment #8848112 - Attachment is obsolete: true
Attachment #8850966 - Flags: review+
Comment on attachment 8850966 [details] [diff] [review] patch v2 We're adding this probe to verify that the large values in HTTP_NET_VS_CACHE_ONSTART_ are not caused by suspending the channel for a long time.
Attachment #8850966 - Flags: review?(benjamin)
Comment on attachment 8850966 [details] [diff] [review] patch v2 data-r=me
Attachment #8850966 - Flags: review?(benjamin) → review+
Keywords: checkin-needed
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/a73dcfe2c382 Report time that channel spent suspended between AsyncOpen and OnStartRequest. r=honzab, data-review=bsmedberg
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: