#include <mmsperf.h>
Public Member Functions | |
| MMSPerf () | |
| ~MMSPerf () | |
| void | startMeasuring (struct timeval *perf_stime) |
| void | stopMeasuringFillRectangle (struct timeval *perf_stime, MMSFBSurface *surface, int w, int h) |
| void | stopMeasuringDrawLine (struct timeval *perf_stime, MMSFBSurface *surface, int pixels) |
| void | stopMeasuringDrawString (struct timeval *perf_stime, MMSFBSurface *surface, int w, int h) |
| void | stopMeasuringBlit (struct timeval *perf_stime, MMSFBSurface *surface, MMSFBSurfacePixelFormat src_pixelformat, int sw, int sh) |
| void | stopMeasuringStretchBlit (struct timeval *perf_stime, MMSFBSurface *surface, MMSFBSurfacePixelFormat src_pixelformat, int sw, int sh, int dw, int dh) |
| void | stopMeasuringXShmPutImage (struct timeval *perf_stime, MMSFBSurface *surface, int sw, int sh) |
| void | stopMeasuringXvShmPutImage (struct timeval *perf_stime, MMSFBSurface *surface, int sw, int sh, int dw, int dh) |
| void | stopMeasuringVSync (struct timeval *perf_stime, MMSFBSurface *surface) |
| void | stopMeasuringSwapDisplay (struct timeval *perf_stime, MMSFBSurface *surface) |
Private Member Functions | |
| void | lock () |
| void | unlock () |
| void | reset () |
| reset statistic infos | |
| unsigned int | getDuration () |
| void | addMeasuringVals (MMSFBPERF_MEASURING_VALS *summary, MMSFBPERF_MEASURING_VALS *add_sum) |
| void | addMeasuringVals (MMSFBPERF_MEASURING_VALS_VKEY *summary, MMSFBPERF_MEASURING_VALS_VKEY *add_sum) |
| int | getPerfVals (MMSFBPERF_MEASURING_LIST *mlist, const char *prefix, char *retbuf, int retbuf_size, MMSFBPERF_MEASURING_VALS *summary) |
| int | getPerfVals (MMSFBPERF_MEASURING_LIST_VKEY *mlist, char *retbuf, int retbuf_size, MMSFBPERF_MEASURING_VALS_VKEY *summary) |
| void | stopMeasuring (struct timeval *perf_stime, MMSFBPERF_MEASURING_VALS *mvals, int sw=0, int sh=0, int dw=0, int dh=0) |
| void | stopMeasuring (struct timeval *perf_stime, MMSFBPERF_MEASURING_VALS_VKEY *mvals) |
Static Private Attributes | |
| static bool | initialized = false |
| already initialized? | |
| static MMSMutex | lockme |
| make it thread-safe | |
| static struct timeval | start_time |
| start of measuring | |
| static MMSFBPERF_MEASURING_LIST | fillrect |
| statistic for fill rectangle routines | |
| static MMSFBPERF_MEASURING_LIST | drawline |
| statistic for draw line routines | |
| static MMSFBPERF_MEASURING_LIST | drawstring |
| statistic for draw string routines | |
| static MMSFBPERF_MEASURING_LIST | blit |
| statistic for blitting routines | |
| static MMSFBPERF_MEASURING_LIST | stretchblit |
| statistic for stretchblit routines | |
| static MMSFBPERF_MEASURING_LIST | xshmputimage |
| statistic for xshmputimage routines | |
| static MMSFBPERF_MEASURING_LIST | xvshmputimage |
| statistic for xvshmputimage routines | |
| static MMSFBPERF_MEASURING_LIST | vsync |
| statistic for vsync routines | |
| static MMSFBPERF_MEASURING_LIST | swapdisplay |
| statistic for swapdisplay routines | |
| static MMSFBPERF_MEASURING_LIST_VKEY | vkey |
| statistic for vkey routines | |
Friends | |
| class | MMSPerfInterface |
Definition at line 66 of file mmsperf.h.
| MMSPerf::MMSPerf | ( | ) |
Definition at line 54 of file mmsperf.cpp.
| MMSPerf::~MMSPerf | ( | ) |
Definition at line 62 of file mmsperf.cpp.
| void MMSPerf::lock | ( | ) | [private] |
Definition at line 65 of file mmsperf.cpp.
| void MMSPerf::unlock | ( | ) | [private] |
Definition at line 69 of file mmsperf.cpp.
| void MMSPerf::reset | ( | ) | [private] |
| unsigned int MMSPerf::getDuration | ( | ) | [private] |
Definition at line 90 of file mmsperf.cpp.
| void MMSPerf::addMeasuringVals | ( | MMSFBPERF_MEASURING_VALS * | summary, | |
| MMSFBPERF_MEASURING_VALS * | add_sum | |||
| ) | [private] |
Definition at line 104 of file mmsperf.cpp.
| void MMSPerf::addMeasuringVals | ( | MMSFBPERF_MEASURING_VALS_VKEY * | summary, | |
| MMSFBPERF_MEASURING_VALS_VKEY * | add_sum | |||
| ) | [private] |
Definition at line 124 of file mmsperf.cpp.
| int MMSPerf::getPerfVals | ( | MMSFBPERF_MEASURING_LIST * | mlist, | |
| const char * | prefix, | |||
| char * | retbuf, | |||
| int | retbuf_size, | |||
| MMSFBPERF_MEASURING_VALS * | summary | |||
| ) | [private] |
Definition at line 130 of file mmsperf.cpp.
| int MMSPerf::getPerfVals | ( | MMSFBPERF_MEASURING_LIST_VKEY * | mlist, | |
| char * | retbuf, | |||
| int | retbuf_size, | |||
| MMSFBPERF_MEASURING_VALS_VKEY * | summary | |||
| ) | [private] |
Definition at line 203 of file mmsperf.cpp.
| void MMSPerf::stopMeasuring | ( | struct timeval * | perf_stime, | |
| MMSFBPERF_MEASURING_VALS * | mvals, | |||
| int | sw = 0, |
|||
| int | sh = 0, |
|||
| int | dw = 0, |
|||
| int | dh = 0 | |||
| ) | [private] |
Definition at line 275 of file mmsperf.cpp.
| void MMSPerf::stopMeasuring | ( | struct timeval * | perf_stime, | |
| MMSFBPERF_MEASURING_VALS_VKEY * | mvals | |||
| ) | [private] |
Definition at line 310 of file mmsperf.cpp.
| void MMSPerf::startMeasuring | ( | struct timeval * | perf_stime | ) |
Definition at line 331 of file mmsperf.cpp.
| void MMSPerf::stopMeasuringFillRectangle | ( | struct timeval * | perf_stime, | |
| MMSFBSurface * | surface, | |||
| int | w, | |||
| int | h | |||
| ) |
Definition at line 336 of file mmsperf.cpp.
| void MMSPerf::stopMeasuringDrawLine | ( | struct timeval * | perf_stime, | |
| MMSFBSurface * | surface, | |||
| int | pixels | |||
| ) |
Definition at line 347 of file mmsperf.cpp.
| void MMSPerf::stopMeasuringDrawString | ( | struct timeval * | perf_stime, | |
| MMSFBSurface * | surface, | |||
| int | w, | |||
| int | h | |||
| ) |
Definition at line 358 of file mmsperf.cpp.
| void MMSPerf::stopMeasuringBlit | ( | struct timeval * | perf_stime, | |
| MMSFBSurface * | surface, | |||
| MMSFBSurfacePixelFormat | src_pixelformat, | |||
| int | sw, | |||
| int | sh | |||
| ) |
Definition at line 369 of file mmsperf.cpp.
| void MMSPerf::stopMeasuringStretchBlit | ( | struct timeval * | perf_stime, | |
| MMSFBSurface * | surface, | |||
| MMSFBSurfacePixelFormat | src_pixelformat, | |||
| int | sw, | |||
| int | sh, | |||
| int | dw, | |||
| int | dh | |||
| ) |
Definition at line 382 of file mmsperf.cpp.
| void MMSPerf::stopMeasuringXShmPutImage | ( | struct timeval * | perf_stime, | |
| MMSFBSurface * | surface, | |||
| int | sw, | |||
| int | sh | |||
| ) |
Definition at line 395 of file mmsperf.cpp.
| void MMSPerf::stopMeasuringXvShmPutImage | ( | struct timeval * | perf_stime, | |
| MMSFBSurface * | surface, | |||
| int | sw, | |||
| int | sh, | |||
| int | dw, | |||
| int | dh | |||
| ) |
Definition at line 406 of file mmsperf.cpp.
| void MMSPerf::stopMeasuringVSync | ( | struct timeval * | perf_stime, | |
| MMSFBSurface * | surface | |||
| ) |
Definition at line 417 of file mmsperf.cpp.
| void MMSPerf::stopMeasuringSwapDisplay | ( | struct timeval * | perf_stime, | |
| MMSFBSurface * | surface | |||
| ) |
Definition at line 427 of file mmsperf.cpp.
friend class MMSPerfInterface [friend] |
bool MMSPerf::initialized = false [static, private] |
MMSMutex MMSPerf::lockme [static, private] |
struct timeval MMSPerf::start_time [static, read, private] |
MMSFBPERF_MEASURING_LIST MMSPerf::fillrect [static, read, private] |
MMSFBPERF_MEASURING_LIST MMSPerf::drawline [static, private] |
MMSFBPERF_MEASURING_LIST MMSPerf::drawstring [static, private] |
MMSFBPERF_MEASURING_LIST MMSPerf::blit [static, private] |
MMSFBPERF_MEASURING_LIST MMSPerf::stretchblit [static, private] |
MMSFBPERF_MEASURING_LIST MMSPerf::xshmputimage [static, private] |
MMSFBPERF_MEASURING_LIST MMSPerf::xvshmputimage [static, private] |
MMSFBPERF_MEASURING_LIST MMSPerf::vsync [static, private] |
MMSFBPERF_MEASURING_LIST MMSPerf::swapdisplay [static, private] |
MMSFBPERF_MEASURING_LIST_VKEY MMSPerf::vkey [static, private] |