Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
please sonar by removing 2 redundent forward declaration
[simgrid.git] / tools / graphicator / graphicator.c
1 /* Copyright (c) 2008-2015. The SimGrid Team.
2  * All rights reserved.                                                     */
3
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. */
6
7 #include "simgrid/msg.h"
8 #include "xbt/graph.h"
9
10 XBT_LOG_NEW_DEFAULT_CATEGORY(graphicator, "Graphicator Logging System");
11
12 int main(int argc, char **argv)
13 {
14   XBT_LOG_CONNECT(graphicator);
15   MSG_init(&argc, argv);
16
17   xbt_assert(argc == 3, "Usage: %s <platform_file.xml> <graphviz_file.dot>", argv[0]);
18
19   MSG_create_environment(argv[1]);
20   int status = TRACE_platform_graph_export_graphviz (argv[2]);
21
22   xbt_assert(status != 0, "%s expects --cfg=tracing:yes --cfg=tracing/platform:yes", argv[0]);
23   return 0;
24 }