Blender V4.3
blender::nodes::geo_eval_log::GeoTreeLogger Class Reference

#include <NOD_geometry_nodes_log.hh>

Classes

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

Public Member Functions

 GeoTreeLogger ()
 
 ~GeoTreeLogger ()
 
void log_value (const bNode &node, const bNodeSocket &socket, GPointer value)
 
void log_viewer_node (const bNode &viewer_node, bke::GeometrySet geometry)
 

Public Attributes

std::optional< ComputeContextHashparent_hash
 
std::optional< int32_tparent_node_id
 
Vector< ComputeContextHashchildren_hashes
 
std::chrono::nanoseconds execution_time {}
 
LinearAllocatorallocator = nullptr
 
linear_allocator::ChunkedList< WarningWithNodenode_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< ViewerNodeLogWithNodeviewer_node_logs
 
linear_allocator::ChunkedList< AttributeUsageWithNodeused_named_attributes
 
linear_allocator::ChunkedList< DebugMessagedebug_messages
 
linear_allocator::ChunkedList< EvaluatedGizmoNodeevaluated_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 199 of file NOD_geometry_nodes_log.hh.

Constructor & Destructor Documentation

◆ GeoTreeLogger()

blender::nodes::geo_eval_log::GeoTreeLogger::GeoTreeLogger ( )
default

◆ ~GeoTreeLogger()

blender::nodes::geo_eval_log::GeoTreeLogger::~GeoTreeLogger ( )
default

Member Function Documentation

◆ log_value()

◆ log_viewer_node()

void blender::nodes::geo_eval_log::GeoTreeLogger::log_viewer_node ( const bNode & viewer_node,
bke::GeometrySet geometry )

Member Data Documentation

◆ allocator

◆ children_hashes

Vector<ComputeContextHash> blender::nodes::geo_eval_log::GeoTreeLogger::children_hashes

◆ debug_messages

linear_allocator::ChunkedList<DebugMessage> blender::nodes::geo_eval_log::GeoTreeLogger::debug_messages

◆ evaluated_gizmo_nodes

linear_allocator::ChunkedList<EvaluatedGizmoNode> blender::nodes::geo_eval_log::GeoTreeLogger::evaluated_gizmo_nodes

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

Definition at line 248 of file NOD_geometry_nodes_log.hh.

◆ execution_time

std::chrono::nanoseconds blender::nodes::geo_eval_log::GeoTreeLogger::execution_time {}

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

Definition at line 205 of file NOD_geometry_nodes_log.hh.

◆ input_socket_values

linear_allocator::ChunkedList<SocketValueLog, 16> blender::nodes::geo_eval_log::GeoTreeLogger::input_socket_values

Definition at line 241 of file NOD_geometry_nodes_log.hh.

Referenced by log_value().

◆ node_execution_times

linear_allocator::ChunkedList<NodeExecutionTime, 16> blender::nodes::geo_eval_log::GeoTreeLogger::node_execution_times

Definition at line 243 of file NOD_geometry_nodes_log.hh.

◆ node_warnings

linear_allocator::ChunkedList<WarningWithNode> blender::nodes::geo_eval_log::GeoTreeLogger::node_warnings

◆ output_socket_values

linear_allocator::ChunkedList<SocketValueLog, 16> blender::nodes::geo_eval_log::GeoTreeLogger::output_socket_values

Definition at line 242 of file NOD_geometry_nodes_log.hh.

Referenced by log_value().

◆ parent_hash

std::optional<ComputeContextHash> blender::nodes::geo_eval_log::GeoTreeLogger::parent_hash

Definition at line 201 of file NOD_geometry_nodes_log.hh.

◆ parent_node_id

std::optional<int32_t> blender::nodes::geo_eval_log::GeoTreeLogger::parent_node_id

Definition at line 202 of file NOD_geometry_nodes_log.hh.

◆ used_named_attributes

linear_allocator::ChunkedList<AttributeUsageWithNode> blender::nodes::geo_eval_log::GeoTreeLogger::used_named_attributes

Definition at line 245 of file NOD_geometry_nodes_log.hh.

◆ viewer_node_logs

linear_allocator::ChunkedList<ViewerNodeLogWithNode> blender::nodes::geo_eval_log::GeoTreeLogger::viewer_node_logs

Definition at line 244 of file NOD_geometry_nodes_log.hh.

Referenced by log_viewer_node().


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