# Performance profiling

**URL:** <https://forums.apparance.uk/t/performance-profiling/102>\
**Category:** Future\
**Tags:** request, debugging\
**Created:** [27 March 2022 21:25 UTC](https://forums.apparance.uk/t/performance-profiling/102 "2022-03-27T21:25:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![OLawson](https://dub1.discourse-cdn.com/flex013/user_avatar/forums.apparance.uk/olawson/32/167_2.png) [@OLawson](https://forums.apparance.uk/u/OLawson)\
**Post date:** [27 March 2022 21:25 UTC](https://forums.apparance.uk/t/performance-profiling/102/1 "2022-03-27T21:25:17Z")

</div>

This might be handy to spot troublesome loops or just expensive functions, as a level of debugging that could directly help the end-user.

What it could look like:

Programs like Substance Designer use ms per node,  
 ![11011_Substance_Designer](https://europe1.discourse-cdn.com/flex013/uploads/apparance/original/1X/bc24563fef3cfeb76c33a01019837ee657cb54df.png)

Other programs like Sverchok for Blender can display cumulative ms of the graph until that point  
 ![11013_blender](https://europe1.discourse-cdn.com/flex013/uploads/apparance/original/1X/e04cdc56dcaaf2e476371f553c67de51361705d3.png)

---

<div class="post-metadata">

**Author:** ![sam](https://dub1.discourse-cdn.com/flex013/user_avatar/forums.apparance.uk/sam/32/8_2.png) [@sam](https://forums.apparance.uk/u/sam)\
**Post date:** [28 March 2022 08:41 UTC](https://forums.apparance.uk/t/performance-profiling/102/2 "2022-03-28T08:41:30Z")

</div>

This would be useful, yes, but there are some issue to overcome because of the way that the procedure evaluation works. Apart from the technical implementation work needed to support it, its’ not immediately possible to attribute a time to any given node very easily. One problem is that all parts of the graph are evaluated on demand and so can be passed through once per output connection. Another is that if you have many instance of a procedure in your scene, you will likely get different results for each.  
This is something I will add eventually, as part of a more general graph debugger that’s been planned for a long time, but this is a large piece of work that I can’t justify at the moment.  
The whole debugger/instrumentation thing is a really interesting feature that has a lot of potential, that I’d love to dive into, but it will have to wait.

---

<div class="post-metadata">

**Author:** ![OLawson](https://dub1.discourse-cdn.com/flex013/user_avatar/forums.apparance.uk/olawson/32/167_2.png) [@OLawson](https://forums.apparance.uk/u/OLawson)\
**Post date:** [5 April 2022 21:25 UTC](https://forums.apparance.uk/t/performance-profiling/102/3 "2022-04-05T21:25:24Z")

</div>

That makes a lot of sense, thanks!
