|
Blender V5.3
|
#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 |
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.
|
default |
References log_value(), node, and NodeTreeLogger().
Referenced by NodeTreeLogger().
| blender::nodes::eval_log::NodeTreeLogger::~NodeTreeLogger | ( | ) |
Definition at line 293 of file eval_log.cc.
References blender::IMB_freeImBuf(), and node_image_previews.
| void blender::nodes::eval_log::NodeTreeLogger::log_value | ( | const bNode & | node, |
| const bNodeSocket & | socket, | ||
| GPointer | value ) |
Definition at line 319 of file eval_log.cc.
References blender::LinearAllocator< Allocator >::allocate(), allocator, blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::LinearAllocator< Allocator >::construct(), blender::CPPType::copy_construct(), blender::bke::SocketValueVariant::extract(), blender::bke::SocketValueVariant::get(), blender::GPointer::get(), blender::bke::SocketValueVariant::get_if(), blender::bNodeSocket::in_out, input_socket_values, blender::nodes::ClosureSignature::inputs, blender::CPPType::is(), blender::bke::SocketValueVariant::is_context_dependent_field(), blender::bke::SocketValueVariant::is_list(), blender::GPointer::is_type(), blender::bke::SocketValueVariant::is_volume_grid(), blender::nodes::ClosureSignature::Item::key, node, output_socket_values, blender::nodes::ClosureSignature::outputs, blender::SOCK_IN, blender::GPointer::type(), and blender::nodes::ClosureSignature::Item::type.
Referenced by blender::compositor::PixelOperation::log_data(), blender::compositor::log_result(), blender::nodes::GeometryNodesLazyFunctionLogger::log_socket_value(), and NodeTreeLogger().
| LinearAllocator* blender::nodes::eval_log::NodeTreeLogger::allocator = nullptr |
Definition at line 309 of file NOD_eval_log.hh.
Referenced by blender::nodes::GeometryNodesLazyFunctionLogger::add_thread_id_debug_message(), blender::compositor::NodeOperation::add_warning(), blender::nodes::LazyFunctionForForeachGeometryElementZone::execute_impl(), blender::nodes::LazyFunctionForViewerNode::execute_impl(), blender::nodes::LazyFunctionForEvaluateClosureNode::generate_closure_compatibility_warnings(), blender::compositor::NodeOperation::log_data(), blender::compositor::PixelOperation::log_data(), blender::compositor::log_result(), log_value(), blender::nodes::report_from_multi_function(), and blender::compositor::ScopedNodeTimer::~ScopedNodeTimer().
| Vector<ComputeContextHash> blender::nodes::eval_log::NodeTreeLogger::children_hashes |
Definition at line 300 of file NOD_eval_log.hh.
Referenced by blender::nodes::eval_log::NodesEvalLog::get_local_tree_logger().
| linear_allocator::ChunkedList<DebugMessage> blender::nodes::eval_log::NodeTreeLogger::debug_messages |
Definition at line 354 of file NOD_eval_log.hh.
Referenced by blender::nodes::GeometryNodesLazyFunctionLogger::add_thread_id_debug_message().
| 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().
| 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().
| linear_allocator::ChunkedList<SocketValueLog, 16> blender::nodes::eval_log::NodeTreeLogger::input_socket_values |
Definition at line 348 of file NOD_eval_log.hh.
Referenced by blender::compositor::PixelOperation::log_data(), blender::compositor::log_result(), and log_value().
| linear_allocator::ChunkedList<NodeExecutionTime, 16> blender::nodes::eval_log::NodeTreeLogger::node_execution_times |
Definition at line 350 of file NOD_eval_log.hh.
Referenced by blender::compositor::ScopedNodeTimer::~ScopedNodeTimer().
| linear_allocator::ChunkedList<NodeImagePreview, 16> blender::nodes::eval_log::NodeTreeLogger::node_image_previews |
Definition at line 351 of file NOD_eval_log.hh.
Referenced by blender::compositor::NodeOperation::log_data(), blender::compositor::PixelOperation::log_data(), and ~NodeTreeLogger().
| linear_allocator::ChunkedList<WarningWithNode> blender::nodes::eval_log::NodeTreeLogger::node_warnings |
Definition at line 347 of file NOD_eval_log.hh.
Referenced by blender::compositor::NodeOperation::add_warning(), blender::nodes::LazyFunctionForForeachGeometryElementZone::execute_impl(), blender::nodes::LazyFunctionForEvaluateClosureNode::generate_closure_compatibility_warnings(), and blender::nodes::report_from_multi_function().
| linear_allocator::ChunkedList<SocketValueLog, 16> blender::nodes::eval_log::NodeTreeLogger::output_socket_values |
Definition at line 349 of file NOD_eval_log.hh.
Referenced by blender::compositor::PixelOperation::log_data(), blender::compositor::log_result(), and log_value().
| std::optional<ComputeContextHash> blender::nodes::eval_log::NodeTreeLogger::parent_hash |
Definition at line 298 of file NOD_eval_log.hh.
| std::optional<int32_t> blender::nodes::eval_log::NodeTreeLogger::parent_node_id |
Definition at line 299 of file NOD_eval_log.hh.
Referenced by blender::nodes::eval_log::NodeTreeLog::ensure_node_warnings().
| 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().
| linear_allocator::ChunkedList<AttributeUsageWithNode> blender::nodes::eval_log::NodeTreeLogger::used_named_attributes |
Definition at line 353 of file NOD_eval_log.hh.
| linear_allocator::ChunkedList<ViewerNodeLogWithNode> blender::nodes::eval_log::NodeTreeLogger::viewer_node_logs |
Definition at line 352 of file NOD_eval_log.hh.
Referenced by blender::nodes::LazyFunctionForViewerNode::execute_impl().