diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-03-14 01:48:36 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-03-14 01:48:39 +0100 |
commit | a4369dbb8fdae63cdfad6f4e3cc41c0f457f6027 (patch) | |
tree | 7126103df7bd618676de1b4feed8b28d06cc517c /libavcodec | |
parent | 2b02c1a698e3b18cfa33becca882173e212ae5da (diff) | |
parent | 1e33095b83addd8d24bc16bd08aa734fa161d515 (diff) | |
download | ffmpeg-a4369dbb8fdae63cdfad6f4e3cc41c0f457f6027.tar.gz |
Merge commit '1e33095b83addd8d24bc16bd08aa734fa161d515'
* commit '1e33095b83addd8d24bc16bd08aa734fa161d515':
bfin: dsputil: Drop broken and trivial profiling code
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/bfin/dsputil_bfin.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/libavcodec/bfin/dsputil_bfin.h b/libavcodec/bfin/dsputil_bfin.h index 079ebdda6b..011fafedd8 100644 --- a/libavcodec/bfin/dsputil_bfin.h +++ b/libavcodec/bfin/dsputil_bfin.h @@ -52,44 +52,4 @@ int ff_bfin_sse4 (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) int ff_bfin_sse8 (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) attribute_l1_text; int ff_bfin_sse16 (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) attribute_l1_text; - -#ifdef BFIN_PROFILE - -static double Telem[16]; -static char *TelemNames[16]; -static int TelemCnt; - -#define PROF(lab,e) { int xx_e = e; char*xx_lab = lab; uint64_t xx_t0 = read_time(); -#define EPROF() xx_t0 = read_time()-xx_t0; Telem[xx_e] = Telem[xx_e] + xx_t0; TelemNames[xx_e] = xx_lab; } - -static void prof_report (void) -{ - int i; - double s = 0; - for (i=0;i<16;i++) { - double v; - if (TelemNames[i]) { - v = Telem[i]/TelemCnt; - av_log (NULL,AV_LOG_DEBUG,"%-20s: %12.4f\t%12.4f\n", TelemNames[i],v,v/64); - s = s + Telem[i]; - } - } - av_log (NULL,AV_LOG_DEBUG,"%-20s: %12.4f\t%12.4f\n%20.4f\t%d\n", - "total",s/TelemCnt,s/TelemCnt/64,s,TelemCnt); -} - -static void bfprof (void) -{ - static int init; - if (!init) atexit (prof_report); - init=1; - TelemCnt++; -} - -#else -#define PROF(a,b) -#define EPROF() -#define bfprof() -#endif - #endif /* AVCODEC_BFIN_DSPUTIL_BFIN_H */ |