Develop and Download Open Source Software

Browse CVS Repository

Contents of /mame32jp/mame32jp/src/profiler.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.5 - (show annotations) (download) (as text)
Wed Apr 24 03:53:20 2002 UTC (21 years, 11 months ago) by zero
Branch: MAIN
CVS Tags: ver_0_60_1, ver0_59_13, ver0_59_14, ver0_60_2, ver0_60_3, ver0_60_4, ver0_60_5, HEAD
Changes since 1.4: +0 -0 lines
File MIME type: text/x-chdr
*** empty log message ***

1 #ifndef PROFILER_H
2 #define PROFILER_H
3
4 /* profiling */
5 enum {
6 PROFILER_END = -1,
7 PROFILER_CPU1 = 0,
8 PROFILER_CPU2,
9 PROFILER_CPU3,
10 PROFILER_CPU4,
11 PROFILER_CPU5,
12 PROFILER_CPU6,
13 PROFILER_CPU7,
14 PROFILER_CPU8,
15 PROFILER_MEMREAD,
16 PROFILER_MEMWRITE,
17 PROFILER_VIDEO,
18 PROFILER_DRAWGFX,
19 PROFILER_COPYBITMAP,
20 PROFILER_TILEMAP_DRAW,
21 PROFILER_TILEMAP_DRAW_ROZ,
22 PROFILER_TILEMAP_UPDATE,
23 PROFILER_BLIT,
24 PROFILER_SOUND,
25 PROFILER_MIXER,
26 PROFILER_TIMER_CALLBACK,
27 PROFILER_HISCORE, /* high score load can slow things down if incorrectly written */
28 PROFILER_INPUT, /* input.c and inptport.c */
29 PROFILER_EXTRA, /* everything else */
30
31 /* the USER types are available to driver writers to profile */
32 /* custom sections of the code */
33 PROFILER_USER1,
34 PROFILER_USER2,
35 PROFILER_USER3,
36 PROFILER_USER4,
37
38 PROFILER_PROFILER,
39 PROFILER_IDLE,
40 PROFILER_TOTAL
41 };
42
43
44 /*
45 To start profiling a certain section, e.g. video:
46 profiler_mark(PROFILER_VIDEO);
47
48 to end profiling the current section:
49 profiler_mark(PROFILER_END);
50
51 the profiler handles a FILO list so calls may be nested.
52 */
53
54 #ifdef MAME_DEBUG
55 #define profiler_mark(type) profiler__mark(type)
56 #else
57 #define profiler_mark(type)
58 #endif
59
60 void profiler__mark(int type);
61
62 /* functions called by usrintf.c */
63 void profiler_start(void);
64 void profiler_stop(void);
65 void profiler_show(struct mame_bitmap *bitmap);
66
67 #endif /* PROFILER_H */

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26