[Xapian-devel] Profiling InL2Weight and it's output

Aarsh Shah aarshkshah1992 at gmail.com
Wed Mar 26 19:53:42 GMT 2014


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-0001.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-0004.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-0005.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-0006.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-0007.png>


More information about the Xapian-devel mailing list