Blender V5.3
blender::nodes::eval_log::NodeTreeLogger Class Reference

#include <NOD_eval_log.hh>

Classes

struct  WarningWithNode
struct  SocketValueLog
struct  NodeExecutionTime
struct  ViewerNodeLogWithNode
struct  AttributeUsageWithNode
struct  DebugMessage
struct  EvaluatedGizmoNode
struct  NodeImagePreview

Public Member Functions

 NodeTreeLogger ()
 ~NodeTreeLogger ()
void log_value (const bNode &node, const bNodeSocket &socket, GPointer value)

Public Attributes

std::optional< ComputeContextHash > parent_hash
std::optional< int32_t > parent_node_id
Vector< ComputeContextHash > children_hashes
std::optional< uint32_t > tree_orig_session_uid
std::chrono::nanoseconds execution_time {}
LinearAllocator * allocator = nullptr
linear_allocator::ChunkedList< WarningWithNode > node_warnings
linear_allocator::ChunkedList< SocketValueLog, 16 > input_socket_values
linear_allocator::ChunkedList< SocketValueLog, 16 > output_socket_values
linear_allocator::ChunkedList< NodeExecutionTime, 16 > node_execution_times
linear_allocator::ChunkedList< NodeImagePreview, 16 > node_image_previews
linear_allocator::ChunkedList< ViewerNodeLogWithNode > viewer_node_logs
linear_allocator::ChunkedList< AttributeUsageWithNode > used_named_attributes
linear_allocator::ChunkedList< DebugMessage > debug_messages
linear_allocator::ChunkedList< EvaluatedGizmoNode > evaluated_gizmo_nodes

Detailed Description

Logs all data for a specific geometry node tree in a specific context. When the same node group is used in multiple times each instantiation will have a separate logger.

Definition at line 296 of file NOD_eval_log.hh.

Constructor & Destructor Documentation

◆ NodeTreeLogger()

blender::nodes::eval_log::NodeTreeLogger::NodeTreeLogger ( )
default

References log_value(), node, and NodeTreeLogger().

Referenced by NodeTreeLogger().

◆ ~NodeTreeLogger()

blender::nodes::eval_log::NodeTreeLogger::~NodeTreeLogger ( )

Definition at line 293 of file eval_log.cc.

References blender::IMB_freeImBuf(), and node_image_previews.

Member Function Documentation

◆ log_value()

Member Data Documentation

◆ allocator

◆ children_hashes

Vector<ComputeContextHash> blender::nodes::eval_log::NodeTreeLogger::children_hashes

◆ debug_messages

linear_allocator::ChunkedList<DebugMessage> blender::nodes::eval_log::NodeTreeLogger::debug_messages

◆ evaluated_gizmo_nodes

linear_allocator::ChunkedList<EvaluatedGizmoNode> blender::nodes::eval_log::NodeTreeLogger::evaluated_gizmo_nodes

Keeps track of which gizmo nodes have been tracked by this evaluation.

Definition at line 356 of file NOD_eval_log.hh.

Referenced by blender::compositor::NodeOperation::log_data().

◆ execution_time

std::chrono::nanoseconds blender::nodes::eval_log::NodeTreeLogger::execution_time {}

The time spend in the compute context that this logger corresponds to.

Definition at line 307 of file NOD_eval_log.hh.

Referenced by blender::compositor::ScopedNodeGroupTimer::~ScopedNodeGroupTimer().

◆ input_socket_values

linear_allocator::ChunkedList<SocketValueLog, 16> blender::nodes::eval_log::NodeTreeLogger::input_socket_values

◆ node_execution_times

linear_allocator::ChunkedList<NodeExecutionTime, 16> blender::nodes::eval_log::NodeTreeLogger::node_execution_times

◆ node_image_previews

linear_allocator::ChunkedList<NodeImagePreview, 16> blender::nodes::eval_log::NodeTreeLogger::node_image_previews

◆ node_warnings

◆ output_socket_values

linear_allocator::ChunkedList<SocketValueLog, 16> blender::nodes::eval_log::NodeTreeLogger::output_socket_values

◆ parent_hash

std::optional<ComputeContextHash> blender::nodes::eval_log::NodeTreeLogger::parent_hash

Definition at line 298 of file NOD_eval_log.hh.

◆ parent_node_id

std::optional<int32_t> blender::nodes::eval_log::NodeTreeLogger::parent_node_id

◆ tree_orig_session_uid

std::optional<uint32_t> blender::nodes::eval_log::NodeTreeLogger::tree_orig_session_uid

The #ID.session_uid of the tree that this logger is for. It's an optional value because under some circumstances it's not possible to know this exactly currently (e.g. for closures).

Definition at line 305 of file NOD_eval_log.hh.

Referenced by blender::nodes::eval_log::NodesEvalLog::get_local_tree_logger().

◆ used_named_attributes

linear_allocator::ChunkedList<AttributeUsageWithNode> blender::nodes::eval_log::NodeTreeLogger::used_named_attributes

Definition at line 353 of file NOD_eval_log.hh.

◆ viewer_node_logs

linear_allocator::ChunkedList<ViewerNodeLogWithNode> blender::nodes::eval_log::NodeTreeLogger::viewer_node_logs

The documentation for this class was generated from the following files: