Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] fix on link type creation (was indexed by type name, but should consider...
[simgrid.git] / src / instr / instr_msg_volume.c
1 /* Copyright (c) 2010. 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 #include "instr/instr_private.h"
8
9 #ifdef HAVE_TRACING
10
11 void TRACE_msg_volume_start(m_task_t task)
12 {
13   xbt_die ("tracing/msg/volume:1 is deprecated.");
14 //  m_process_t process = NULL;
15 //  m_host_t host = NULL;
16 //  char process_name[200], process_alias[200];
17 //  char task_name[200];
18 //  double volume = 0;
19 //  if (!TRACE_msg_volume_is_enabled())
20 //    return;
21 //
22 //  /* check if task is traced */
23 //  if (!task->category)
24 //    return;
25 //
26 //  /* check if process is traced */
27 //  process = MSG_process_self();
28 //  if (!process->category)
29 //    return;
30 //
31 //  host = MSG_process_get_host(process);
32 //  TRACE_process_container(process, process_name, 200);
33 //  TRACE_process_alias_container(process, host, process_alias, 200);
34 //  TRACE_task_container(task, task_name, 200);
35 //
36 //  volume = MSG_task_get_data_size(task);
37 //
38 //  pajeStartLinkWithVolume(MSG_get_clock(), "volume", "0", task->category,
39 //                          process_alias, task_name, volume);
40 }
41
42 void TRACE_msg_volume_finish(m_task_t task)
43 {
44   xbt_die ("tracing/msg/volume:1 is deprecated.");
45 //  char process_name[200], process_alias[200];
46 //  char task_name[200];
47 //  m_process_t process = NULL;
48 //  m_host_t host = NULL;
49 //  if (!TRACE_msg_volume_is_enabled())
50 //    return;
51 //
52 //  /* check if task is traced */
53 //  if (!task->category)
54 //    return;
55 //
56 //  /* check if process is traced */
57 //  process = MSG_process_self();
58 //  if (!process->category)
59 //    return;
60 //
61 //  host = MSG_process_get_host(process);
62 //  TRACE_process_container(process, process_name, 200);
63 //  TRACE_process_alias_container(process, host, process_alias, 200);
64 //  TRACE_task_container(task, task_name, 200);
65 //
66 //  pajeEndLink(MSG_get_clock(), "volume", "0", task->category,
67 //              process_alias, task_name);
68 }
69
70 #endif /* HAVE_TRACING */