Need help understanding kcachedgrind output

I use valgrind callgrind to profile a gtk program. And then I use kcachedgrind to read the result. I recorded an update to the kcachedgrind screenshot here: http://i41.tinypic.com/168spk0.jpg . He said the gtk_moz_embed_new () function is worth '15 .61% '. But I do not understand how this is possible. The gtk_moz_embed_new () function literally has 1 line: and it just calls g_object_new ().

GtkWidget *
gtk_moz_embed_new(void)
{
  return GTK_WIDGET(g_object_new(GTK_TYPE_MOZ_EMBED, NULL));
}

Could you help to understand the result or how to use kcachedgrind.

Thank.

+3
source share
1 answer

, ( ), gtk_moz_embed_new() 15.61% , .

, ( ), . , gtk_moz_embed_new() acutally . , main() 99% , , .

, self gtk_moz_embed_new() 0, " ", , , ( )

:

1.1 "Incl". ""?

- . , ( "Self Cost" ) , ( " " ). "" "" .

, , main(), 100%, .

+7

Source: https://habr.com/ru/post/1744700/


All Articles