[MPlayer-dev-eng] Code Profiling

Alex Beregszaszi alex at naxine.org
Fri Jan 4 20:01:06 CET 2002


On Fri, Jan 04, 2002 at 11:58:31AM -0700, Mike Melanson wrote:
> Hi team,
> 	So I want to try my hand at a few minor SIMD optimizations.
> Nothing serious, I'd just like to get a little practice. I'm thinking that
> the development cycle would look like this:
>   1) identify candidate piece of C code
>   2) profile C code on a large set of data
>   3) optimize code with SIMD instructions
>   4) profile new code on same large set of data and compare times
> So my question is: What's the best way to profile the code? I'm thinking
> that it will be necessary to run a routine over a large data set in order
> to get noticeable times. But what facilities should I use in order to
> figure out how long a piece of code takes?

Use general (x86 only) functions from my_profile.c

> 
> --
> 	-Mike Melanson
> 
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng



More information about the MPlayer-dev-eng mailing list