algorithmic modeling for Rhino
Tags:
Hi Kyle,
the profiler is a compulsive liar. First of all, it doesn't actually record all time spend inside a particular component, only the time spend inside the Compute() function. Furthermore, the profiler values tend to wobble up and down a few milliseconds almost all the time, and dozens of milliseconds on components that take a long time. Whether this is due to time measuring inaccuracy or because it actually does differ between different runs I don't know (but I suspect the latter), but it does mean any single value cannot be trusted to be too accurate a representation of what's actually going on.
Also note that VB components need to be compiled, so the first profiler value after you commit the changes will be much higher than subsequent runs when the code is already compiled and cached.
Number and Receiver are doing some work. But it should be less than a Curve Area computation I'd think. It's hard to comment without knowing how this file is set up and what the profiler values are.
The Document does keep track of how long the entire solution takes, but I'm not displaying that information anywhere on the GUI at the moment. I suppose I could send messages to the status bar if the solution takes longer than -say- 5 seconds.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
ps. I recently purchased a good project profiler application, which I hope will help me track down bottlenecks in the whole of Grasshopper. I have never actually seriously investigated the code with respect to performance, but I think it's high time I start doing so...
Hi, I am adding my own question here.
I was wondering if there is a method to get the value from a component's profiler as a numerical data (eg. a float) -- possibly from within grasshopper.
I understood that the profiler is not accurate, anyway that information would be greatly useful for an application I'm building.
Every IGH_ActiveObject has a ProcessorTime property which returns a TimeSpan with the most recent profiler measure.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by