X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bdfe4f8674f98efbf2d67ad854ef83a1d5f855ed..7ce752524bd815bb66b262e4288903c6a9ebfc93:/examples/msg/tracing/ms.c diff --git a/examples/msg/tracing/ms.c b/examples/msg/tracing/ms.c index e831432d92..18d7b116ca 100644 --- a/examples/msg/tracing/ms.c +++ b/examples/msg/tracing/ms.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2012. The SimGrid Team. +/* Copyright (c) 2010-2015. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -12,15 +12,15 @@ * enable the tracing of categorized resource utilization, the use of trace marks, * and user variables associated to the hosts of the platform file. * You might want to run this program with the following parameters: - * --cfg=tracing/categorized:1 - * --cfg=tracing/uncategorized:1 + * --cfg=tracing/categorized:yes + * --cfg=tracing/uncategorized:yes * --cfg=viva/categorized:viva_cat.plist * --cfg=viva/uncategorized:viva_uncat.plist * (See \ref tracing_tracing_options for details) */ #include -#include "msg/msg.h" +#include "simgrid/msg.h" #include "xbt/sysdep.h" /* calloc, printf */ /* Create a log channel to have nice outputs. */ @@ -88,7 +88,7 @@ int slave(int argc, char *argv[]) //to the variable "task_computation" TRACE_host_variable_add(MSG_host_get_name(MSG_host_self()), "task_computation", - MSG_task_get_compute_duration(task)); + MSG_task_get_flops_amount(task)); MSG_task_execute(task); MSG_task_destroy(task); task = NULL;