diff options
author | bustico | 2008-05-20 16:59:31 +0000 |
---|---|---|
committer | bustico | 2008-05-20 16:59:31 +0000 |
commit | 844fa2212c691828172475528b3565e891feeef0 (patch) | |
tree | a321afdf32ded704a5486356eb57a3e28654bece | |
parent | f47a9932269b8dddf50b6d0c2bf3f7fb6084e889 (diff) | |
download | ivy-c-844fa2212c691828172475528b3565e891feeef0.zip ivy-c-844fa2212c691828172475528b3565e891feeef0.tar.gz ivy-c-844fa2212c691828172475528b3565e891feeef0.tar.bz2 ivy-c-844fa2212c691828172475528b3565e891feeef0.tar.xz |
minor fix specific to macosx
-rw-r--r-- | doc/NEWS | 2 | ||||
-rw-r--r-- | tools/ivythroughput.cpp | 13 |
2 files changed, 11 insertions, 4 deletions
@@ -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; } } |