X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/46b9e6d14dd54341e0fc10781fba35077cfac9a9..fa8e71be179a7a12e74bcc550fa6fe2c54b8446a:/tools/graphicator/graphicator.c diff --git a/tools/graphicator/graphicator.c b/tools/graphicator/graphicator.c index 72b8fceb5b..b4186394d0 100644 --- a/tools/graphicator/graphicator.c +++ b/tools/graphicator/graphicator.c @@ -16,6 +16,7 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(graphicator, int main(int argc, char **argv) { + XBT_LOG_CONNECT(graphicator); #ifdef HAVE_TRACING MSG_global_init(&argc, argv); @@ -28,13 +29,9 @@ int main(int argc, char **argv) MSG_create_environment(platformFile); - //creating the graph structure - xbt_graph_t graph = TRACE_platform_graph(); - if (graph == NULL){ + int status = TRACE_platform_graph_export_graphviz (graphvizFile); + if (status == 0){ XBT_INFO ("%s expects --cfg=tracing:1 --cfg=tracing/platform:1", argv[0]); - }else{ - TRACE_platform_graph_export_graphviz (graph, graphvizFile); - XBT_INFO ("Output is in file %s", graphvizFile); } MSG_clean(); #else