fix %pb when the height isnt given and it is in a viewport with a user font (so the...
[kugel-rb.git] / firmware / export / profile.h
blob18a6f8679fe4290b5def2349c53e5fd45125d491
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Profiling routines counts ticks and calls to each profiled function.
12 * Copyright (C) 2005 by Brandon Low
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation; either version 2
17 * of the License, or (at your option) any later version.
19 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20 * KIND, either express or implied.
21 ****************************************************************************/
23 #ifndef _SYS_PROFILE_H
24 #define _SYS_PROFILE_H
26 /* Initialize and start profiling */
27 void profstart(int current_thread)
28 NO_PROF_ATTR;
30 /* Clean up and write profile data */
31 void profstop (void)
32 NO_PROF_ATTR;
34 /* Called every time a thread stops, we check if it's our thread and store
35 * temporary timing data if it is */
36 void profile_thread_stopped(int current_thread)
37 NO_PROF_ATTR;
38 /* Called when a thread starts, we check if it's our thread and resume timing */
39 void profile_thread_started(int current_thread)
40 NO_PROF_ATTR;
42 void __cyg_profile_func_exit(void *this_fn, void *call_site)
43 NO_PROF_ATTR ICODE_ATTR;
44 void __cyg_profile_func_enter(void *this_fn, void *call_site)
45 NO_PROF_ATTR ICODE_ATTR;
47 #endif /*_SYS_PROFILE_H*/