summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2016-04-12 09:58:23 -0400
committerKali Kaneko (leap communications) <kali@leap.se>2016-04-12 09:58:23 -0400
commit7595e5f951470632ca8fb2389f9125053d11cf92 (patch)
tree7b278fc29ca60935eda15e69005369c494c9a832 /Makefile
parente07e764a11cacfa374de75de7da16be935e5e8f4 (diff)
add profiler targets
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2b9b706..aa881dc 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,14 @@
# Actual soledad sync
soledad-sync-server:
- ./server_with_soledad_syncer.py
+ twistd -n web --port 8080 --class=server_with_soledad_syncer.resource
+
+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
+
+view-profile:
+ cprofilev -f sync.cprofile
measure-ping:
httperf --server localhost --port 8080 --num-calls 5 --num-conns 20 --uri /ping