@@ -236,6 +236,7 @@ LaunchAnalyzer(){
236236 # Set the Paths for the gossip-metrics.json peerstore.json and output
237237 csv=" ${folderPath} /examples/${aux} /metrics/metrics.csv"
238238 peerstore=" ${folderPath} /examples/${aux} /metrics/peerstore.json"
239+ extrametrics=" ${folderPath} /examples/${aux} /metrics/extra-metrics.csv"
239240 plots=" ${folderPath} /examples/${aux} /plots"
240241
241242
@@ -248,7 +249,7 @@ LaunchAnalyzer(){
248249 # Run the Analyzer
249250 echo " Launching analyzer"
250251 echo " "
251- python ./src/analyzer/armiarma-analyzer.py " $csv " " $peerstore " " $plots "
252+ python ./src/analyzer/armiarma-analyzer.py " $csv " " $peerstore " " $extrametrics " " $ plots"
252253
253254 # Deactivate the VENV
254255 deactivate
@@ -299,7 +300,6 @@ while getopts ":hcpfdts" option; do
299300
300301 LaunchAnalyzer " $2 " " $PWD "
301302
302- echo " Note: If the Metrics Visualizer doesn't try opening the url: 'localhost:8000/graphs' or refresh the page"
303303 echo " "
304304 xdg-open " ${plots} /MetricsSummary.pdf"
305305
@@ -360,7 +360,7 @@ while getopts ":hcpfdts" option; do
360360 echo " Crawler selected"
361361 echo
362362 echo " network: $networkName "
363- echo " metrics-folder: ${IEXEC_OUT} /$folderName "
363+ echo " metrics-folder: examples /$folderName "
364364 echo
365365
366366
@@ -456,6 +456,7 @@ while getopts ":hcpfdts" option; do
456456 # Set the Paths for the gossip-metrics.json peerstore.json and output
457457 csv=" ${folderPath} /examples/${folderName} /metrics/metrics.csv"
458458 peerstore=" ${folderPath} /examples/${folderName} /metrics/peerstore.json"
459+ extrametrics=" ${folderPath} /examples/${aux} /metrics/extra-metrics.csv"
459460 plots=" ${folderPath} /examples/${folderName} /plots"
460461
461462 if [[ -d $plots ]]; then
@@ -467,7 +468,7 @@ while getopts ":hcpfdts" option; do
467468 # Run the Analyzer
468469 echo " Launching analyzer"
469470 echo " "
470- python3 ./src/analyzer/armiarma-analyzer.py " $csv " " $peerstore " " $plots "
471+ python3 ./src/analyzer/armiarma-analyzer.py " $csv " " $peerstore " " $extrametrics " " $ plots"
471472
472473 # # ---- END OF ANALYZER ----
473474
@@ -476,66 +477,15 @@ while getopts ":hcpfdts" option; do
476477 cd " ${folderPath} /examples"
477478
478479 echo " Exporting results to $IEXEC_OUT "
479- cp -r " ${folderName} /plots/MetricsSummary.pdf" " ${IEXEC_OUT} "
480+ cp -r " ${folderName} /plots/MetricsSummary.pdf" " ${IEXEC_OUT} / "
480481
481482
482483 # Generate the proof of computation
483484 echo " { \" deterministic-output-path\" : \" /iexec_out/MetricsSummary.pdf\" }" > " ${IEXEC_OUT} /computed.json"
484-
485-
486- ls -l $IEXEC_OUT
487485
488486 echo " Exit KUMO execution"
489487 exit ;;
490488
491- t) # Test flag, testing the environment to check if everything is working fine
492- echo " testing internet connection"
493- sleep 5
494- ping -c 4 google.com
495- echo " Working or not?"
496- cd src
497- echo " "
498-
499- # Test is the shell environment actually works
500- echo " testing shell environment"
501- for i in {1..10..1}
502- do
503- echo " printing test test/$i "
504- done
505-
506- echo " testing Rumor"
507- ./bin/armiarma file crawler/iexec_test.rumor --formatter=" terminal" --level=" info"
508- echo " end test of Rumor"
509- echo " "
510-
511- echo " Copying the results"
512- cp -r metrics/ " ${IEXEC_OUT} /metrics/"
513-
514- echo " testing python env"
515- python3 analyzer/python-env-test.py
516- echo " end python env test"
517- echo " "
518- echo " { \" deterministic-output-path\" : \" /iexec_out/metrics/\" }" > " ${IEXEC_OUT} /computed.json"
519- exit ;;
520-
521- s) # Test the analyzer part in the iexec platform
522-
523- echo " Launching analyzer"
524- echo " $PWD "
525-
526- csv=" ${IEXEC_IN} /${IEXEC_INPUT_FILE_NAME_1} "
527- peerstore=" ${IEXEC_IN} /${IEXEC_INPUT_FILE_NAME_2} "
528- plots=" ${IEXEC_OUT} /plots"
529-
530- mkdir " ${IEXEC_OUT} /plots/"
531- python3 ./src/analyzer/armiarma-analyzer.py " $csv " " $peerstore " " $plots "
532- # python3 ./src/analyzer/python-test.py
533-
534- echo " "
535- echo " { \" deterministic-output-path\" : \" /iexec_out/plots/\" }" > " ${IEXEC_OUT} /computed.json"
536- echo " Analyzer Finished!"
537- exit ;;
538-
539489 \? ) # incorrect option
540490 echo " Invalid option"
541491 echo
0 commit comments