Re: newbie question: how to measure run-time with Sicstus under linux?




Duncan Patton wrote:
> On 11 Aug 2005 06:31:15 -0700
> ouyang.jie@xxxxxxxxx wrote:
>
> > staticstics(runtime,_) is for windows. Am I right?
> >
>
> Use GDB on your prolog runtime. Might need to stop the compiler
> from stripping symbols. To do this you'll probably need to
> build it yourself and not load an rpm.

With the relevance of your answer to the original question being...?!?

On Logtalk, I use the following definition to get runtime time in
seconds, for all operating-systems supported by SICStus Prolog:

'$lgt_cpu_time'(Seconds) :-
statistics(runtime, [Miliseconds| _]),
Seconds is Miliseconds / 1000.

Morevover, SICStus Prolog documentation is available on-line for
further details:

http://www.sics.se/sicstus/docs/latest/html/sicstus.html/

Cheers,

Paulo

.



Relevant Pages

  • Re: WAM Vs. TOAM
    ... at half the speed of SICStus Prolog 3.12 ... GNU Prolog, XSB, SICStus, Yap and hProlog are all WAM based. ... All these systems are emulators - except GNU-Prolog which is a hybrid ...
    (comp.lang.prolog)
  • Re: Are Logtalk objects "real" objects?...
    ... integration with SICStus Prolog that should lead to good performance. ... multifile predicates, ... such as Logtalk. ...
    (comp.lang.prolog)
  • Re: Prologs combined with other tools
    ... Recently I have found the pdf manual of SICSTUS Prolog. ... If you want to use a BASIC for your user interface, ... SWI-Prolog is able to construct GUIs natively, ...
    (comp.lang.prolog)
  • CLP(FD) Prolog: help needed with a simple problem
    ... but newbie in constrain programming using ... CLP(with sicstus prolog). ... I'm looking for good documentation and examples, unluckily, right ...
    (comp.lang.prolog)
  • SICStus Prolog Installation Problem to Macintosh
    ... My computer is Mac OSX 10.3.6, and I need to install SICStus prolog ...
    (comp.lang.prolog)