← Back to team overview

maas-devel team mailing list archive

Re: profiling maas tests

 

On 23/06/14 18:33, Raphaël Badin wrote:
> On 06/23/2014 07:54 AM, Julian Edwards wrote:
>> I tried to run our tests with --with-profile earlier to see why they are
>> so damn slow in places, and the whole test runner crapped out in a heap.
>>
>> Gavin, can you help please?  You seem to be a nosey expert :)
>>
> 
> I've had good results with nose-timer in the past.  It won't give you a
> full profiling output but it can help you identify the tests that take a
> long time to run.  See http://paste.ubuntu.com/7689317/ for how to use it.

Well what I am after is a deeper profile, so I can see what code is
getting called a lot.  I have a suspicion that a load of unnecessary
tasks are being called all the time.  I have an idea that we can
basically disable all task calls in the celery fixture and nothing will
notice.  Or if it does notice, it should be an easy workaround.


References