Code optimization tools

I have builded an application in Jetson Xavier Nx using python. It requires Real Time Monitoring so I have created a frontend and database, This application runs continuously 24/7 so when I’m performing operations the system is getting hung up. Can anyone please suggest the for code optimization tools, and I have to find memory leaks in my code.

Framework : Django

Hi bharadwajinamahanthi,

You can find some tools to help you debug and monitor your system to fine tune the performance from:
NVIDIA Jetson Linux Driver Package Software Features : Applications and Tools | NVIDIA Docs