Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-10-24 17:00:50 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-10-24 17:04:11 +0300
commitb6560d9fc16d74409c001bffc37a85ba1d224475 (patch)
treea507d8c6c804b9501e988b3659777e9fad0795f8 /source/blender/depsgraph/DEG_depsgraph_debug.h
parent86faf8ac844f8d227a4c4fada7d5eb28a93ee6a7 (diff)
Depsgraph: Remove bunch of debug code
Was never actually used and implementation seems to be slow: we shouldn't be doing per-node evaluation hash lookups, adds too much overhead. We can instead store statistics in the node itself, and maybe even group them somehow. Ideally such a statistics should be user-friendly so riggers and animators can see exactly what's happening.
Diffstat (limited to 'source/blender/depsgraph/DEG_depsgraph_debug.h')
-rw-r--r--source/blender/depsgraph/DEG_depsgraph_debug.h36
1 files changed, 1 insertions, 35 deletions
diff --git a/source/blender/depsgraph/DEG_depsgraph_debug.h b/source/blender/depsgraph/DEG_depsgraph_debug.h
index 0d19b8e1e97..63ebe21d073 100644
--- a/source/blender/depsgraph/DEG_depsgraph_debug.h
+++ b/source/blender/depsgraph/DEG_depsgraph_debug.h
@@ -39,45 +39,11 @@
extern "C" {
#endif
-struct GHash;
-struct ID;
-
struct Depsgraph;
-/* ************************************************ */
-/* Statistics */
-
-typedef struct DepsgraphStatsTimes {
- float duration_last;
-} DepsgraphStatsTimes;
-
-typedef struct DepsgraphStatsComponent {
- struct DepsgraphStatsComponent *next, *prev;
-
- char name[64];
- DepsgraphStatsTimes times;
-} DepsgraphStatsComponent;
-
-typedef struct DepsgraphStatsID {
- struct ID *id;
-
- DepsgraphStatsTimes times;
- ListBase components;
-} DepsgraphStatsID;
-
-typedef struct DepsgraphStats {
- struct GHash *id_stats;
-} DepsgraphStats;
-
-struct DepsgraphStats *DEG_stats(void);
-
-void DEG_stats_verify(void);
-
-struct DepsgraphStatsID *DEG_stats_id(struct ID *id);
-
/* ------------------------------------------------ */
-void DEG_stats_simple(const struct Depsgraph *graph,
+void DEG_stats_simple(const struct Depsgraph *graph,
size_t *r_outer,
size_t *r_operations,
size_t *r_relations);