Git Product home page Git Product logo

Comments (4)

hevrard avatar hevrard commented on May 5, 2024

@charlie-ht thanks for reporting!

I'm afraid profiling is only available on supported Android devices, with currently the additional requirement of special preview GPU drivers available through the developer preview program (see https://gpuinspector.dev/). So AGI won't be able to profile on your laptop Intel GPU.

Now, I'm surprised that AGI even reports your Intel GPU as "Validation Passed", and that it offers the possibility to do a system profile. Did you get AGI to list your Intel GPU as a valid device for system profiling out of the box?

(That would be a bug, AGI is not supposed to report this GPU as a valid one for profiling).

from agi.

silence-do-good avatar silence-do-good commented on May 5, 2024

@charlie-ht Did you by any chance run a perfetto trace from the perfetto standalone sdk and then try this? AGI checks for a temp file (/tmp/perfetto-consumer) to see if a device supports system profiling. This file gets created when you run traced (either directly or by using the "tools/tmux" command from https://perfetto.dev/docs/quickstart/linux-tracing). If this is indeed the case, then traced is active only for the time you specified in the config while running the perfetto trace.
The gapis.log indicates that it cannot connect to traced, meaning traced is not alive.

In short, like @hevrard said, the main targets for system profiling are the supported Android devices. If you still want to test the desktop tracing, I'd suggest you start the traced and then try to take the trace with AGI.

from agi.

charlie-ht avatar charlie-ht commented on May 5, 2024

Thank you @hevrard & @silence-do-good, I did read about the supported Android devices, but thought I'd give it a try anyway on my laptop. I'd like an integrated profiling solution on Linux too, then I could modify some open-source driver to instrument it with trace calls to Perfetto. I think this is what happens in the Android GPU drivers inside libgpudataproducer.so from my skiming of the codebase. Do you know of any work in this direction?

@silence-do-good You are absolutely correct! I verified that when I remove these stale files from previous experiments, AGI does not let me try and trace. Mystery solved. Let me know if you'd like any further information, but it sounds like you know what is the problem :-)

from agi.

pmuetschard avatar pmuetschard commented on May 5, 2024

Looks like there is nothing left to do here. To trace on desktop, it is (currently) the user's responsibility to run traced and traced-probes and ensure they are running properly before attempting to trace. These binaries are shipped as part of AGI, in the application's perfetto folder.

from agi.

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.