Cache BinFiles by filename.

Sat Jul  9 23:20:39 2005  Soeren Sandmann  <sandmann@redhat.com>

	* binfile.c (bin_file_new): Cache BinFiles by filename.

	* stackstash.c (stack_stash_free): Plug leak

	* process.c (process_free_maps): Plug leak

	* module/Makefile (install): Check that depmod exists before
	running it.
This commit is contained in:
Soeren Sandmann
2005-07-10 03:28:35 +00:00
committed by Søren Sandmann Pedersen
parent 3459f764d7
commit f3b78b7944
8 changed files with 58 additions and 19 deletions

View File

@ -523,7 +523,7 @@ profile_new (StackStash *stash)
/* profile objects */
info.profile_objects = g_hash_table_new_full (g_str_hash, g_str_equal,
g_free, NULL);
stack_stash_foreach (stash, generate_object_table, &info);
stack_stash_foreach (stash, generate_call_tree, &info);
link_parents (info.profile->call_tree, NULL);
@ -531,7 +531,7 @@ profile_new (StackStash *stash)
g_hash_table_foreach (info.profile->nodes_by_object, compute_object_total, NULL);
g_hash_table_destroy (info.profile_objects);
return info.profile;
}