1 /* Copyright (c) 2010, 2012-2015. 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. */
7 /** @addtogroup MSG_examples
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:
12 * --cfg=tracing/categorized:yes
13 * (See \ref tracing_tracing_options for details)
16 #include "simgrid/msg.h"
18 int main(int argc, char *argv[])
20 MSG_init(&argc, argv);
21 xbt_assert(argc > 1, "Usage: %s platform_file\n\tExample: %s msg_platform.xml\n", argv[0], argv[0]);
22 MSG_create_environment(argv[1]);