[Bf-blender-cvs] [db7519d9c93] profiler-editor: profile nodes

Jacques Lucke noreply at git.blender.org
Thu Apr 29 11:30:49 CEST 2021


Commit: db7519d9c93c9fb26ad08f9034537fd5bdbcb6f8
Author: Jacques Lucke
Date:   Wed Apr 28 10:01:35 2021 +0200
Branches: profiler-editor
https://developer.blender.org/rBdb7519d9c93c9fb26ad08f9034537fd5bdbcb6f8

profile nodes

===================================================================

M	source/blender/modifiers/intern/MOD_nodes.cc

===================================================================

diff --git a/source/blender/modifiers/intern/MOD_nodes.cc b/source/blender/modifiers/intern/MOD_nodes.cc
index cc8f4a544c0..1d5a6b1f126 100644
--- a/source/blender/modifiers/intern/MOD_nodes.cc
+++ b/source/blender/modifiers/intern/MOD_nodes.cc
@@ -30,6 +30,7 @@
 #include "BLI_float3.hh"
 #include "BLI_listbase.h"
 #include "BLI_multi_value_map.hh"
+#include "BLI_profile.hh"
 #include "BLI_set.hh"
 #include "BLI_string.h"
 #include "BLI_utildefines.h"
@@ -457,6 +458,7 @@ class GeometryNodesEvaluator {
 
   void execute_node(const DNode node, GeoNodeExecParams params)
   {
+    BLI_PROFILE_SCOPE(node->name().c_str());
     const bNode &bnode = params.node();
 
     /* Use the geometry-node-execute callback if it exists. */



More information about the Bf-blender-cvs mailing list