Closed
Bug 1006641
Opened 10 years ago
Closed 10 years ago
Measure and report the audio stream creation time
Categories
(Core :: Audio/Video, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla32
People
(Reporter: padenot, Assigned: jesup)
References
Details
(Whiteboard: [p=.5, 1.5:p2, ft:webrtc] )
Attachments
(1 file)
6.44 KB,
patch
|
jib
:
review+
|
Details | Diff | Splinter Review |
We need to have figures for how long an audio stream takes to create. We also need to know whether this number is for the first stream, or any other stream, because the first stream is likely to have the IPC setup overhead (depending on the platform). This is a good candidate for telemetry probes.
Updated•10 years ago
|
Assignee: nobody → rjesup
Updated•10 years ago
|
Priority: -- → P2
Updated•10 years ago
|
Whiteboard: [p=.5, 1.5:p2, ft:webrtc]
Assignee | ||
Comment 1•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Attachment #8434077 -
Flags: review?(jib)
Comment 3•10 years ago
|
||
Comment on attachment 8434077 [details] [diff] [review] add telemetry for AudioStream open times Review of attachment 8434077 [details] [diff] [review]: ----------------------------------------------------------------- r=me with nits. ::: content/media/AudioStream.cpp @@ +75,5 @@ > } > > +/*static*/ bool AudioStream::GetFirstStream() > +{ > + StaticMutexAutoLock lock(sMutex); Why not define sFirstStream here instead of exposing it in class scope? static bool sFirstStream = true; @@ +78,5 @@ > +{ > + StaticMutexAutoLock lock(sMutex); > + bool result = sFirstStream; > + sFirstStream = false; > + return result; . @@ +506,5 @@ > return NS_ERROR_FAILURE; > } > } > > + if (!mStartTime.IsNull()) { Can mStartTime ever be null here? @@ +513,5 @@ > + (uint32_t) timeDelta.ToMilliseconds())); > + Telemetry::Accumulate(mIsFirst ? Telemetry::AUDIOSTREAM_FIRST_OPEN : > + Telemetry::AUDIOSTREAM_LATER_OPEN, timeDelta.ToMilliseconds()); > + } > + whitespace ::: content/media/AudioStream.h @@ +429,5 @@ > // This mutex protects the static members below. > static StaticMutex sMutex; > static cubeb* sCubebContext; > > + static bool sFirstStream; Don't need both sFirstStream and GetFirstStream ::: toolkit/components/telemetry/Histograms.json @@ +49,5 @@ > "expires_in_version": "never", > "kind": "boolean", > "description": "Application reputation query count (both local and remote)" > }, > + "AUDIOSTREAM_FIRST_OPEN": { Do we want to use _MS in the name? I find descriptions absent in about:telemetry at least and I personally find this pattern helpful, though I see it's not used consistently throughout. Just an idea.
Attachment #8434077 -
Flags: review?(jib) → review+
Assignee | ||
Comment 4•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/504404fcc7dc
Target Milestone: --- → mozilla32
Comment 5•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/504404fcc7dc
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•