summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/NEWS2
-rw-r--r--tools/ivythroughput.cpp13
2 files changed, 11 insertions, 4 deletions
diff --git a/doc/NEWS b/doc/NEWS
index bbd6dd4..1b5db58 100644
--- a/doc/NEWS
+++ b/doc/NEWS
@@ -58,7 +58,7 @@ void congestCB ( IvyClientPtr app, void *user_data, IvyApplicationEvent event )
}
5.a new tool for measuring performance : ivythroughput
- ./ivythroughput_omp -v -t tp -R 500 -M 5000 -n4-d 60
+ ./ivythroughput_omp -v -t tp -R 500 -M 5000 -n4 -d 60
this will initiate a bench : 10 clients are created, they will bind 500 regexps of the file testivy/regexp.txt, then the emitter process will periodically send 5000 messages of the file
testivy/messages.ivy, and this will be displayed :
diff --git a/tools/ivythroughput.cpp b/tools/ivythroughput.cpp
index 1803e66..8100dea 100644
--- a/tools/ivythroughput.cpp
+++ b/tools/ivythroughput.cpp
@@ -196,6 +196,9 @@ int main(int argc, char *argv[])
for (unsigned int i=0; i< numClients; i++) {
if ((pid = fork ()) == 0) {
// fils
+#ifdef __APPLE__
+ usleep (200 * 1000);
+#endif
switch (kindOfTest) {
case throughput :
recepteur_tp (bus, kindOfTest, i, regexps, 0);
@@ -495,9 +498,13 @@ void congestCB ( IvyClientPtr app, void *user_data, IvyApplicationEvent event )
break;
#endif
case IvyApplicationConnected:
- // printf("Application:%s : Connected\n", appName.c_str());
+#ifdef __APPLE__
+ printf("Application:%s : Connected\n", appName.c_str());
+#endif
case IvyApplicationDisconnected:
- // printf("Application:%s : Disconnected\n", appName.c_str());
+#ifdef __APPLE__
+ printf("Application:%s : Disconnected\n", appName.c_str());
+#endif
break;
}
}
@@ -551,7 +558,7 @@ void recepteurReadyCB (IvyClientPtr app, void *user_data, int argc, char *argv[]
for (unsigned int i=0; i< numClients; i++) {
if (recReady[i]==false) {
- // printf ("Emetteur : manque recepteur [%d/%d]\n", i, numClients-1);
+ printf ("Emetteur :Recepteur[%d] OK, manque recepteur [%d/%d]\n", instance, i, numClients-1);
readyToStart = false;
}
}