Blender V5.3
DEG_depsgraph_debug.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2014 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
10
11#pragma once
12
13#include <cstdio>
14#include <string>
15
16#include "BLI_string_ref.hh"
17
18namespace blender {
19
20struct Depsgraph;
21struct Main;
22struct Scene;
23struct ViewLayer;
24
25/* ------------------------------------------------ */
26
27/* NOTE: Those flags are same bit-mask as #G.debug_flags */
28
29void DEG_debug_flags_set(Depsgraph *depsgraph, int flags);
30int DEG_debug_flags_get(const Depsgraph *depsgraph);
31
32void DEG_debug_name_set(Depsgraph *depsgraph, const char *name);
33const char *DEG_debug_name_get(Depsgraph *depsgraph);
34
35/* ------------------------------------------------ */
36
43void DEG_stats_simple(const Depsgraph *graph,
44 size_t *r_outer,
45 size_t *r_operations,
46 size_t *r_relations);
47
48/* ************************************************ */
49/* Diagram-Based Graph Debugging */
50
51std::string DEG_debug_graph_to_dot(const Depsgraph &graph, StringRef label);
52
53void DEG_debug_stats_gnuplot(const Depsgraph *graph,
54 FILE *fp,
55 const char *label,
56 const char *output_filename);
57
58/* ************************************************ */
59
61bool DEG_debug_compare(const Depsgraph *graph1, const Depsgraph *graph2);
62
64bool DEG_debug_graph_relations_validate(Depsgraph *graph,
65 Main *bmain,
66 Scene *scene,
67 ViewLayer *view_layer);
68
70bool DEG_debug_consistency_check(Depsgraph *graph);
71
81std::string DEG_stringify_recalc_flags(unsigned int flags);
82
83} // namespace blender
const StringRefNull output_filename
BMesh Iterators.
bool DEG_debug_compare(const Depsgraph *graph1, const Depsgraph *graph2)
const char * DEG_debug_name_get(Depsgraph *depsgraph)
void DEG_debug_stats_gnuplot(const Depsgraph *graph, FILE *fp, const char *label, const char *output_filename)
bool DEG_debug_consistency_check(Depsgraph *graph)
bool DEG_debug_graph_relations_validate(Depsgraph *graph, Main *bmain, Scene *scene, ViewLayer *view_layer)
void DEG_stats_simple(const Depsgraph *graph, size_t *r_outer, size_t *r_operations, size_t *r_relations)
void DEG_debug_name_set(Depsgraph *depsgraph, const char *name)
std::string DEG_debug_graph_to_dot(const Depsgraph &graph, StringRef label)
void DEG_debug_flags_set(Depsgraph *depsgraph, int flags)
int DEG_debug_flags_get(const Depsgraph *depsgraph)
std::string DEG_stringify_recalc_flags(unsigned int flags)