ਡੀਬੱਗਿੰਗ ਅਤੇ ਪ੍ਰੋਫਾਈਲਿੰਗ¶
ਇਹ ਲਾਇਬ੍ਰੇਰੀਆਂ ਪਾਈਥਨ ਵਿਕਾਸ ਵਿੱਚ ਤੁਹਾਡੀ ਮਦਦ ਕਰਦੀਆਂ ਹਨ। ਡੀਬੱਗਰ ਤੁਹਾਨੂੰ ਕੋਡ ਨੂੰ ਕਦਮ-ਦਰ-ਕਦਮ ਚਲਾਉਣ, ਸਟੈਕ ਫ੍ਰੇਮਾਂ ਦਾ ਵਿਸ਼ਲੇਸ਼ਣ ਕਰਨ ਅਤੇ ਬ੍ਰੇਕਪੌਇੰਟ ਆਦਿ ਸੈੱਟ ਕਰਨ ਦੀ ਸਹੂਲਤ ਦਿੰਦਾ ਹੈ, ਜਦਕਿ ਪ੍ਰੋਫਾਈਲਰ ਕੋਡ ਚਲਾ ਕੇ ਚਲਾਉਣ ਦੇ ਸਮੇਂ ਦਾ ਵਿਸਤ੍ਰਿਤ ਵਿਸ਼ਲੇਸ਼ਣ ਪ੍ਰਦਾਨ ਕਰਦੇ ਹਨ, ਜਿਸ ਨਾਲ ਤੁਸੀਂ ਆਪਣੇ ਪ੍ਰੋਗਰਾਮਾਂ ਵਿੱਚ ਕਾਰਗੁਜ਼ਾਰੀ ਦੀਆਂ ਰੁਕਾਵਟਾਂ ਦੀ ਪਛਾਣ ਕਰ ਸਕਦੇ ਹੋ। ਆਡਿਟਿੰਗ ਇਵੈਂਟ ਰਨਟਾਈਮ ਦੌਰਾਨ ਹੋਣ ਵਾਲੇ ਵਿਹਾਰਾਂ ਬਾਰੇ ਜਾਣਕਾਰੀ ਪ੍ਰਦਾਨ ਕਰਦੇ ਹਨ, ਜਿਨ੍ਹਾਂ ਨੂੰ ਨਹੀਂ ਤਾਂ ਦਖਲਅੰਦਾਜ਼ੀ ਵਾਲੀ ਡੀਬੱਗਿੰਗ ਜਾਂ ਪੈਚਿੰਗ ਤੋਂ ਬਿਨਾਂ ਦੇਖਣਾ ਮੁਸ਼ਕਲ ਹੁੰਦਾ ਹੈ।
- Audit events table
bdb--- Debugger frameworkfaulthandler--- Dump the Python tracebackpdb--- The Python Debuggerprofiling--- Python profilers- Introduction to profiling
- Choosing a profiler
- Quick start
- Understanding profile output
- Legacy compatibility
pstats--- Statistics for profilerstimeit--- Measure execution time of small code snippetstrace--- Trace or track Python statement executiontracemalloc--- Trace memory allocations