[katello-devel] Easy profiling setup
Lukas Zapletal
lzap at redhat.com
Tue Dec 13 15:58:38 UTC 2011
Hey,
was curious why Ruby takes so much CPU while importing a big manifest. I
tried this very easy approach to see some profiling information:
rails profiler 'User.current = User.find(1); \
Provider.find(1).import_manifest "/root/manifest.zip"'
And it did not point out on a particular flaw in our codebase. It's just
slow.
https://fedorahosted.org/katello/wiki/Profiling
But the command could be useful for you, so sharing.
LZ
--
Later,
Lukas Zapletal | E32E400A
RHN Satellite Engineering
Red Hat Czech s.r.o. Brno
More information about the katello-devel
mailing list