Closed
Bug 1169016
Opened 10 years ago
Closed 4 years ago
Enabling video controls decreases app performace
Categories
(Core :: Audio/Video: Playback, defect, P3)
Tracking
()
RESOLVED
WORKSFORME
blocking-b2g | - |
People
(Reporter: ntroast, Unassigned)
References
Details
(Whiteboard: [caf priority: p2][CR 844856][POVB])
When video controls are enabled in a packaged application I see that the app uses 5x more CPU time even if the controls are hidden. I used kernel trace logs to collect the CPU time data.
STR:
Create a simple packaged app with the following body:
<video controls autoplay src="http://html5video.org/players/media/sintel.3gp"></video>
Remove the controls attribute and the app consumes less CPU time
Gecko: 197cb3859f55ca587256c76648adec54a1f502ef
Gaia: 732acec6f37d13ccea6b0ddc48904a53a2970894
Updated•10 years ago
|
Component: General → Video/Audio
Product: Firefox OS → Core
Whiteboard: qawanted
Updated•10 years ago
|
Whiteboard: qawanted → [CR 844856]qawanted
Updated•10 years ago
|
Whiteboard: [CR 844856]qawanted → [caf priority: p2][CR 844856]qawanted
Comment 2•10 years ago
|
||
(In reply to Nicholas Troast [:ntroast] from comment #0)
> When video controls are enabled in a packaged application I see that the app
> uses 5x more CPU time even if the controls are hidden. I used kernel trace
> logs to collect the CPU time data.
>
> STR:
> Create a simple packaged app with the following body:
>
> <video controls autoplay
> src="http://html5video.org/players/media/sintel.3gp"></video>
>
> Remove the controls attribute and the app consumes less CPU time
Hi Nichola,
Can you provide the statistics data? I tried on my desktop. When I enable "controls", most of the CPU time spends on garbage collection threads. I want to make sure we are looking into the same thing. Thanks.
Flags: needinfo?(slee) → needinfo?(ntroast)
Reporter | ||
Comment 3•10 years ago
|
||
Hi Steven,
I would share the kernel log data, but I am not sure that it would be very informative. The only process that is consuming more cpu is the app itself. All other processes look normal.
Flags: needinfo?(ntroast)
Updated•10 years ago
|
Flags: needinfo?(slee)
Comment 4•10 years ago
|
||
(In reply to Nicholas Troast [:ntroast] from comment #3)
> I would share the kernel log data, but I am not sure that it would be very
> informative. The only process that is consuming more cpu is the app itself.
> All other processes look normal.
I think you are using ftrace to get the data, right? The output of freace is calculated per thread. I want to make sure FxOS and desktop browser are the same. Thanks.
Flags: needinfo?(slee) → needinfo?(ntroast)
Updated•10 years ago
|
Keywords: qawanted
Whiteboard: [caf priority: p2][CR 844856]qawanted → [caf priority: p2][CR 844856]
Comment 5•10 years ago
|
||
Bobby what are you looking to have done for the qawanted request, branch checks? If so can you provide some test apps (one with and one without video controls) for comparison purposes.
Flags: needinfo?(bchien)
Comment 6•10 years ago
|
||
Nicholas, could you provide Jayme's request in comment 5? So we could have test to against branches. Thanks.
Flags: needinfo?(bchien)
Comment 7•9 years ago
|
||
Hi Nicholas, can we have your feedback here? Thank you
Reporter | ||
Comment 8•9 years ago
|
||
(In reply to Bobby Chien [:bchien] from comment #6)
> Nicholas, could you provide Jayme's request in comment 5? So we could have
> test to against branches. Thanks.
I provided the test app in the bug description. It is a single line.
Flags: needinfo?(ntroast)
Comment 9•9 years ago
|
||
Are we going to fix this for v2.2?
Comment 10•9 years ago
|
||
[Blocking Requested - why for this release]:
2.2 CCed. Continue investigate in next release.
blocking-b2g: 2.2? → 2.5?
Comment 11•9 years ago
|
||
[Triage] Minus it since it's partner related. We'll rely on partner's help.
blocking-b2g: 2.5? → -
Keywords: qawanted
Updated•9 years ago
|
Whiteboard: [caf priority: p2][CR 844856] → [caf priority: p2][CR 844856][POVB]
Updated•9 years ago
|
Priority: -- → P2
Updated•9 years ago
|
Component: Audio/Video → Audio/Video: Playback
Mass change P2 -> P3
Priority: P2 → P3
Comment 13•4 years ago
|
||
Considering this is an pretty old bug, and we've changed video control a lot, and I didn't see this issue on the latest Release. So close this bug.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•