On 11/19/19 5:49 AM, Ralf Hemmecke wrote: >> To answer question "what/why takes time" use profiler. sbcl >> profiler shows that time is spent in factorizer. > > Thank you. I think that helps me to continue. > > Still I would be interested in how exactly I would have use the profiler > and how to interpret the output. > > I used what Qian suggested some time ago > > )lisp (require :sb-sprof) > )lisp (sb-sprof:start-profiling) > -- fricas computation here > coerce(c2)$F4 > )lisp (sb-sprof:stop-profiling) > )lisp (sb-sprof:report) > > But couldn't exactly make sense out of the output. > As far as I can tell it just counts the number of times a certain > function is called, but not the time it spents in a function. > > Ralf >
The "Count" you see is not the number of times a certain function is called, instead, the calling stack is interrupted and examined periodically to see which function is being called: so this is a statistical method to get how much time each function is spending -- the time spent by a function is proportional to the count it gets during those examination. Also notice the difference between "Count" and "Total Count", "Count" means how much time is spent by function body, "Total Count" means how much time is spent by function body and sub-function calls. -- You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/88f219ba-2dac-4821-d14f-106eca991ebf%40gmail.com.
