PS:

Here is an example:

On 2016-05-03, Simon King <[email protected]> wrote:
> For Cython code in Sage, there is a %crun available that gives you some
> statistics on C-functions called during a computation. It needs
> gperftools being installed.

sage: M = random_matrix(GF(4,'x'), 10000,10000)
sage: %crun N=M*M
PROFILE: interrupts/evictions/bytes = 261/106/118136
Using local file /home/king/Sage/git/sage/local/bin/python.
Using local file /home/king/.sage/temp/king-C70-B/7475/tmp_eYytxx.perf.
Total: 261 samples
       0   0.0%   0.0%      261 100.0% PyEval_EvalCode
       0   0.0%   0.0%      261 100.0% PyEval_EvalCodeEx
       0   0.0%   0.0%      261 100.0% PyEval_EvalFrameEx
       0   0.0%   0.0%      261 100.0% PyNumber_Multiply
       0   0.0%   0.0%      261 100.0% PyObject_Call
       0   0.0%   0.0%      261 100.0% PyRun_FileExFlags
       0   0.0%   0.0%      261 100.0% PyRun_SimpleFileExFlags
       0   0.0%   0.0%      261 100.0% PyRun_StringFlags
       0   0.0%   0.0%      261 100.0% 
__pyx_f_4sage_6matrix_17matrix_gf2e_dense_17Matrix_gf2e_dense__matrix_times_matrix_
...
       5   1.9%  96.9%        6   2.3% _mzd_mul_naive
       0   0.0%  96.9%        4   1.5% _mzed_slice2
       0   0.0%  96.9%        4   1.5% mzd_mul_naive
       4   1.5%  98.5%        4   1.5% word_slice_64_02 (inline)
       0   0.0%  98.5%        3   1.1% _mzed_cling2
...

So, you see that it both shows you C-functions that have been obtained
from Cython code and C-functions obtained from C-libraries.

Best regards,
Simon


-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to