1 Reply Latest reply on Jun 1, 2015 8:27 AM by Intel_Peter

    Profiling Python on Edison


      Anyone knows how to install cProfile or Profile on Edison?

      I prefer cProfile since the minor overhead, but anything better than time.clock() is appreciated.


        • 1. Re: Profiling Python on Edison

          Hello simonepontz,


          Actually you can get Profile from AlexT's repo. If you don't know how to download packages from the repo, it's pretty easy:


          type vi /etc/opkg/base-feeds.conf


          Copy the following lines and  then hit "i" on your Edison's console:


          src/gz all http://repo.opkg.net/edison/repo/all
          src/gz edison http://repo.opkg.net/edison/repo/edison
          src/gz core2-32 http://repo.opkg.net/edison/repo/core2-32


          Right click on the PuTTY scren to paste the lines and then hit the escape button and type ":x" to exit vi


          Now update the package list:


          opkg update


          Now you can install it


          opkg install python-profile


          I didn't find cProfile on the repo however I did test Profile with the example found in profile, cProfile, and pstats and it worked as expected.