Python Code Testing using profilers
Submitted by Jackson Isaac (@jacksonisaac) on Wednesday, 9 December 2015
Technical level: Beginner Status: Submitted
This talk will cover about how we can profile python code using line_profiler and improve the code.
After this talk, the audience will have a clear view about code profiling, understanding it’s output and how can we improve our code and comparing the results.
The audience will learn about line_profiler, it’s use in Software Development and how it helps in making the software efficient by calculating the Time used by the modules and each instructions under them.
The talk will show how we can use line_profilers with Python by testing it live on a demo application written using pygtk and how to analyze the results and optimize the code.
Introduction to Python profilers. History of line_profiler How to install line_profiler, using pip and from source (for Mac users). Adding decorator to the code for profiling. Steps to run profiler and how to check the profiled output. Demo. Understanding the Output. Advantages of Profilers Q & A
Jackson Isaac is a Final year student pursuing B.Tech Computer Science Engineering from Amrita Vishwa Vidyapeetham, Kollam.
He successfully completed his GSoC 2015 with The MacPorts Project. He has contributed to open source projects namely GNOME-Music, Mozilla Firefox, Mozillians and Mediawiki-Vagrant.
He has been using python technologies like Clone-Digger and line_profiler in GNOME-Music and other small personal projects since 3 years. He has also presented a talk on the ‘Python3 Code profiling using Line_profiler’ at FUDCon 2015, Pune and ‘Contributing to GNOME-Music’ at FOSSMeet ‘14, NIT Calicut.