changeset 510:ccd90a9cc09b libavcodec

Add profiling support.
author mellum
date Mon, 01 Jul 2002 23:02:36 +0000
parents cab79946302f
children fa4425cf6b31
files alpha/dsputil_alpha_asm.S
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/alpha/dsputil_alpha_asm.S	Mon Jul 01 04:26:07 2002 +0000
+++ b/alpha/dsputil_alpha_asm.S	Mon Jul 01 23:02:36 2002 +0000
@@ -23,6 +23,9 @@
  */
 
 #include "regdef.h"
+#ifdef HAVE_AV_CONFIG_H	
+#include "config.h"
+#endif
 
 /* Some nicer register names.  */
 #define ta t10
@@ -51,6 +54,11 @@
         .frame sp, 0, ra
         .prologue 0
 
+#ifdef HAVE_GPROF
+        lda     AT, _mcount
+        jsr     AT, (AT), _mcount
+#endif
+
         lda     t8, -1
         lda     t9, 8           # loop counter
         zap     t8, 0xaa, t8    # 00ff00ff00ff00ff
@@ -101,6 +109,11 @@
         .frame sp, 0, ra
         .prologue 0
 
+#ifdef HAVE_GPROF
+        lda     AT, _mcount
+        jsr     AT, (AT), _mcount
+#endif
+
         lda     t1, -1
         lda     th, 8
         zap     t1, 0x33, tg