mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
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:
committed by
Søren Sandmann Pedersen
parent
3459f764d7
commit
f3b78b7944
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user