From d988eae6f983c5ac148786689f75b95c4fa16dee Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 21 Dec 2017 12:56:44 +0100 Subject: Depsgraph: Make it more clear that we dump relations into graphviz We might implement other things to dump into graphviz, so better to start having explicit names. --- source/blender/depsgraph/DEG_depsgraph_debug.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/blender/depsgraph/DEG_depsgraph_debug.h') diff --git a/source/blender/depsgraph/DEG_depsgraph_debug.h b/source/blender/depsgraph/DEG_depsgraph_debug.h index 7d96b9ed602..e920e34dad3 100644 --- a/source/blender/depsgraph/DEG_depsgraph_debug.h +++ b/source/blender/depsgraph/DEG_depsgraph_debug.h @@ -51,7 +51,9 @@ void DEG_stats_simple(const struct Depsgraph *graph, /* ************************************************ */ /* Diagram-Based Graph Debugging */ -void DEG_debug_graphviz(const struct Depsgraph *graph, FILE *stream, const char *label); +void DEG_debug_relations_graphviz(const struct Depsgraph *graph, + FILE *stream, + const char *label); /* ************************************************ */ -- cgit v1.2.3 From 885bb5b137b5ea71869b741e6ee7acc1602ab5c6 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 21 Dec 2017 16:14:15 +0100 Subject: Depsgraph: Bring timing statistics to the new dependency graph This statistics is only collected when debug_value is different from 0. Stored in depsgraph node itself, so we can always have access to average data and other stats which requires persistent storage. This way we also don't waste time trying to find stats from a separately stored hash map. --- source/blender/depsgraph/DEG_depsgraph_debug.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/depsgraph/DEG_depsgraph_debug.h') diff --git a/source/blender/depsgraph/DEG_depsgraph_debug.h b/source/blender/depsgraph/DEG_depsgraph_debug.h index e920e34dad3..bc93fcc94cb 100644 --- a/source/blender/depsgraph/DEG_depsgraph_debug.h +++ b/source/blender/depsgraph/DEG_depsgraph_debug.h @@ -55,6 +55,11 @@ void DEG_debug_relations_graphviz(const struct Depsgraph *graph, FILE *stream, const char *label); +void DEG_debug_stats_gnuplot(const struct Depsgraph *graph, + FILE *stream, + const char *label, + const char *output_filename); + /* ************************************************ */ /* Compare two dependency graphs. */ -- cgit v1.2.3