Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
[simgrid.git] / examples / msg / trace-platform / trace-platform.c
1 /* Copyright (c) 2010, 2012-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 /** @addtogroup MSG_examples
8  * 
9  * - <b>Tracing the platform: trace-platform/trace-platform.c</b>. This example just loads a platform file to
10  *  demonstrate how it can be traced into the Paje trace file format. You might want to run this program with the
11  *  following options: <i>--cfg=tracing:yes</i> and <i>--cfg=tracing/categorized:yes</i>.
12  */
13
14 #include "simgrid/msg.h"
15
16 int main(int argc, char *argv[])
17 {
18   MSG_init(&argc, argv);
19   xbt_assert(argc > 1, "Usage: %s platform_file\n\tExample: %s msg_platform.xml\n", argv[0], argv[0]);
20   MSG_create_environment(argv[1]);
21   MSG_main();
22   return 0;
23 }