Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
factoring and cleanups for msg/tracing
[simgrid.git] / examples / msg / tracing / 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/trace_platform.c</b>: This program demonstrates how a platform file is traced to a Paje trace file
10  * format using the tracing mechanism of Simgrid. You might want to run this program with the following parameters:
11  * --cfg=tracing:yes
12  * --cfg=tracing/categorized:yes
13  * (See \ref tracing_tracing_options for details)
14  */
15
16 #include "simgrid/msg.h"
17
18 XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, "Messages specific for this msg example");
19
20 int main(int argc, char *argv[])
21 {
22   MSG_init(&argc, argv);
23   if (argc < 2) {
24     printf("Usage: %s platform_file\n", argv[0]);
25     exit(1);
26   }
27
28   MSG_create_environment(argv[1]);
29   MSG_main();
30   return 0;
31 }