<div dir="ltr">While more manual, you can get the activity startup time<div>uncommenting the line</div><div><br></div><div>export SUGAR_LOGGER_LEVEL=debug</div><div><br></div><div>in the file .sugar/debug</div><div><br></div>
<div>Gonzalo</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 4, 2013 at 3:48 PM, Yioryos Asprobounitis <span dir="ltr"><<a href="mailto:mavrothal@yahoo.com" target="_blank">mavrothal@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">> So, having someone generate activity startup time numbers in a fair<br>
<br>
> test (i.e. same platform, different software versions) would be of<br>
> value.<br>
> <br>
<br>
</div>Tried the following little script but I can not find a way to get the output of 'time' command to the output.txt file.<br>
Any suggestions?<br>
<br>
#!/bin/bash<br>
rm -f output.txt<br>
for x in $(cat Activities/*/activity/<a href="http://activity.info" target="_blank">activity.info</a> | grep bundle | cut -f 2 -d '=')<br>
do<br>
echo $x >> output.txt<br>
echo >> output.txt<br>
time sugar-launch $x & 2>> output.txt # 'time -o' does not work neither with & at the end<br>
sleep 30<br>
ME=$(ps aux | grep $x | grep -v grep | awk '{print $2}') <br>
kill -9 $ME 2>> output.txt<br>
done<br>
<br>
</blockquote></div><br></div>