X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ec40265fd12aabf117e6c0c3f77347bc351cff76..1bc7aeab041e3ce07b22351094fa1f1700cfde72:/examples/msg/trace-platform/trace-platform.c diff --git a/examples/msg/trace-platform/trace-platform.c b/examples/msg/trace-platform/trace-platform.c new file mode 100644 index 0000000000..6cb9d80f7f --- /dev/null +++ b/examples/msg/trace-platform/trace-platform.c @@ -0,0 +1,25 @@ +/* Copyright (c) 2010, 2012-2015. The SimGrid Team. + * All rights reserved. */ + +/* This program is free software; you can redistribute it and/or modify it + * under the terms of the license (GNU LGPL) which comes with this package. */ + +/** @addtogroup MSG_examples + * + * - tracing/trace_platform.c: This program demonstrates how a platform file is traced to a Paje trace file + * format using the tracing mechanism of Simgrid. You might want to run this program with the following parameters: + * --cfg=tracing:yes + * --cfg=tracing/categorized:yes + * (See \ref tracing_tracing_options for details) + */ + +#include "simgrid/msg.h" + +int main(int argc, char *argv[]) +{ + MSG_init(&argc, argv); + xbt_assert(argc > 1, "Usage: %s platform_file\n\tExample: %s msg_platform.xml\n", argv[0], argv[0]); + MSG_create_environment(argv[1]); + MSG_main(); + return 0; +}