Creating an Audio {} component is slow because of AalMediaPlayerService::newMediaPlayer

Bug #1590953 reported by Albert Astals Cid
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtubuntu-media (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I've traced down the creating of Audio items on the phone being slow
~200 ms for first creation
 ~50 ms for subsequent creations
to AalMediaPlayerService::newMediaPlayer

This is a bit too much if an animation in QML ends up creating an Audio component the animation will be very slow.

Also it's added startup time for apps that use Audio components.

One way to debug how much time takes to create an Audio component by running http://paste.ubuntu.com/17155068/ with

qmlprofiler -fromStart qmlscene -I . ~/main.qml --desktop_file_hint=webbrowser-app

let it run for a while and then enter "q"+Enter

that will save a qtd file that you can load later with qtcreator in Analize->QML Profiler Options->Load QML Profile

Gerry Boland (gerboland)
Changed in qtubuntu-media (Ubuntu):
status: New → Confirmed
tags: added: performance
tags: added: kpi
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.