|
Blender V4.3
|
#include "BLI_utildefines.h"#include "DNA_scene_types.h"#include "DNA_object_types.h"#include "DEG_depsgraph.hh"#include "DEG_depsgraph_build.hh"#include "DEG_depsgraph_debug.hh"#include "DEG_depsgraph_query.hh"#include "intern/debug/deg_debug.h"#include "intern/depsgraph.hh"#include "intern/depsgraph_relation.hh"#include "intern/depsgraph_type.hh"#include "intern/node/deg_node_component.hh"#include "intern/node/deg_node_id.hh"#include "intern/node/deg_node_time.hh"Go to the source code of this file.
Functions | |
| void | DEG_debug_flags_set (Depsgraph *depsgraph, int flags) |
| int | DEG_debug_flags_get (const Depsgraph *depsgraph) |
| void | DEG_debug_name_set (Depsgraph *depsgraph, const char *name) |
| const char * | DEG_debug_name_get (Depsgraph *depsgraph) |
| bool | DEG_debug_compare (const Depsgraph *graph1, const Depsgraph *graph2) |
| bool | DEG_debug_graph_relations_validate (Depsgraph *graph, Main *bmain, Scene *scene, ViewLayer *view_layer) |
| bool | DEG_debug_consistency_check (Depsgraph *graph) |
| void | DEG_stats_simple (const Depsgraph *graph, size_t *r_outer, size_t *r_operations, size_t *r_relations) |
| static deg::string | depsgraph_name_for_logging (Depsgraph *depsgraph) |
| void | DEG_debug_print_begin (Depsgraph *depsgraph) |
| void | DEG_debug_print_eval (Depsgraph *depsgraph, const char *function_name, const char *object_name, const void *object_address) |
| void | DEG_debug_print_eval_subdata (Depsgraph *depsgraph, const char *function_name, const char *object_name, const void *object_address, const char *subdata_comment, const char *subdata_name, const void *subdata_address) |
| void | DEG_debug_print_eval_subdata_index (Depsgraph *depsgraph, const char *function_name, const char *object_name, const void *object_address, const char *subdata_comment, const char *subdata_name, const void *subdata_address, const int subdata_index) |
| void | DEG_debug_print_eval_parent_typed (Depsgraph *depsgraph, const char *function_name, const char *object_name, const void *object_address, const char *parent_comment, const char *parent_name, const void *parent_address) |
| void | DEG_debug_print_eval_time (Depsgraph *depsgraph, const char *function_name, const char *object_name, const void *object_address, float time) |
Implementation of tools for debugging the depsgraph
Definition in file depsgraph_debug.cc.
| bool DEG_debug_compare | ( | const Depsgraph * | graph1, |
| const Depsgraph * | graph2 ) |
Compare two dependency graphs.
Definition at line 56 of file depsgraph_debug.cc.
References BLI_assert, blender::deg::Depsgraph::operations, and blender::Vector< T, InlineBufferCapacity, Allocator >::size().
Referenced by DEG_debug_graph_relations_validate().
| bool DEG_debug_consistency_check | ( | Depsgraph * | graph | ) |
Perform consistency check on the graph.
Definition at line 91 of file depsgraph_debug.cc.
References BLI_assert, graph, blender::deg::Depsgraph::operations, and printf.
Referenced by blender::deg::AbstractBuilderPipeline::build_step_finalize().
| int DEG_debug_flags_get | ( | const Depsgraph * | depsgraph | ) |
Definition at line 38 of file depsgraph_debug.cc.
References blender::deg::Depsgraph::debug, depsgraph, and blender::deg::DepsgraphDebug::flags.
Referenced by DEG_debug_print_eval(), DEG_debug_print_eval_parent_typed(), DEG_debug_print_eval_subdata(), DEG_debug_print_eval_subdata_index(), DEG_debug_print_eval_time(), and blender::deg::graph_id_tag_update().
| void DEG_debug_flags_set | ( | Depsgraph * | depsgraph, |
| int | flags ) |
Definition at line 32 of file depsgraph_debug.cc.
References blender::deg::Depsgraph::debug, depsgraph, and blender::deg::DepsgraphDebug::flags.
| bool DEG_debug_graph_relations_validate | ( | Depsgraph * | graph, |
| Main * | bmain, | ||
| Scene * | scene, | ||
| ViewLayer * | view_layer ) |
Check that dependencies in the graph are really up to date.
Definition at line 74 of file depsgraph_debug.cc.
References BLI_assert_msg, DEG_debug_compare(), DEG_get_mode(), DEG_graph_build_from_view_layer(), DEG_graph_free(), and DEG_graph_new().
| const char * DEG_debug_name_get | ( | Depsgraph * | depsgraph | ) |
Definition at line 50 of file depsgraph_debug.cc.
References blender::deg::Depsgraph::debug, depsgraph, and blender::deg::DepsgraphDebug::name.
Referenced by depsgraph_name_for_logging().
| void DEG_debug_name_set | ( | Depsgraph * | depsgraph, |
| const char * | name ) |
Definition at line 44 of file depsgraph_debug.cc.
References blender::deg::Depsgraph::debug, depsgraph, and blender::deg::DepsgraphDebug::name.
Referenced by blender::ed::space_node::compo_initjob(), engine_depsgraph_init(), render_init_depsgraph(), scene_ensure_depsgraph_p(), and seq_prefetch_init_depsgraph().
| void DEG_debug_print_begin | ( | Depsgraph * | depsgraph | ) |
Definition at line 236 of file depsgraph_debug.cc.
References depsgraph, and depsgraph_name_for_logging().
| void DEG_debug_print_eval | ( | Depsgraph * | depsgraph, |
| const char * | function_name, | ||
| const char * | object_name, | ||
| const void * | object_address ) |
Definition at line 241 of file depsgraph_debug.cc.
References blender::deg::color_end(), blender::deg::color_for_pointer(), DEG_debug_flags_get(), depsgraph, depsgraph_name_for_logging(), and G_DEBUG_DEPSGRAPH_EVAL.
Referenced by BKE_curve_eval_geometry(), BKE_light_eval(), BKE_mask_eval_animation(), BKE_mask_eval_update(), BKE_material_eval(), BKE_mesh_eval_geometry(), BKE_movieclip_eval_update(), BKE_object_data_select_update(), BKE_object_eval_constraints(), BKE_object_eval_eval_base_flags(), BKE_object_eval_light_linking(), BKE_object_eval_local_transform(), BKE_object_eval_parent(), BKE_object_eval_ptcache_reset(), BKE_object_eval_shading(), BKE_object_eval_transform_final(), BKE_object_eval_uber_data(), BKE_object_handle_data_update(), BKE_object_select_update(), BKE_particle_settings_eval_reset(), BKE_particle_system_eval_init(), BKE_pose_eval_cleanup(), BKE_pose_eval_done(), BKE_pose_eval_init(), BKE_pose_eval_init_ik(), BKE_sound_evaluate(), BKE_world_eval(), blender::deg::deg_create_eval_copy(), blender::deg::deg_evaluate_object_modifiers_mode_node_visibility(), blender::deg::deg_evaluate_object_node_visibility(), layer_eval_view_layer(), and SEQ_eval_sequences().
| void DEG_debug_print_eval_parent_typed | ( | Depsgraph * | depsgraph, |
| const char * | function_name, | ||
| const char * | object_name, | ||
| const void * | object_address, | ||
| const char * | parent_comment, | ||
| const char * | parent_name, | ||
| const void * | parent_address ) |
Definition at line 316 of file depsgraph_debug.cc.
References blender::deg::color_end(), blender::deg::color_for_pointer(), DEG_debug_flags_get(), depsgraph, depsgraph_name_for_logging(), and G_DEBUG_DEPSGRAPH_EVAL.
| void DEG_debug_print_eval_subdata | ( | Depsgraph * | depsgraph, |
| const char * | function_name, | ||
| const char * | object_name, | ||
| const void * | object_address, | ||
| const char * | subdata_comment, | ||
| const char * | subdata_name, | ||
| const void * | subdata_address ) |
Definition at line 260 of file depsgraph_debug.cc.
References blender::deg::color_end(), blender::deg::color_for_pointer(), DEG_debug_flags_get(), depsgraph, depsgraph_name_for_logging(), and G_DEBUG_DEPSGRAPH_EVAL.
Referenced by BKE_pose_bone_done(), BKE_pose_constraints_evaluate(), BKE_pose_eval_bbone_segments(), BKE_pose_eval_bone(), BKE_pose_iktree_evaluate(), and BKE_pose_splineik_evaluate().
| void DEG_debug_print_eval_subdata_index | ( | Depsgraph * | depsgraph, |
| const char * | function_name, | ||
| const char * | object_name, | ||
| const void * | object_address, | ||
| const char * | subdata_comment, | ||
| const char * | subdata_name, | ||
| const void * | subdata_address, | ||
| const int | subdata_index ) |
Definition at line 287 of file depsgraph_debug.cc.
References blender::deg::color_end(), blender::deg::color_for_pointer(), DEG_debug_flags_get(), depsgraph, depsgraph_name_for_logging(), and G_DEBUG_DEPSGRAPH_EVAL.
Referenced by BKE_animsys_eval_driver().
| void DEG_debug_print_eval_time | ( | Depsgraph * | depsgraph, |
| const char * | function_name, | ||
| const char * | object_name, | ||
| const void * | object_address, | ||
| float | time ) |
Definition at line 343 of file depsgraph_debug.cc.
References blender::deg::color_end(), blender::deg::color_for_pointer(), DEG_debug_flags_get(), depsgraph, depsgraph_name_for_logging(), and G_DEBUG_DEPSGRAPH_EVAL.
Referenced by BKE_animsys_eval_animdata(), BKE_rigidbody_eval_simulation(), BKE_rigidbody_object_sync_transforms(), and BKE_rigidbody_rebuild_sim().
| void DEG_stats_simple | ( | const Depsgraph * | graph, |
| size_t * | r_outer, | ||
| size_t * | r_operations, | ||
| size_t * | r_relations ) |
Obtain simple statistics about the complexity of the depsgraph.
| [out] | r_outer | The number of outer nodes in the graph. |
| [out] | r_operations | The number of operation nodes in the graph. |
| [out] | r_relations | The number of relations between (executable) nodes in the graph. |
Definition at line 184 of file depsgraph_debug.cc.
References blender::deg::Depsgraph::find_time_source(), graph, id_node, blender::deg::Depsgraph::id_nodes, blender::deg::Node::inlinks, blender::deg::Depsgraph::operations, and blender::Vector< T, InlineBufferCapacity, Allocator >::size().
|
static |
Definition at line 227 of file depsgraph_debug.cc.
References DEG_debug_name_get(), and depsgraph.
Referenced by DEG_debug_print_begin(), DEG_debug_print_eval(), DEG_debug_print_eval_parent_typed(), DEG_debug_print_eval_subdata(), DEG_debug_print_eval_subdata_index(), and DEG_debug_print_eval_time().