stick in some output giving:

1. date + time you ran (or finished) the test
2. version of evas used
3. profile requested
4. actual window resolution you got
5. loop count used
6. engine used
7. fullscreen flag requested

now the results at least can be tracked over time knowing what you ran
the results on 3 months ago etc. :)



SVN revision: 50876
This commit is contained in:
Carsten Haitzler 2010-08-07 00:19:12 +00:00
parent b76ead2616
commit ffbbc1f8b7
2 changed files with 36 additions and 2 deletions

View File

@ -1,7 +1,9 @@
#include "main.h"
Evas *evas = NULL;
const char *profile = "n800";
int win_w = 720, win_h = 420;
const char *engine = NULL;
int loops = LOOPS;
int fullscreen = 0;
@ -1318,6 +1320,7 @@ _engine_args(int argc, char **argv)
for (j = 0; engines[j].name != NULL; ++j)
if (!strcmp(argv[i], engines[j].name))
{
engine = engines[j].name;
if (engines[j].init(engines[j].name, win_w, win_h))
{
loop_func = engines[j].loop;

View File

@ -143,6 +143,12 @@ _ui_exit(void)
engine_abort();
}
extern const char *profile;
extern int win_w, win_h;
extern const char *engine;
extern int loops;
extern int fullscreen;
static void
_ui_all(void)
{
@ -190,11 +196,36 @@ _ui_all(void)
}
for (i = 1; i < ((sizeof(weights) / sizeof(double)) - 1); i++)
avgw += weights[i];
avgw /= (i - 1);
avgw /= (i - 1);
if (t_count > 0)
{
char datestr[1024];
struct tm *tim;
time_t now;
now = time(NULL);
tim = localtime(&now);
if (tim) strftime(datestr, sizeof(datestr), "%F %T", tim);
else snprintf(datestr, sizeof(datestr), "unknown");
// printf("%5.2f , EVAS SPEED\n", fps / t_count);
printf("%5.2f , EVAS SPEED (WEIGHTED)\n", wfps / (t_count * avgw));
printf("%5.2f , EVAS SPEED (WEIGHTED), "
"t, %s , "
"ev , %i.%i.%i.%i , "
"p , %s , "
"sz , %i , %i , "
"c , %i , "
"e , %s , "
"fs , %i\n"
,
wfps / (t_count * avgw),
datestr,
evas_version->major, evas_version->minor, evas_version->micro, evas_version->revision,
profile,
win_w, win_h,
loops,
engine,
fullscreen
);
}
}