X-Git-Url: http://sraa.de/git/?a=blobdiff_plain;f=dol%2Fsrc%2Fdol%2Fvisitor%2Fcell%2Flib%2Festimation.h;fp=dol%2Fsrc%2Fdol%2Fvisitor%2Fcell%2Flib%2Festimation.h;h=eb1570a168dece86d98f9c4b697b624b03d0c4f1;hb=8c411cf24ed0eb889191aaeafd8fa1e69081df42;hp=0000000000000000000000000000000000000000;hpb=dea7a4fb1ed110d3ce6e6d9255103d724bd66c0e;p=jump.git diff --git a/dol/src/dol/visitor/cell/lib/estimation.h b/dol/src/dol/visitor/cell/lib/estimation.h new file mode 100644 index 0000000..eb1570a --- /dev/null +++ b/dol/src/dol/visitor/cell/lib/estimation.h @@ -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