Comments (15)
I'm working on this issue.
Checkout https://github.com/sublee/profiling/tree/eventloop-aware and try like:
$ profiling yourapp.py --eventloop-aware=asyncio
I need to hear some feedback.
from profiling.
Brilliant! Note that I needed to comment out asyncio.Task._wakeup
and asyncio.Task._step
in https://github.com/what-studio/profiling/blob/eventloop-aware/profiling/adapting.py#L30 to ignore method_descriptor object has no attribute '__code__'
exception in Python 3.6
from profiling.
Hello, I ran into the same issue as above in Python 3.6. It would be nice to have this pulled into the code...
Edit: I'm not sure if i should report this as another bug, but if you use uvloop with profiling, you run into this error:
File ".../profiling/viewer.py", line 685, in keypress
if not parent_node.is_root():
AttributeError: 'NoneType' object has no attribute 'is_root'
from profiling.
No, you shouldn't use --timer=greenlet
. I didn't care about asyncio
application but I should have done it. For now, probably we can't profile asyncio
application with profiling
. I'll try to find a solution.
Thanks to report.
from profiling.
Hi @sublee! Thanks for revisiting this issue.
I won't be able to test this anytime soon, but I'll try to test it out at some point.
from profiling.
@sublee awesome! Exactly what I was looking for. Seems to work! Thanks!
As a tip for others. Syntax is:
$ profiling live-profile --eventloop-aware=asyncio ~/dev/weather/services/arrayds/app/web/app.py -- YOUR_SCRIPT_ARGS
from profiling.
@sublee I can't clone your version of the code doing pip install git+https://github.com/sublee/profiling/tree/eventloop-aware
doesn't clone the code.
Collecting git+https://github.com/sublee/profiling/tree/eventloop-aware
Cloning https://github.com/sublee/profiling/tree/eventloop-aware to /var/folders/rs/75jmmsys1dl016fnw1gsq0r00000gn/T/pip-89loyzv3-build
fatal: repository 'https://github.com/sublee/profiling/tree/eventloop-aware/' not found
Complete output from command git clone -q https://github.com/sublee/profiling/tree/eventloop-aware /var/folders/rs/75jmmsys1dl016fnw1gsq0r00000gn/T/pip-89loyzv3-build:
from profiling.
@Alexis-benoist Your URL is not correct. Try to install with $ pip install git+https://github.com/what-studio/profiling.git@eventloop-aware
.
from profiling.
Any update on this? Could really use a profiling tool for asyncio.
from profiling.
I've been using http://www.pyvmmonitor.com/ with pretty good success
from profiling.
@thehesiod thanks for suggestion but I just tried it in my application and without any success.
from profiling.
+1 for this.
from profiling.
@sublee
https://github.com/sublee/profiling/tree/eventloop-aware this asyncio feature is merged to this repo master branch, right?
I'm confused cause I think it's working well now with asyncio.
from profiling.
@MJ111 No, the branch has not been merged into master
yet. Does master
work well with asyncio now?
from profiling.
@sublee I think so. I thought it’s merged already because there’s ‘asyncio.py’ in ‘profiling/remote’ folder. I might be wrong.
from profiling.
Related Issues (20)
- Filter packages / modules HOT 4
- Profile a Web application on Gunicorn HOT 2
- Recursion RuntimeError on importing Requests lib HOT 3
- Profiling django's dev server HOT 16
- `NoneType` when using live-profile HOT 2
- setup.py test fails with newest pip HOT 2
- Profiling of asyncio application failing HOT 2
- setup.py failure on Windows VC 9.0 HOT 1
- profiler doesn't cd to current directory
- time.clock_gettime is not work in Mac HOT 1
- Profil flask app HOT 5
- Upload wheel to pypi
- dump method of Profiler class is missing in pypi HOT 1
- AttributeError: 'TracingProfiler' object has no attribute 'dump' HOT 1
- error in pip3 install HOT 1
- Live profiling stops updating at some point + Crashes on repeated viewer reconnects
- analysis got some problem! HOT 3
- In python 3.8 error `AttributeError: module 'time' has no attribute 'clock'` HOT 3
- Fix simple typo: expaected, -> expected,
- Profile Flask app running uwsgi
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from profiling.