diff options
author | Kali Kaneko (leap communications) <kali@leap.se> | 2016-05-02 20:13:19 -0400 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2016-05-02 20:13:19 -0400 |
commit | 01e2a72ce30f0fbb4a027d3246a8ba16e00ae197 (patch) | |
tree | 22fc0d2b7016d34d48fad45c88349b0103cd8308 /Makefile | |
parent | 71a21f8fa46e8ea834fe3381abdadde59788d37b (diff) | |
parent | f72a3bf28f4bf001106ad4d42ae7eb4f61b77828 (diff) |
Merge remote-tracking branch 'kali-github/pr/2'
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 30 |
1 files changed, 21 insertions, 9 deletions
@@ -1,18 +1,18 @@ # Actual soledad sync soledad-sync-server: - twistd -n web --port 8080 --class=server_with_soledad_syncer.resource + twistd -n web --port 8080 --class=scripts.server_with_soledad_syncer.resource soledad-sync-server-lineprof: - kernprof -l server_with_soledad_syncer.py + kernprof -l ./scripts/server_with_soledad_syncer.py soledad-sync-server-debug: #twistd --profile=stats_obj --profiler=cProfile -n web --port 8080 --class=server_with_soledad_syncer.resource - python -m cProfile -o sync.cprofile server_with_soledad_syncer.py + python -m cProfile -o sync.cprofile ./scripts/server_with_soledad_syncer.py view-lineprofile: - python -m line_profiler server_with_soledad_syncer.py.lprof + python -m line_profiler ./scripts/server_with_soledad_syncer.py.lprof view-profile: @@ -21,9 +21,14 @@ view-profile: measure-ping: httperf --server localhost --port 8080 --num-calls 5 --num-conns 20 --uri /ping +trigger-create-docs: + curl localhost:8080/create-docs + trigger-sync: #time curl localhost:8080/start-sync curl localhost:8080/start-sync + +trigger-stop: curl localhost:8080/stop measure-series: @@ -31,9 +36,16 @@ measure-series: # TODO rm series.log, name it with a timestamp # TODO measure, first of all, the number of seconds from the beginning!!! (right now it's biased) # TODO add cpu/ram usage (ping command COULD RETURN THAT!) - rm -f /tmp/soledadsync/* - rm -f series.log - python measure-perf-series.py + #rm -f /tmp/soledadsync/* + rm -f ./out/series.log + ./scripts/measure_perf_series.py + +graph-image: + gnuplot -e 'call "./scripts/sync_stats.gnuplot" "./out/series.log" "./out/sync-stats.png"' + +graph-view: + gnuplot -e 'call "./scripts/sync_stats.gnuplot" "./out/series.log" ""' -graph-series: - data=series.log ./graphit +kill: + killall -9 twistd + killall -9 python |