forked from enlightenment/efl
evas gl engines - remove TIMDBG code that is unused entirely
This commit is contained in:
parent
ffbda5add5
commit
601273522e
|
@ -1,12 +1,6 @@
|
||||||
#include "evas_common_private.h"
|
#include "evas_common_private.h"
|
||||||
#include "evas_gl_core_private.h"
|
#include "evas_gl_core_private.h"
|
||||||
|
|
||||||
//#define TIMDBG 1
|
|
||||||
#ifdef TIMDBG
|
|
||||||
# include <sys/time.h>
|
|
||||||
# include <unistd.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "software/Ector_Software.h"
|
#include "software/Ector_Software.h"
|
||||||
|
|
||||||
#include "ector_cairo_software_surface.eo.h"
|
#include "ector_cairo_software_surface.eo.h"
|
||||||
|
|
|
@ -1,12 +1,6 @@
|
||||||
#include "evas_common_private.h" /* Also includes international specific stuff */
|
#include "evas_common_private.h" /* Also includes international specific stuff */
|
||||||
#include "evas_engine.h"
|
#include "evas_engine.h"
|
||||||
|
|
||||||
//#define TIMDBG 1
|
|
||||||
#ifdef TIMDBG
|
|
||||||
# include <sys/time.h>
|
|
||||||
# include <unistd.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_DLSYM
|
#ifdef HAVE_DLSYM
|
||||||
# include <dlfcn.h> /* dlopen,dlclose,etc */
|
# include <dlfcn.h> /* dlopen,dlclose,etc */
|
||||||
#else
|
#else
|
||||||
|
@ -118,51 +112,6 @@ void (*glsym_glXReleaseBuffersMESA) (Display *a, XID b) = NULL;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef TIMDBG
|
|
||||||
static double
|
|
||||||
gettime(void)
|
|
||||||
{
|
|
||||||
struct timeval timev;
|
|
||||||
|
|
||||||
gettimeofday(&timev, NULL);
|
|
||||||
return (double)timev.tv_sec + (((double)timev.tv_usec) / 1000000);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
measure(int end, const char *name)
|
|
||||||
{
|
|
||||||
FILE *fs;
|
|
||||||
static unsigned long user = 0, kern = 0, user2 = 0, kern2 = 0;
|
|
||||||
static double t = 0.0, t2 = 0.0;
|
|
||||||
unsigned long u = 0, k = 0;
|
|
||||||
|
|
||||||
fs = fopen("/proc/self/stat", "rb");
|
|
||||||
if (fs) {
|
|
||||||
fscanf(fs, "%*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s "
|
|
||||||
"%lu %lu %*s", &u, &k);
|
|
||||||
fclose(fs);
|
|
||||||
}
|
|
||||||
if (end)
|
|
||||||
{
|
|
||||||
long hz;
|
|
||||||
|
|
||||||
t2 = gettime();
|
|
||||||
user2 = u;
|
|
||||||
kern2 = k;
|
|
||||||
hz = sysconf(_SC_CLK_TCK);
|
|
||||||
fprintf(stderr, "(%8lu %8lu) k=%4lu u=%4lu == tot=%4lu@%4li in=%3.5f < %s\n",
|
|
||||||
user, kern, kern2 - kern, user2 - user,
|
|
||||||
(kern2 - kern) + (user2 - user), hz, t2 - t, name);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
user = u;
|
|
||||||
kern = k;
|
|
||||||
t = gettime();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static inline Outbuf *
|
static inline Outbuf *
|
||||||
eng_get_ob(Render_Engine *re)
|
eng_get_ob(Render_Engine *re)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue