Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cpp-ify and simpifly functions used by graphicator
[simgrid.git] / tools / graphicator / graphicator.cpp
1 /* Copyright (c) 2008-2020. 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/instr.h"
8 #include "simgrid/s4u.hpp"
9
10 int main(int argc, char** argv)
11 {
12   simgrid::s4u::Engine e(&argc, argv);
13   xbt_assert(argc == 3, "Usage: %s <platform_file.xml> <graphviz_file.dot>", argv[0]);
14
15   e.load_platform(argv[1]);
16   TRACE_platform_graph_export_graphviz(argv[2]);
17   return 0;
18 }