Blender  V3.3
DEG_depsgraph_debug.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2014 Blender Foundation. All rights reserved. */
3 
10 #pragma once
11 
12 #include <stdio.h>
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 struct Depsgraph;
19 struct Scene;
20 struct ViewLayer;
21 
22 /* ------------------------------------------------ */
23 
24 /* NOTE: Those flags are same bit-mask as #G.debug_flags */
25 
26 void DEG_debug_flags_set(struct Depsgraph *depsgraph, int flags);
28 
29 void DEG_debug_name_set(struct Depsgraph *depsgraph, const char *name);
30 const char *DEG_debug_name_get(struct Depsgraph *depsgraph);
31 
32 /* ------------------------------------------------ */
33 
40 void DEG_stats_simple(const struct Depsgraph *graph,
41  size_t *r_outer,
42  size_t *r_operations,
43  size_t *r_relations);
44 
45 /* ************************************************ */
46 /* Diagram-Based Graph Debugging */
47 
48 void DEG_debug_relations_graphviz(const struct Depsgraph *graph, FILE *fp, const char *label);
49 
51  FILE *fp,
52  const char *label,
53  const char *output_filename);
54 
55 /* ************************************************ */
56 
58 bool DEG_debug_compare(const struct Depsgraph *graph1, const struct Depsgraph *graph2);
59 
62  struct Main *bmain,
63  struct Scene *scene,
64  struct ViewLayer *view_layer);
65 
68 
69 #ifdef __cplusplus
70 } /* extern "C" */
71 #endif
struct Depsgraph Depsgraph
Definition: DEG_depsgraph.h:35
bool DEG_debug_graph_relations_validate(struct Depsgraph *graph, struct Main *bmain, struct Scene *scene, struct ViewLayer *view_layer)
void DEG_debug_flags_set(struct Depsgraph *depsgraph, int flags)
void DEG_debug_relations_graphviz(const struct Depsgraph *graph, FILE *fp, const char *label)
bool DEG_debug_compare(const struct Depsgraph *graph1, const struct Depsgraph *graph2)
int DEG_debug_flags_get(const struct Depsgraph *depsgraph)
void DEG_stats_simple(const struct Depsgraph *graph, size_t *r_outer, size_t *r_operations, size_t *r_relations)
bool DEG_debug_consistency_check(struct Depsgraph *graph)
void DEG_debug_name_set(struct Depsgraph *depsgraph, const char *name)
const char * DEG_debug_name_get(struct Depsgraph *depsgraph)
void DEG_debug_stats_gnuplot(const struct Depsgraph *graph, FILE *fp, const char *label, const char *output_filename)
Depsgraph * graph
const char * output_filename
const char * label
Scene scene
const Depsgraph * depsgraph
Definition: BKE_main.h:121
char name[64]