Code Monkey home page Code Monkey logo

Comments (4)

fmayer avatar fmayer commented on May 21, 2024 6

Which device are you running on?

Could you try running adb shell setprop persist.traced.enable 1 and then retrying?

from perfetto.

primiano avatar primiano commented on May 21, 2024

@wingyippp , what happens if you do adb shell rm /data/misc/perfetto-traces/profile-shell
@segfaulthunter maybe the script should use unique file names (and delete them after pull)?

from perfetto.

wingyippp avatar wingyippp commented on May 21, 2024

@wingyippp , what happens if you do adb shell rm /data/misc/perfetto-traces/profile-shell
@segfaulthunter maybe the script should use unique file names (and delete them after pull)?

adb shell rm /data/misc/perfetto-traces/profile-shell
rm: /data/misc/perfetto-traces/profile-shell: No such file or directory

Then run the cmd again "tools/heap_profile [process_name]", I got the same error show above.

P.S. My device is Android 10.0

from perfetto.

wingyippp avatar wingyippp commented on May 21, 2024

Which device are you running on?

Could you try running adb shell setprop persist.traced.enable 1 and then retrying?

MY-MB2:perfetto wingyipye$ adb shell setprop persist.traced.enable 1
MY-MB2:perfetto wingyipye$ tools/heap_profile --name [process_name]
Profiling active. Press Ctrl+C to terminate.
You may disconnect your device.

Wrote profiles to /var/folders/s2/_l4q4mv16w3b_lrg1_p636jx49_ckw/T//heap_profile-ElYmfFC (symlink /var/folders/s2/_l4q4mv16w3b_lrg1_p636jx49_ckw/T/heap_profile-latest)
These can be viewed using pprof. Googlers: head to pprof/ and upload them.

It's OK now. Thank you!
My device is Galaxy S9+ (SM-G9650/DS)

from perfetto.

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.