X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d99acd8d7967a6024712572ba6a03830c8b5e7b1..ebad335f389796b72af10c2a52ee6db300980179:/examples/msg/tracing/ms.c diff --git a/examples/msg/tracing/ms.c b/examples/msg/tracing/ms.c index 8381dcaee5..51e460ff71 100644 --- a/examples/msg/tracing/ms.c +++ b/examples/msg/tracing/ms.c @@ -1,6 +1,5 @@ -/* $Id$ */ - -/* Copyright (c) 2002,2003,2004 Arnaud Legrand. All rights reserved. */ +/* Copyright (c) 2010. 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. */ @@ -105,8 +104,15 @@ int main(int argc, char *argv[]) { MSG_error_t res = MSG_OK; + MSG_global_init(&argc,argv); + if (argc < 3) { + printf ("Usage: %s platform_file deployment_file\n",argv[0]); + printf ("example: %s msg_platform.xml msg_deployment.xml\n",argv[0]); + exit(1); + } + //starting the simulation tracing - TRACE_start ("ms.trace"); + TRACE_start (); //declaring user variables TRACE_host_variable_declare ("is_slave"); @@ -118,12 +124,6 @@ int main(int argc, char *argv[]) TRACE_category ("compute"); TRACE_category ("finalize"); - MSG_global_init(&argc,argv); - if (argc < 3) { - printf ("Usage: %s platform_file deployment_file\n",argv[0]); - printf ("example: %s msg_platform.xml msg_deployment.xml\n",argv[0]); - exit(1); - } res = test_all(argv[1],argv[2]); MSG_clean();