generative modeling for Rhino
1. Is there a native profiler in the python component?
2. If there is, any examples on how to use it?
which is a profiler?
you could use the Grasshopper standard profiler widget. Does that work?
It works well enough for the whole component but I have several classes and functions running inside the component, I was going to use it to test which parts were the slowest.
Ah I see, then I would suggest to use either Python's time module (time.clock() should have higher accuracy), in a way similar to this:
start = time.clock()
#... repeat the operation several times
total_ms = time.clock() - start
Otherwise, you could use .Net's standard profiling services, such as Stopwatch.
I hope this helps,