dol: initial dol commit
[jump.git] / dol / src / dol / visitor / cell / lib / estimation.h
1 /**************************************************************** 
2  *      Estimation Defintions
3  *      Creator: lschor, 2008-11-15
4  *      Description: File with includes for time measurements
5  *  Principle: if 1 then this point will be measured, if 0 then this point will not be measured
6  *      
7  *      Revision: 
8  *      - 2008-11-15: Created
9  */
10
11 // 
12 #ifndef __ESTIMATION_H__
13 #define __ESTIMATION_H__
14
15 // What to measure?
16 //#define               MEASURE                                                 0       // Measure activeted
17
18 #ifdef MEASURE
19         //#define       MEASURE_DOL_READ                        0       // Measure DOL READ
20         //#define       MEASURE_DOL_READ_FINISH         0       // Measure FINISH DOL Read
21         //#define               MEASURE_DOL_READ_START_DMA      0       // Measure Time from start until the DMA process has started
22         //#define               MEASURE_DOL_READ_HANDSHAKE      0       // Measure Time of the whole handshake
23         //#define               MEASURE_DOL_READ_DMA            0       // Measure Time of DMA Setup
24         //#define               MEASURE_DOL_READ_LOCBUF         0       // Measure Time for LocBuf read
25         //#define               MEASURE_DOL_READ_DOUBLEBUF      0       // Measure Time for writing into the buffer
26
27         //#define       MEASURE_DOL_WRITE                       0       // Measure DOL WRITE
28         //#define       MEASURE_DOL_WRITE_FINISH        0       // Measure FINISH DOL Write
29         //#define               MEASURE_DOL_WRITE_START_DMA     0       // Measure Time from start until the DMA process has started
30         //#define               MEASURE_DOL_WRITE_HANDSHAKE     0       // Measure Time of the whole handshake
31         //#define               MEASURE_DOL_WRITE_DMA           0       // Measure Time of DMA Setup
32
33         //#define       MEASURE_DOL_FIRE                        0       // Measure DOL FIRE
34         //#define       MEASURE_DOL_INIT                        0       // Measure DOL INIT
35         //#define       MEASURE_SPE                                     0       // Measure whole SPE process
36
37         //#define       MEASURE_APPLICATION                     0       // Measure whole execution time
38         //#define       MEASURE_SET_UP_SPE_THREAD       0       // Measure time to set up the SPE-threads
39         //#define       MEASURE_SPE_WRITE_DEMAND        0       // Measure time of write demand
40         //#define       MEASURE_SPE_READ_DEMAND         0       // Measure time of read demand
41         //#define       MEASURE_SPE_WRITE_SUC           0       // Measure time of write successful
42         //#define       MEASURE_SPE_READ_SUC            0       // Measure time of read successful
43
44 #endif
45
46 // Some constants
47 #define         MEASURE_START                                   0xFFFFFFFF      // Start decrementer at this value
48 #define         MEASURE_CPU                                             79800000.0      // Timebase PS3 (in Hz)
49
50 #endif