How use scalene for memory profiling in a django app

259 Views Asked by At

I am trying to find memory leak inside my django app but couldn't find a way in official docs of scalene or somewhere else about how can i use it with django.

so far i have tried running runserver command like below

$ scalene manage.py runserver

and after that when i execute my regular view ( which i want to profile ). nothing happens.
when i press ctrl + c it stops the runserver command & created a file profile.html ( around 25 MB size )

i open that file in chrome but it shows some benchmarks ( like expected ) but nowhere i saw my django view code which i want to profile.

I just tried searching every where but couldn't find a way.

0

There are 0 best solutions below