|
Re: report execution time [message #1690214 is a reply to message #1690139] |
Wed, 25 March 2015 17:17 |
|
I think if you logged time stamps from the initialize and the afterRender scripts, you'd have a pretty good idea. If you're running from Java, you could capture a timestamp before and after the engine task runs.
Michael
Developer Evangelist, Silanis
|
|
|
Re: report execution time [message #1690366 is a reply to message #1690214] |
Thu, 26 March 2015 22:13 |
donino donino Messages: 183 Registered: July 2011 |
Senior Member |
|
|
Hi,
For this i think beforeFactory could be better than initialize script to get the startup time, because initialize might be triggered twice (run + render). I achieved something similar:
- in beforeFactory script, set current time in millisec to a global persistent variable
- retrieve the persistent variable in afterRender, and substract it to the new current time in millisec
- log the result to a file from afterRender script
I had also added a step in beforeRender script to get "run" and "render" durations separately.
As far as i remember the tricky part was the value retrieved from a persistent var had to be parsed to be used as a number
[Updated on: Thu, 26 March 2015 22:14] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03372 seconds