dol: initial dol commit
[jump.git] / dol / src / dol / visitor / cell / lib / estimation.h
diff --git a/dol/src/dol/visitor/cell/lib/estimation.h b/dol/src/dol/visitor/cell/lib/estimation.h
new file mode 100644 (file)
index 0000000..eb1570a
--- /dev/null
@@ -0,0 +1,50 @@
+/**************************************************************** 
+ *     Estimation Defintions
+ *     Creator: lschor, 2008-11-15
+ *     Description: File with includes for time measurements
+ *  Principle: if 1 then this point will be measured, if 0 then this point will not be measured
+ *     
+ *     Revision: 
+ *     - 2008-11-15: Created
+ */
+
+// 
+#ifndef __ESTIMATION_H__
+#define __ESTIMATION_H__
+
+// What to measure?
+//#define              MEASURE                                                 0       // Measure activeted
+
+#ifdef MEASURE
+       //#define       MEASURE_DOL_READ                        0       // Measure DOL READ
+       //#define       MEASURE_DOL_READ_FINISH         0       // Measure FINISH DOL Read
+       //#define               MEASURE_DOL_READ_START_DMA      0       // Measure Time from start until the DMA process has started
+       //#define               MEASURE_DOL_READ_HANDSHAKE      0       // Measure Time of the whole handshake
+       //#define               MEASURE_DOL_READ_DMA            0       // Measure Time of DMA Setup
+       //#define               MEASURE_DOL_READ_LOCBUF         0       // Measure Time for LocBuf read
+       //#define               MEASURE_DOL_READ_DOUBLEBUF      0       // Measure Time for writing into the buffer
+
+       //#define       MEASURE_DOL_WRITE                       0       // Measure DOL WRITE
+       //#define       MEASURE_DOL_WRITE_FINISH        0       // Measure FINISH DOL Write
+       //#define               MEASURE_DOL_WRITE_START_DMA     0       // Measure Time from start until the DMA process has started
+       //#define               MEASURE_DOL_WRITE_HANDSHAKE     0       // Measure Time of the whole handshake
+       //#define               MEASURE_DOL_WRITE_DMA           0       // Measure Time of DMA Setup
+
+       //#define       MEASURE_DOL_FIRE                        0       // Measure DOL FIRE
+       //#define       MEASURE_DOL_INIT                        0       // Measure DOL INIT
+       //#define       MEASURE_SPE                                     0       // Measure whole SPE process
+
+       //#define       MEASURE_APPLICATION                     0       // Measure whole execution time
+       //#define       MEASURE_SET_UP_SPE_THREAD       0       // Measure time to set up the SPE-threads
+       //#define       MEASURE_SPE_WRITE_DEMAND        0       // Measure time of write demand
+       //#define       MEASURE_SPE_READ_DEMAND         0       // Measure time of read demand
+       //#define       MEASURE_SPE_WRITE_SUC           0       // Measure time of write successful
+       //#define       MEASURE_SPE_READ_SUC            0       // Measure time of read successful
+
+#endif
+
+// Some constants
+#define        MEASURE_START                                   0xFFFFFFFF      // Start decrementer at this value
+#define                MEASURE_CPU                                             79800000.0      // Timebase PS3 (in Hz)
+
+#endif