Go to advanced search

by robquant
Wed Aug 14, 2013 2:17 pm
Forum: C/C++
Topic: Possible to convert python script into C/C++ Pi executable ?
Replies: 6
Views: 2698

Re: Possible to convert python script into C/C++ Pi executab

Cython (cython.org) also offers the possibility to compile pure python code to an executable. However to gain substantial speedups you need to provide types. And you will still depend on any python module you import in your code.
by robquant
Thu Oct 11, 2012 11:30 am
Forum: C/C++
Topic: Profiling on the Pi?
Replies: 14
Views: 8478

Re: Profiling on the Pi?

I use gperftools from the Arch repos and this works nicely: [mypi] ~ %CPUPROFILE=ls.prof LD_PRELOAD=/usr/lib/libprofiler.so /bin/ls -R >| /dev/null [mypi] ~ %pprof --text /bin/ls ls.prof | head Using local file /bin/ls. Using local file ls.prof. Total: 324 samples 81 25.0% 25.0% 81 25.0% __getdents6...
by robquant
Wed Oct 10, 2012 1:58 pm
Forum: C/C++
Topic: Profiling on the Pi?
Replies: 14
Views: 8478

Re: Profiling on the Pi?

What about the gpertools: http://code.google.com/p/gperftools/
They contain a sampling profiler that seems to work nicely on the Pi.

Go to advanced search