From: mquinson Date: Tue, 6 Oct 2009 16:59:41 +0000 (+0000) Subject: Dump dotty info for verification X-Git-Tag: SVN~982 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/91ca8dc9a60dbe1d4ded572f226fb388e07dd0d6?ds=sidebyside Dump dotty info for verification git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6731 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- 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;