Using strace I wanted to make up some statistics how many files pidgin loads during a 5 second startup time. Using grep and regexes the following is shown:
Attempts to a open file: 2886
Failed Attempts: 1457
Opened(non-failed) for read-only: 1407
Opened(non-failed) for read-only without those from /var/cache: 1371
Shared libraries: 213
PNG-images: 90
ICON-images: 164
Using OProfile and GProf2Dot I finally made a callgraph for the first 5 seocnds of a Pidgin startup with a simple Yahoo Messenger Account configured(No I’m not a YIM supporter, this was just the account I used for testing, all my other accounts are to busy to log in/off every 10 seconds(my friends would all get annoyed ;-)) This graph shows directly that time is spend in calling do_lookup_x in ld-2.7.so whichs source is in most cases dlopen_doit.
