<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Barry and Matt<br>
</p>
<div class="moz-signature">
<p>Thank you very much for the explanation.<br>
<br>
Yours sincerely,<br>
<br>
================================================<br>
TAY Wee-Beng 郑伟明 (Zheng Weiming)<br>
Personal research webpage: <font color="#3366ff"><u><a class="moz-txt-link-freetext" href="http://tayweebeng.wixsite.com/website">http://tayweebeng.wixsite.com/website</a></u></font><br>
Youtube research showcase: <u><font color="#3366ff"><a class="moz-txt-link-freetext" href="https://goo.gl/PtvdwQ">https://goo.gl/PtvdwQ</a></font></u><br>
linkedin: <u><font color="#3366ff"><a class="moz-txt-link-freetext" href="https://www.linkedin.com/in/tay-weebeng">https://www.linkedin.com/in/tay-weebeng</a></font></u><br>
================================================<br>
</p>
</div>
<div class="moz-cite-prefix">On 22/4/2019 1:56 PM, Smith, Barry F.
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:450A5993-960D-4155-B9BC-953095BDC25D@anl.gov">
<pre class="moz-quote-pre" wrap="">
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">On Apr 21, 2019, at 8:27 AM, TAY wee-beng via petsc-users <a class="moz-txt-link-rfc2396E" href="mailto:petsc-users@mcs.anl.gov"><petsc-users@mcs.anl.gov></a> wrote:
Hi,
I'm trying to do some logging as well as timing of my code?
May I know if PetscLogEventBegin and PetscLogEventEnd slow down my code if it's called every time step?
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
The logging is only done if the -log_view option is set or PetscLogDefaultBegin() is called.
Make two identical runs on the same machine once with -log_view, once without and time them. (use unix time on a work station and perhaps the patch system you use provides runtime information). Make the machines have the same load (or lack of load) on them to get a fair comparison. It would be very surprising if the -log_view version had a nontrivial effect on the run times.
Barry
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">
--
Thank you very much.
Yours sincerely,
================================================
TAY Wee-Beng 郑伟明 (Zheng Weiming)
Personal research webpage: <a class="moz-txt-link-freetext" href="http://tayweebeng.wixsite.com/website">http://tayweebeng.wixsite.com/website</a>
Youtube research showcase: <a class="moz-txt-link-freetext" href="https://goo.gl/PtvdwQ">https://goo.gl/PtvdwQ</a>
linkedin: <a class="moz-txt-link-freetext" href="https://www.linkedin.com/in/tay-weebeng">https://www.linkedin.com/in/tay-weebeng</a>
================================================
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
</pre>
</blockquote>
</body>
</html>