slang-users mailing list

[2007 Date Index] [2007 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[slang-users] Re: Bug in profiler.sl


Hi John,

"John E. Davis" <davis@xxxxxxxxxxxxx> wrote:
> =?UTF-8?Q?J=C3=B6rg?= Sommer <joerg@xxxxxxxxxxxx> wrote:
>>% jed --version          
>>jed version: 0.99.19-95/Unix
>> Compiled with GNU C 4.1
>>S-Lang version: pre2.1.1-10
>
> Try pre2.1.1-13.  Thanks, --John

Yes, it works, but I can't use non‐function profiling aka. statement
profiling anymore.

% jed-script prof-x.sl

#----------------------------------------------------------------
#                  Function Call Profile Report
#----------------------------------------------------------------

#function                 ncalls      ms/call  totalselfms    totalsecs Function File
bar                           10       0.0055       0.0550       0.0001       0       0 /home/joerg/prof-x.sl
foo                            1       0.0504      -0.0046       0.0001      10       0 /home/joerg/prof-x.sl
% cat prof-x.sl
require ("profile");

profile_calibrate ();

profile_on(0);
define bar() {
    () = 12 + 4;
    () = 27 / 3;
}
define foo() {
    loop (10)
      bar();
}
profile_off();

profile_begin ();
foo();
profile_report(stdout);

exit(0);

Schöne Grüße, Jörg.
-- 
Es ist außerdem ein weit verbreiteter Irrtum das USENET ‚helfen‘ soll.
Tatsächlich wurde USENET nachweislich zur persönlichen Belustigung
seiner Erfinder geschaffen.
Jörg Klemenz <joerg@xxxxxxx>, <b4ai4o$1u8vmt$2@xxxxxxxxxxxxxxxxxxxxxxx>



[2007 date index] [2007 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]