3 Could schedulers do a little profiling?
5 * scheduler keeps a list of usecs the process function of each element was
7 * process functions are: loop, chain, get
8 * scheduler keeps a sum of all times
9 * each gst-element has a profile_percentage field
12 * scheduler sets sum and all usecs in the list to 0
13 * when handling an element
14 * remember old usecs t_old
16 * call elements processing function
20 * profile_percentage=t_new/sum;
21 * should the percentage be averaged?
22 * profile_percentage=(profile_percentage+(t_new/sum))/2.0;
24 * the profile_percentage shows how much CPU time the element uses in relation