GNOME Bugzilla – Bug 728521
Profiling with uprof does not work when clutter_main() is not used
Last modified: 2014-04-18 22:07:03 UTC
This means any application using GApplication to run the main loop, say, won't print the uprof report upon termination.
Created attachment 274701 [details] [review] clutter-main: start mainloop timer on clutter_init() By creating and starting the timer on clutter_main() an assumption is made that that is how the main loop will be run for all clutter applications. With more and more applications moving to GApplication, this assumption no longer holds true. Moving to clutter_init() means we are starting the timer earlier than we should, and by not stopping it when the main loop quits we are taking a measure that is later than we should. I believe it is safe to consider those are close enough to the actual beginning and quitting of the main loop in practice.
Review of attachment 274701 [details] [review]: looks good to me. feel free to push it to the clutter-1.18 branch.
Comment on attachment 274701 [details] [review] clutter-main: start mainloop timer on clutter_init() Pushed to master as bfba8cd and to clutter-1.18 as d7b183a.