<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
----- Message d'origine ----- <br>
De : Mike Page <br>
Date : 15/02/2010 17:50:
<blockquote
cite="mid:LKECIGCCKNOMMCKAGNOAIEKJCNAA.Mike@Page-One.Waitrose.com"
type="cite">
<pre wrap="">Hi,
Does anyone know how to interpret the output of the profiler? The nth row,
second column of the profile output is the time (in seconds I guess) taken
to execute the nth statement in the function. if I add up all the time
given, it is only a small fraction of the time the function actually takes.
For example, I have a function that takes about 15 seconds to run.</pre>
</blockquote>
Did you measure it with tic & toc or timer() (<=>cpu), i mean
in a scilab way, or in another way ?<br>
It could be either a matter of lack of doc, or else of scilab
unconsistency.<br>
<blockquote
cite="mid:LKECIGCCKNOMMCKAGNOAIEKJCNAA.Mike@Page-One.Waitrose.com"
type="cite">
<pre wrap=""> The profiler output totals to only 0.015 seconds.
</pre>
</blockquote>
The help page for profile() states that<br>
<i>systems counts how many time each line is executed and how may cpu
time is spend <b>for each line execution</b>.<br>
These data are stored within the function data structure. The profile
function allows to extract these data <br>
and return them in the two first columns</i><br>
<br>
Did you try to multiply column#1 x column#2 and to add results?<br>
I do not see anything else to try before bug reporting about
undocumented time unit.<br>
<br>
Regards<br>
Samuel<br>
<br>
</body>
</html>