profiling

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
Turbinenreiter
Posts: 288
Joined: Sun May 04, 2014 8:54 am

profiling

Post by Turbinenreiter » Fri Oct 03, 2014 4:13 pm

I started writing a simple profiler:
https://github.com/turbinenreiter/micropython-uprofile

Before I did that, I looked into porting 'profile' from Cpython, which is a profiler written in python. However, it relies on 'compile', which isn't implemented yet.
In the meantime, this little helper may be useful.

pfalcon
Posts: 1155
Joined: Fri Feb 28, 2014 2:05 pm

Re: profiling

Post by pfalcon » Sun Oct 12, 2014 11:26 am

The way you do it, it would make more sense to port standard module "timeit" (https://docs.python.org/3/library/timeit.html) to https://github.com/micropython/micropython-lib
Awesome MicroPython list
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/

Turbinenreiter
Posts: 288
Joined: Sun May 04, 2014 8:54 am

Re: profiling

Post by Turbinenreiter » Mon Oct 13, 2014 12:32 pm

timeit also needs compile.

Post Reply