Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/nodes/NOD_geometry_nodes_eval_log.hh')
-rw-r--r--source/blender/nodes/NOD_geometry_nodes_eval_log.hh13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/nodes/NOD_geometry_nodes_eval_log.hh b/source/blender/nodes/NOD_geometry_nodes_eval_log.hh
index 0fbc1803db6..53ead9af241 100644
--- a/source/blender/nodes/NOD_geometry_nodes_eval_log.hh
+++ b/source/blender/nodes/NOD_geometry_nodes_eval_log.hh
@@ -176,6 +176,11 @@ struct NodeWithExecutionTime {
std::chrono::microseconds exec_time;
};
+struct NodeWithDebugMessage {
+ DNode node;
+ std::string message;
+};
+
/** The same value can be referenced by multiple sockets when they are linked. */
struct ValueOfSockets {
Span<DSocket> sockets;
@@ -197,6 +202,7 @@ class LocalGeoLogger {
Vector<ValueOfSockets> values_;
Vector<NodeWithWarning> node_warnings_;
Vector<NodeWithExecutionTime> node_exec_times_;
+ Vector<NodeWithDebugMessage> node_debug_messages_;
friend ModifierLog;
@@ -210,6 +216,7 @@ class LocalGeoLogger {
void log_multi_value_socket(DSocket socket, Span<GPointer> values);
void log_node_warning(DNode node, NodeWarningType type, std::string message);
void log_execution_time(DNode node, std::chrono::microseconds exec_time);
+ void log_debug_message(DNode node, std::string message);
};
/** The root logger class. */
@@ -283,6 +290,7 @@ class NodeLog {
Vector<SocketLog> input_logs_;
Vector<SocketLog> output_logs_;
Vector<NodeWarning, 0> warnings_;
+ Vector<std::string, 0> debug_messages_;
std::chrono::microseconds exec_time_;
friend ModifierLog;
@@ -307,6 +315,11 @@ class NodeLog {
return warnings_;
}
+ Span<std::string> debug_messages() const
+ {
+ return debug_messages_;
+ }
+
std::chrono::microseconds execution_time() const
{
return exec_time_;