Grasshopper

algorithmic modeling for Rhino

How to interpret profiler time and number of component runs

I'm just wondering how to interpret the profiler number.  If the profiler says that it took 20ms, and the component says that it ran 5 times what does this mean?

  1. Total run time is 20ms x 5 runs = 100ms
  2. Total run time is 20ms.  Iteration time is 20ms / 5 runs = 4ms.

Views: 1965

Replies to This Discussion

Number 2.

Got it... thanks!

Ok, one more question...

Is there a way to see a listing of the profiler results so that I can find the components with the highest execution time?  I have a large model and I'm finding it difficult and time consuming to pan around the model and inspecting each component's profile.  It would be neat if there was a sorted listing of components by profile execution time with a click and jump to that component.

There is no such feature.

I hacked together a VB script that shows a window with sorted components. Double click to center them on the canvas.

--

David Rutten

david@mcneel.com

Attachments:

That's just freekin' awesome, David.  I just opened the gh file... it gave me some warning about missing Kangaroo, but I didn't care.  Just grabbed your VBOut component, placed it on my canvas, recompute, and boom!  What a time saver!

This is awesome! How hard would it be to output these runtimes from the component (as opposed to viwing them in a form window)?

Cheers,

Brian

Thank you David.

This little script has been golden for me in the past to optimize script speed. Can't get it to work in Rhino 6 though. 

It's telling me: 

1. Error (BC30652): Reference required to assembly 'Eto, Version=2.5.0.0, Culture=neutral, PublicKeyToken=552281e97c755530' containing the type 'Eto.Forms.Window'. Add one to your project. (line 101)

Cannot figure out how to make it work unfortunately. Do you, by any chance, have an updated version?

Kind regards,

Daan Janssen

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service