Blender
V3.3
|
#include "BLI_utildefines.h"
#include "DNA_scene_types.h"
#include "DNA_object_types.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_build.h"
#include "DEG_depsgraph_debug.h"
#include "DEG_depsgraph_query.h"
#include "intern/debug/deg_debug.h"
#include "intern/depsgraph.h"
#include "intern/depsgraph_relation.h"
#include "intern/depsgraph_type.h"
#include "intern/node/deg_node_component.h"
#include "intern/node/deg_node_id.h"
#include "intern/node/deg_node_time.h"
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 (struct Depsgraph *depsgraph, const char *name) |
const char * | DEG_debug_name_get (struct Depsgraph *depsgraph) |
bool | DEG_debug_compare (const struct Depsgraph *graph1, const struct 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 (struct Depsgraph *depsgraph) |
void | DEG_debug_print_begin (struct Depsgraph *depsgraph) |
void | DEG_debug_print_eval (struct Depsgraph *depsgraph, const char *function_name, const char *object_name, const void *object_address) |
void | DEG_debug_print_eval_subdata (struct 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 (struct 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 (struct 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 (struct 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.
Compare two dependency graphs.
Definition at line 55 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().
Perform consistency check on the graph.
Definition at line 90 of file depsgraph_debug.cc.
References BLI_assert, blender::deg::Relation::from, graph, blender::deg::Node::inlinks, node, blender::deg::OperationNode::num_links_pending, blender::deg::Depsgraph::operations, blender::deg::Node::outlinks, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::deg::Relation::to, and blender::deg::Node::type.
Referenced by blender::deg::AbstractBuilderPipeline::build_step_finalize().
int DEG_debug_flags_get | ( | const Depsgraph * | depsgraph | ) |
Definition at line 37 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(), and DEG_debug_print_eval_time().
Definition at line 31 of file depsgraph_debug.cc.
References blender::deg::Depsgraph::debug, depsgraph, and blender::deg::DepsgraphDebug::flags.
bool DEG_debug_graph_relations_validate | ( | struct Depsgraph * | graph, |
struct Main * | bmain, | ||
struct Scene * | scene, | ||
struct ViewLayer * | view_layer | ||
) |
Check that dependencies in the graph are really up to date.
Definition at line 73 of file depsgraph_debug.cc.
References BLI_assert_msg, DEG_debug_compare(), DEG_get_mode(), DEG_graph_build_from_view_layer(), DEG_graph_free(), DEG_graph_new(), graph, and scene.
const char* DEG_debug_name_get | ( | struct Depsgraph * | depsgraph | ) |
Definition at line 49 of file depsgraph_debug.cc.
References blender::deg::Depsgraph::debug, depsgraph, and blender::deg::DepsgraphDebug::name.
Referenced by depsgraph_name_for_logging().
Definition at line 43 of file depsgraph_debug.cc.
References blender::deg::Depsgraph::debug, depsgraph, and blender::deg::DepsgraphDebug::name.
Referenced by engine_depsgraph_init(), render_init_depsgraph(), scene_ensure_depsgraph_p(), and seq_prefetch_init_depsgraph().
Definition at line 235 of file depsgraph_debug.cc.
References depsgraph, and depsgraph_name_for_logging().
void DEG_debug_print_eval | ( | struct Depsgraph * | depsgraph, |
const char * | function_name, | ||
const char * | object_name, | ||
const void * | object_address | ||
) |
Definition at line 240 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_gpencil_frame_active_set(), BKE_gpencil_prepare_eval_data(), BKE_light_eval(), BKE_mask_eval_animation(), BKE_mask_eval_update(), BKE_material_eval(), BKE_mesh_eval_geometry(), BKE_movieclip_eval_selection_update(), BKE_movieclip_eval_update(), BKE_object_data_select_update(), BKE_object_eval_constraints(), BKE_object_eval_eval_base_flags(), BKE_object_eval_local_transform(), BKE_object_eval_parent(), BKE_object_eval_ptcache_reset(), 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_evaluate_copy_on_write(), blender::deg::deg_evaluate_object_node_visibility(), layer_eval_view_layer(), and SEQ_eval_sequences().
void DEG_debug_print_eval_parent_typed | ( | struct 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 315 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 | ( | struct 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 259 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 | ( | struct 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 286 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 | ( | struct Depsgraph * | depsgraph, |
const char * | function_name, | ||
const char * | object_name, | ||
const void * | object_address, | ||
float | time | ||
) |
Definition at line 342 of file depsgraph_debug.cc.
References blender::deg::color_end(), blender::deg::color_for_pointer(), DEG_debug_flags_get(), depsgraph, depsgraph_name_for_logging(), G_DEBUG_DEPSGRAPH_EVAL, and time.
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 | ||
) |
Definition at line 183 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 226 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().