diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-10-24 17:00:50 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-10-25 12:25:10 +0300 |
commit | f29ff14d6e369d77878769329fc6b08478a54a03 (patch) | |
tree | 28f16911b796a694e4067b633ad15bdaeab73489 /source/blender/depsgraph/DEG_depsgraph_debug.h | |
parent | 2103194f794c9c5260583ceb7d7bbaf73f783f48 (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.h | 36 |
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); |