diff options
author | Stefan Kost <ensonic@users.sourceforge.net> | 2005-02-16 17:19:06 +0000 |
---|---|---|
committer | Stefan Kost <ensonic@users.sourceforge.net> | 2005-02-16 17:19:06 +0000 |
commit | f38a2c4ea7ed8c1dd4a1bde32d796a4088764a82 (patch) | |
tree | eec07f24959aa52fa61e7dd520dd0a0c93ab59b8 /docs/random | |
parent | 25b9d5e29212012458c32fe1e7bcf3d137ad4c29 (diff) |
added some thoughts about scheduler doing a little profiling on elements
Original commit message from CVS:
added some thoughts about scheduler doing a little profiling on elements
Diffstat (limited to 'docs/random')
-rw-r--r-- | docs/random/ensonic/profiling.txt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/docs/random/ensonic/profiling.txt b/docs/random/ensonic/profiling.txt new file mode 100644 index 000000000..d75e67d99 --- /dev/null +++ b/docs/random/ensonic/profiling.txt @@ -0,0 +1,26 @@ +$Id$ + +Could schedulers do a little profiling? + +* scheduler keeps a list of usecs the process function of each element was + running +* process functions are: loop, chain, get +* scheduler keeps a sum of all times +* each gst-element has a profile_percentage field + +* when going to play + * scheduler sets sum and all usecs in the list to 0 +* when handling an element + * remember old usecs t_old + * take time t1 + * call elements processing function + * take time t2 + * t_new=t2-t1 + * sum+=(t_new-t_old) + * profile_percentage=t_new/sum; + * should the percentage be averaged? + * profile_percentage=(profile_percentage+(t_new/sum))/2.0; + +* the profile_percentage shows how much CPU time the element uses in relation + to the whole pipeline + |