From 91ca8dc9a60dbe1d4ded572f226fb388e07dd0d6 Mon Sep 17 00:00:00 2001 From: mquinson Date: Tue, 6 Oct 2009 16:59:41 +0000 Subject: [PATCH] Dump dotty info for verification git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6731 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- examples/simdag/dax/dax_test.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/examples/simdag/dax/dax_test.c b/examples/simdag/dax/dax_test.c index 3ba784d511..9a97ff94da 100644 --- a/examples/simdag/dax/dax_test.c +++ b/examples/simdag/dax/dax_test.c @@ -6,6 +6,7 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include +#include #include "simdag/simdag.h" #include "xbt/log.h" @@ -38,6 +39,15 @@ int main(int argc, char **argv) { xbt_dynar_foreach(dax,cursor,task) { SD_task_dump(task); } + + FILE *out = fopen("dax.dot","w"); + fprintf(out,"digraph A {\n"); + xbt_dynar_foreach(dax,cursor,task) { + SD_task_dotty(task,out); + } + fprintf(out,"}\n"); + fclose(out); + /* exit */ SD_exit(); return 1; -- 2.20.1