Hi , As the first part of my patch, I profiled the search example given in xapian-core/examples by changing the weighting scheme to InL2Weight. Surprisingly, get_sumpart() only used 0.01% of the time .:) I have attached the screenshorts of various kinds of information I gathered including :- -> Drilling down to the line level of any function in a particular source file. -> Getting a list of all functions which call a given function. -> Getting a nice call graph which shows which function gets called by whom, how many times it gets called and the percentage of time spent executing it. -> Also, you can group the profiled output by source file level, function level etc. -> I have obtained information about the various functions of InL2 such as clone(), init(),get_sumpart() etc. Please do let me know if more clarifications or detail is required. As the second part of my patch, I'll send in a sample timed weighting test along with a graph drawn by matplotlib. -Regards -Aarsh -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20140327/57dafa73/attachment-0002.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: inl2_clone.png Type: image/png Size: 191312 bytes Desc: not available URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20140327/57dafa73/attachment-0008.png> -------------- next part -------------- A non-text attachment was scrubbed... Name: inl2_getsumpart.png Type: image/png Size: 154866 bytes Desc: not available URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20140327/57dafa73/attachment-0009.png> -------------- next part -------------- A non-text attachment was scrubbed... Name: inl2_init.png Type: image/png Size: 176460 bytes Desc: not available URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20140327/57dafa73/attachment-0010.png> -------------- next part -------------- A non-text attachment was scrubbed... Name: inl2_sumpart_caller.png Type: image/png Size: 147215 bytes Desc: not available URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20140327/57dafa73/attachment-0011.png>