<div dir="ltr">Hi Chiang,<div><br></div><div>Take a look at vtkTimerLog.h. Basically call StartLog, do something with VTK, and DumpLog. That will record the times taken within vtk to do various things like rendering and data processing.</div><div><br></div><div>One key point to be aware of is containment, which is represented in the log by indentations. If you have some function A which calls B, A's time will include the time taken by B. The logs will look something like this:</div><div>A 5 seconds</div><div>  B 4 seconds</div><div>which means that A spent only 1 second beyond what B did.</div><div><br></div><div>A call to render will include calls to update filters whenever they are out of date, so Render will contain Filter.</div><div><br></div><div>cheers</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-881-4909</div></div>
<br><div class="gmail_quote">On Thu, Feb 4, 2016 at 6:40 AM, WangQ <span dir="ltr"><<a href="mailto:wangq1979@outlook.com" target="_blank">wangq1979@outlook.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">Hello vtkusers,<div><br></div><div>I wonder if there is any way to measure the executing time from very beginning till rendering finish in VTK? Seems conventional tic toc inapplicable to VTK. </div><div><span style="font-size:12pt"><br></span></div><div><span style="font-size:12pt">It would be great if can separate computation time, e.g. time for processing data, and rendering time.</span></div><div><span style="font-size:12pt"><br></span></div><div><span style="font-size:12pt">Cheers, </span></div><div><span style="font-size:12pt"><br></span></div><div><span style="font-size:12pt">Chiang</span></div>                                          </div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>