rendering.
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@72829
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
Font_Source *src;
void *ft;
Fash_Glyph2 *glyphs;
Font_Source *src;
void *ft;
Fash_Glyph2 *glyphs;
Eina_Inlist *caches;
Font_Cache *last_cache;
Eina_Bool unused : 1;
Eina_Inlist *caches;
Font_Cache *last_cache;
Eina_Bool unused : 1;
struct timeval load_start;
struct timeval load_finish;
int gl_load_time;
struct timeval load_start;
struct timeval load_finish;
int gl_load_time;
if (ge)
{
req->answer[req->nanswer++] = ge;
if (ge)
{
req->answer[req->nanswer++] = ge;
+#ifdef DEBUG_LOAD_TIME
+ // calculate average time saved when loading glyphs
+ fe->gl_saved_time +=
+ (fe->gl_load_time / fe->nglyphs);
+#endif
if (ge)
{
req->answer[req->nanswer++] = ge;
if (ge)
{
req->answer[req->nanswer++] = ge;
+
+#ifdef DEBUG_LOAD_TIME
+ // calculate average time saved when loading glyphs
+ fe->gl_saved_time +=
+ (fe->gl_load_time / fe->nglyphs);
+#endif
font_mem_usage += sizeof(*gl);
fc->glyphs = eina_inlist_append(fc->glyphs, EINA_INLIST_GET(gl));
fc->nglyphs++;
font_mem_usage += sizeof(*gl);
fc->glyphs = eina_inlist_append(fc->glyphs, EINA_INLIST_GET(gl));
fc->nglyphs++;
fash_gl_add(fe->glyphs, gl->index, gl);
req->answer[req->nanswer++] = gl;
gl->fc->inuse++;
fash_gl_add(fe->glyphs, gl->index, gl);
req->answer[req->nanswer++] = gl;
gl->fc->inuse++;
// accounting glyphs load time
msg->fonts.glyphs_load_time += fe->gl_load_time;
// accounting glyphs load time
msg->fonts.glyphs_load_time += fe->gl_load_time;
+ msg->fonts.glyphs_saved_time += fe->gl_saved_time;
printf("Fonts used load time: %dus\n", msg->fonts.fonts_used_load_time);
printf("Fonts used saved time: %dus\n", msg->fonts.fonts_used_saved_time);
printf("Glyphs load time: %dus\n", msg->fonts.glyphs_load_time);
printf("Fonts used load time: %dus\n", msg->fonts.fonts_used_load_time);
printf("Fonts used saved time: %dus\n", msg->fonts.fonts_used_saved_time);
printf("Glyphs load time: %dus\n", msg->fonts.glyphs_load_time);
+ printf("Glyphs saved time: %dus\n", msg->fonts.glyphs_saved_time);
* rendered */
int fonts_used_saved_time;
int glyphs_load_time; /* total time spent loading glyphs */
* rendered */
int fonts_used_saved_time;
int glyphs_load_time; /* total time spent loading glyphs */
+ int glyphs_saved_time; /* total time spent loading glyphs */
} fonts;
struct {
unsigned int files_loaded; /* number of file headers loaded */
} fonts;
struct {
unsigned int files_loaded; /* number of file headers loaded */