Add profiled decorator and a tool to show profiler results.

The goal here is to make it easier to do ad hoc profiling on
our codebase, particularly by running tests.

(imported from commit 71da06feb3a369dec8dc4d8391f7f40e4c2d02ff)
This commit is contained in:
Steve Howell
2013-07-02 11:30:04 -04:00
parent cff0096f3b
commit 741929008b
3 changed files with 52 additions and 1 deletions

View File

@@ -10,7 +10,7 @@ from zephyr.models import Message, UserProfile, Stream, Recipient, Subscription,
get_display_recipient, Realm, Client, \
PreregistrationUser, UserMessage
from zephyr.tornadoviews import json_get_updates, api_get_messages
from zephyr.decorator import RespondAsynchronously, RequestVariableConversionError
from zephyr.decorator import RespondAsynchronously, RequestVariableConversionError, profiled
from zephyr.lib.initial_password import initial_password
from zephyr.lib.actions import do_send_message, gather_subscriptions, \
create_stream_if_needed, do_add_subscription