1 /* Copyright (c) 2008, 2009, 2010. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
12 #include "xbt/graph.h"
14 XBT_LOG_NEW_DEFAULT_CATEGORY(graphicator,
15 "Graphicator Logging System");
17 int main(int argc, char **argv)
19 XBT_LOG_CONNECT(graphicator);
21 MSG_init(&argc, argv);
24 XBT_INFO("Usage: %s <platform_file.xml> <graphviz_file.dot>", argv[0]);
27 char *platformFile = argv[1];
28 char *graphvizFile = argv[2];
30 MSG_create_environment(platformFile);
32 int status = TRACE_platform_graph_export_graphviz (graphvizFile);
34 XBT_INFO ("%s expects --cfg=tracing:1 --cfg=tracing/platform:1", argv[0]);
37 XBT_INFO ("works only if simgrid was compiled with tracing enabled.");