Browse code

Remove --enable-gprof flag

gprof is far too intrusive to be of use as a profile for ffmpeg,
and it fails to build in many configurations. Oprofile is a
better tool for profiling on Linux.

Originally committed as revision 23807 to svn://svn.ffmpeg.org/ffmpeg/trunk

Måns Rullgård authored on 2010/06/27 07:23:29
Showing 3 changed files
... ...
@@ -237,7 +237,6 @@ Advanced options (experts only):
237 237
 Developer options (useful when working on FFmpeg itself):
238 238
   --disable-debug          disable debugging symbols
239 239
   --enable-debug=LEVEL     set the debug level [$debuglevel]
240
-  --enable-gprof           enable profiling with gprof [$gprof]
241 240
   --disable-optimizations  disable compiler optimizations
242 241
   --enable-extra-warnings  enable more compiler warnings
243 242
   --disable-stripping      disable stripping of executables and shared libraries
... ...
@@ -857,7 +856,6 @@ CONFIG_LIST="
857 857
     fft
858 858
     golomb
859 859
     gpl
860
-    gprof
861 860
     gray
862 861
     h264dsp
863 862
     hardcoded_tables
... ...
@@ -2714,11 +2712,6 @@ elif enabled tms470; then
2714 2714
     add_cflags -pds=824 -pds=837
2715 2715
 fi
2716 2716
 
2717
-if enabled gprof; then
2718
-    add_cflags  -p
2719
-    add_ldflags -p
2720
-fi
2721
-
2722 2717
 enabled_any $THREADS_LIST      && enable threads
2723 2718
 
2724 2719
 check_deps $CONFIG_LIST       \
... ...
@@ -2784,7 +2777,6 @@ fi
2784 2784
 if enabled sparc; then
2785 2785
     echo "VIS enabled               ${vis-no}"
2786 2786
 fi
2787
-echo "gprof enabled             ${gprof-no}"
2788 2787
 echo "debug symbols             ${debug-no}"
2789 2788
 echo "strip symbols             ${stripping-no}"
2790 2789
 echo "optimizations             ${optimizations-no}"
... ...
@@ -53,11 +53,6 @@ put_pixels_axp_asm:
53 53
         .frame sp, 0, ra
54 54
         .prologue 0
55 55
 
56
-#if CONFIG_GPROF
57
-        lda     AT, _mcount
58
-        jsr     AT, (AT), _mcount
59
-#endif
60
-
61 56
         and     a1, 7, t0
62 57
         beq     t0, $aligned
63 58
 
... ...
@@ -150,11 +145,6 @@ put_pixels_clamped_mvi_asm:
150 150
         .frame sp, 0, ra
151 151
         .prologue 0
152 152
 
153
-#if CONFIG_GPROF
154
-        lda     AT, _mcount
155
-        jsr     AT, (AT), _mcount
156
-#endif
157
-
158 153
         lda     t8, -1
159 154
         lda     t9, 8           # loop counter
160 155
         zap     t8, 0xaa, t8    # 00ff00ff00ff00ff
... ...
@@ -205,11 +195,6 @@ add_pixels_clamped_mvi_asm:
205 205
         .frame sp, 0, ra
206 206
         .prologue 0
207 207
 
208
-#if CONFIG_GPROF
209
-        lda     AT, _mcount
210
-        jsr     AT, (AT), _mcount
211
-#endif
212
-
213 208
         lda     t1, -1
214 209
         lda     th, 8
215 210
         zap     t1, 0x33, tg
... ...
@@ -55,11 +55,6 @@ pix_abs16x16_mvi_asm:
55 55
         .frame sp, 0, ra, 0
56 56
         .prologue 0
57 57
 
58
-#if CONFIG_GPROF
59
-        lda     AT, _mcount
60
-        jsr     AT, (AT), _mcount
61
-#endif
62
-
63 58
         and     a2, 7, t0
64 59
         clr     v0
65 60
         beq     t0, $aligned