For Programmers: Free Programming Magazines  


Home > Archive > Prolog > August 2005 > Re: newbie question: how to measure run-time with Sicstus under









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: newbie question: how to measure run-time with Sicstus under
Duncan Patton

2005-08-12, 5:03 pm

On 12 Aug 2005 09:18:07 -0700
"Paulo Moura" <pmoura@di.ubi.pt> wrote:

>=20
> Duncan Patton wrote:
>=20
> From the SICStus Prolog on-line manual:
>=20
>=20
> http://www.sics.se/sicstus/docs/lat...ate-Info.html#=

State%20Info
>=20
> statistics(?Key,?Value)
> This allows a program to gather various execution statistics. For each
> of the possible keys Key, Value is unified with a list of values, as
> follows:
> ...
> runtime
> [since start of Prolog,since previous statistics] These refer to CPU
> time used while executing, excluding time spent garbage collecting,
> stack shifting, or in system calls. The second element is the time
> since the last call to statistics/2 with this key. It is not affected
> by calls to statistics/0.
>=20
> In addtion, SICStus Prolog is not open-source, so it's unlikely that
> the original post could build it itself for using with GDB.


I didn't think of that ;-) Generally I've found that I need to compare
internally generated language metrics to some external things like GDB
before I know what they mean in terms of system resource use.=20

Dhu


>=20
> Cheers,
>=20
> Paulo
>=20



--=20
???????????????????????????????????????

Can't get good help? =20

Contact Fubar the Hack: fubar AT neotext.ca

Area code seven eight zero, Exchange four six six, Local zero one zero nine

Highland terms, Canadian workmanship.

All persons named herein are purely fictional victims
of the Canidian Bagle Breeder's Association.

Save the Bagle!=20

Sun =D0hu

???????????????????????????????????????


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com