[kepler-users] execution time
Christopher Brooks
cxh at eecs.berkeley.edu
Thu Mar 5 11:09:12 PST 2009
Hi Blue,
When a Kepler model is run, some run data is printed
to stdout, such as:
2212 ms. Memory: 31664K Free: 7107K (22%)
This data is printed by ptolemy.actor.Manager, which has methods
such as timeAndMemory().
I have some primitive performance notes at
ptII/doc/coding/performance.html, last year's version may be found at
http://ptolemy.eecs.berkeley.edu/ptolemyII/ptIIlatest/ptII/doc/coding/performance.htm
The devel tree has some updates.
To measure the time of an execution within a model, you could use
the WallClockTime actor, see
http://ptolemy.eecs.berkeley.edu/ptolemyII/ptIIlatest/ptII/doc/codeDoc/ptolemy/actor/lib/WallClockTime.html
To create a WallClockTime actor in Kepler, do
Tools -> Instantiate Component
and then enter ptolemy.actor.lib.WallClockTime for the class name.
The "Location (URL)" field should be left empty.
The Expression Language also has totalMemory and freeMemory variables
that can be accessed, though the values tend to get cached, so they
are not always updated during the execution of a system.
How I usually do performance measurements is that I run models
without a GUI and then do several runs, tossing out the times for the
first run. $PTII/ptolemy/actor/lib/test/performance, which is only
in the ptII subversion devel tree, has some scripts that I've used.
_Christopher
Blue in London Net wrote:
> Hello,
>
> I'm new on using Kepler.
> I'm working with data and programs, which take many time. In order to
> optimize the algorithms to choose, I need to measure execution time of
> workflows.
> I didm't find examples about this and I have no idea how to do this.
>
> Many someone could have an idea ?
>
> Thanks in advance
>
> Blue
>
> ------------------------------------------------------------------------
> Discutez sur Messenger où que vous soyez ! Mettez Messenger sur votre
> mobile ! <http://www.messengersurvotremobile.com/>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Kepler-users mailing list
> Kepler-users at kepler-project.org
> http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users
--
Christopher Brooks (cxh at eecs berkeley edu) University of California
CHESS Executive Director US Mail: 337 Cory Hall
Programmer/Analyst CHESS/Ptolemy/Trust Berkeley, CA 94720-1774
ph: 510.643.9841 fax:510.642.2718 (Office: 545Q Cory)
home: (F-Tu) 707.665.0131 (W-F) 510.655.5480
More information about the Kepler-users
mailing list