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.
profiling
Re: profiling
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/
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/
-
- Posts: 288
- Joined: Sun May 04, 2014 8:54 am
Re: profiling
timeit also needs compile.