Giter Site home page Giter Site logo

Comments (15)

sublee avatar sublee commented on May 11, 2024 7

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.

lambdalisue avatar lambdalisue commented on May 11, 2024 5

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.

xNinjaKittyx avatar xNinjaKittyx commented on May 11, 2024 1

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.

sublee avatar sublee commented on May 11, 2024

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.

nchammas avatar nchammas commented on May 11, 2024

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.

thehesiod avatar thehesiod commented on May 11, 2024

@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.

Alexis-benoist avatar Alexis-benoist commented on May 11, 2024

@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.

sublee avatar sublee commented on May 11, 2024

@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.

zet4 avatar zet4 commented on May 11, 2024

Any update on this? Could really use a profiling tool for asyncio.

from profiling.

thehesiod avatar thehesiod commented on May 11, 2024

I've been using http://www.pyvmmonitor.com/ with pretty good success

from profiling.

zet4 avatar zet4 commented on May 11, 2024

@thehesiod thanks for suggestion but I just tried it in my application and without any success.

from profiling.

advance512 avatar advance512 commented on May 11, 2024

+1 for this.

from profiling.

MJ111 avatar MJ111 commented on May 11, 2024

@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.

sublee avatar sublee commented on May 11, 2024

@MJ111 No, the branch has not been merged into master yet. Does master work well with asyncio now?

from profiling.

MJ111 avatar MJ111 commented on May 11, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.