Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(14626)

Issue 64930043: Log slow operations

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 2 months ago by haypo_gmail
Modified:
9 years, 10 months ago
Reviewers:
yselivanov
Visibility:
Public.

Description

Log slow operations

Patch Set 1 #

Patch Set 2 : Updated patch #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : _format_handle() uses isinstance #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -5 lines) Patch
M asyncio/base_events.py View 1 2 3 5 chunks +27 lines, -5 lines 0 comments Download
M tests/test_base_events.py View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 1
yselivanov
9 years, 10 months ago (2014-06-12 02:06:19 UTC) #1
https://codereview.appspot.com/64930043/diff/40001/asyncio/base_events.py
File asyncio/base_events.py (right):

https://codereview.appspot.com/64930043/diff/40001/asyncio/base_events.py#new...
asyncio/base_events.py:45: if func is tasks.Task._step or func is
tasks.Task._wakeup:
I think it's better to use __self__ for this:

     if isinstance(cb.__self__, tasks.Task): ...

https://codereview.appspot.com/64930043/diff/40001/asyncio/base_events.py#new...
asyncio/base_events.py:864: text = _format_handle(handle)
I'd suggest a different variable name -- maybe 'handle_repr' instead of 'text'?
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b