diff options
author | Brandon Low <lostlogic@rockbox.org> | 2006-01-18 20:54:13 +0000 |
---|---|---|
committer | Brandon Low <lostlogic@rockbox.org> | 2006-01-18 20:54:13 +0000 |
commit | 05dccc355144dc717b3cb9ef0074a9ab38a520f4 (patch) | |
tree | 0a36425cf1321817480a82ed05564a2790e2fca9 /apps/codecs/lib/codeclib.c | |
parent | 1060e447f83128a78dfaa8d59ba0baa642d15a4d (diff) |
Profiling support, tools and documentation.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8375 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/lib/codeclib.c')
-rw-r--r-- | apps/codecs/lib/codeclib.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/codecs/lib/codeclib.c b/apps/codecs/lib/codeclib.c index cad8f53deb..1f070e8eac 100644 --- a/apps/codecs/lib/codeclib.c +++ b/apps/codecs/lib/codeclib.c @@ -149,3 +149,14 @@ void qsort(void *base, size_t nmemb, size_t size, { local_rb->qsort(base,nmemb,size,compar); } + +#ifdef RB_PROFILE +void __cyg_profile_func_enter(void *this_fn, void *call_site) { + (void)call_site; + local_rb->profile_func_enter(this_fn, __builtin_return_address(1)); +} + +void __cyg_profile_func_exit(void *this_fn, void *call_site) { + local_rb->profile_func_exit(this_fn,call_site); +} +#endif |