[Yum-devel] Yum speed

Tambet Ingo tambet at ximian.com
Fri Aug 25 12:46:34 UTC 2006


On Fri, 2006-08-25 at 08:20 -0400, seth vidal wrote:
> Can anyone else think of any obvious places where looking might be
> useful?

python /usr/lib/python2.4/profile.py -o yum.out `which yum` check-update

will create yum.out file in the local directory. To read the results
from that file, use something like:

import pstats
p = pstats.Stats("yum.out")
p.sort_stats('cumulative').print_stats(50)

This will print the 50 functions which take the longest to run.

Tambet




More information about the Yum-devel mailing list