Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
definitely kill the Horrible Pimple
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 30 Nov 2010 22:33:49 +0000 (22:33 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 30 Nov 2010 22:33:49 +0000 (22:33 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8788 48e7efb5-ca39-0410-a469-dd3cf9ba447f

ChangeLog
examples/msg/icomms/peer.c
examples/msg/icomms/peer2.c
examples/msg/icomms/peer3.c
examples/msg/masterslave/masterslave_mailbox.c
include/xbt.h
src/simix/smx_network.c

index 6f57f85..7444886 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -60,6 +60,8 @@ SimGrid (3.5) unstable; urgency=low
    can wait on several of them simultaneously (as in waitany).
  * Fix the way to handle tokens in semaphores so that all access patterns
    work: {acquire, acquire_timeout, waitany} / {release, release_forever}.
    can wait on several of them simultaneously (as in waitany).
  * Fix the way to handle tokens in semaphores so that all access patterns
    work: {acquire, acquire_timeout, waitany} / {release, release_forever}.
+ * kill the dirty pimple SIMIX_message_sizes_output()
+   Please use (proper) visualization instead
 
  SIMDAG
  * Fix a bug in the management of tasks of size 0 in the surf network
 
  SIMDAG
  * Fix a bug in the management of tasks of size 0 in the surf network
index ccf0ac4..1d70c27 100644 (file)
@@ -166,7 +166,6 @@ int main(int argc, char *argv[])
     exit(1);
   }
   res = test_all(argv[1], argv[2]);
     exit(1);
   }
   res = test_all(argv[1], argv[2]);
-  SIMIX_message_sizes_output("toto.txt");
   MSG_clean();
 
   if (res == MSG_OK)
   MSG_clean();
 
   if (res == MSG_OK)
index d5d7c95..0d3fb0a 100644 (file)
@@ -126,7 +126,6 @@ int main(int argc, char *argv[])
     exit(1);
   }
   res = test_all(argv[1], argv[2]);
     exit(1);
   }
   res = test_all(argv[1], argv[2]);
-  SIMIX_message_sizes_output("toto.txt");
   MSG_clean();
 
   if (res == MSG_OK)
   MSG_clean();
 
   if (res == MSG_OK)
index 93e933c..72a3eb3 100644 (file)
@@ -164,7 +164,6 @@ int main(int argc, char *argv[])
     exit(1);
   }
   res = test_all(argv[1], argv[2]);
     exit(1);
   }
   res = test_all(argv[1], argv[2]);
-  SIMIX_message_sizes_output("toto.txt");
   MSG_clean();
 
   if (res == MSG_OK)
   MSG_clean();
 
   if (res == MSG_OK)
index 02ebcc5..fdf0e48 100644 (file)
@@ -131,7 +131,6 @@ int main(int argc, char *argv[])
     exit(1);
   }
   res = test_all(argv[1], argv[2]);
     exit(1);
   }
   res = test_all(argv[1], argv[2]);
-  SIMIX_message_sizes_output("toto.txt");
   MSG_clean();
 
   if (res == MSG_OK)
   MSG_clean();
 
   if (res == MSG_OK)
index 21bdd49..46c396a 100644 (file)
@@ -31,7 +31,4 @@
 #include <xbt/config.h>
 #include <xbt/cunit.h>
 
 #include <xbt/config.h>
 #include <xbt/cunit.h>
 
-/* pimple to display the message sizes */
-XBT_PUBLIC(void) SIMIX_message_sizes_output(const char *filename);
-
 #endif                          /* xbt_H */
 #endif                          /* xbt_H */
index ab5a33f..46b0594 100644 (file)
@@ -482,23 +482,6 @@ void SIMIX_network_copy_data(smx_comm_t comm)
   }
 }
 
   }
 }
 
-#include "xbt.h"
-/* pimple to display the message sizes */
-void SIMIX_message_sizes_output(const char *filename)
-{
-  uintptr_t key = 0;
-  uintptr_t data = 0;
-  xbt_dict_cursor_t cursor;
-  FILE *out = NULL;
-  out = fopen(filename, "w");
-  xbt_assert1(out, "Cannot open file %s", filename);
-
-  xbt_dict_foreach(simix_global->msg_sizes, cursor, key, data) {
-    fprintf(out, "%zu %zu\n", key, data);
-  }
-  fclose(out);
-}
-
 /**
  *  \brief Return the user data associated to the communication
  *  \param comm The communication
 /**
  *  \brief Return the user data associated to the communication
  *  \param comm The communication