Commit c3cd7ac8 authored by mellum's avatar mellum

Add profiling support.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@710 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent aa860096
...@@ -23,6 +23,9 @@ ...@@ -23,6 +23,9 @@
*/ */
#include "regdef.h" #include "regdef.h"
#ifdef HAVE_AV_CONFIG_H
#include "config.h"
#endif
/* Some nicer register names. */ /* Some nicer register names. */
#define ta t10 #define ta t10
...@@ -51,6 +54,11 @@ put_pixels_clamped_mvi_asm: ...@@ -51,6 +54,11 @@ put_pixels_clamped_mvi_asm:
.frame sp, 0, ra .frame sp, 0, ra
.prologue 0 .prologue 0
#ifdef HAVE_GPROF
lda AT, _mcount
jsr AT, (AT), _mcount
#endif
lda t8, -1 lda t8, -1
lda t9, 8 # loop counter lda t9, 8 # loop counter
zap t8, 0xaa, t8 # 00ff00ff00ff00ff zap t8, 0xaa, t8 # 00ff00ff00ff00ff
...@@ -101,6 +109,11 @@ add_pixels_clamped_mvi_asm: ...@@ -101,6 +109,11 @@ add_pixels_clamped_mvi_asm:
.frame sp, 0, ra .frame sp, 0, ra
.prologue 0 .prologue 0
#ifdef HAVE_GPROF
lda AT, _mcount
jsr AT, (AT), _mcount
#endif
lda t1, -1 lda t1, -1
lda th, 8 lda th, 8
zap t1, 0x33, tg zap t1, 0x33, tg
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment