Coder Social home page Coder Social logo

No data from the proto profile? about pprof-rs HOT 7 OPEN

tikv avatar tikv commented on August 27, 2024
No data from the proto profile?

from pprof-rs.

Comments (7)

YangKeao avatar YangKeao commented on August 27, 2024

I have tried to get the profile on my Linux machine. You can download it here and verity whether it's correct.

I belive the illegal instruction should be an issue in rust (though I don't know whether it has connection with existing bugs such as #58340) as I don't write any pure instructions or binary codes. To indentify this problem, a backtrace or coredump will help a lot.

However, pprof-rs is expected to work correctly on Mac. @Hexilee can you help me on this issue (as I don't have a mac 😿 ) ?

from pprof-rs.

Hexilee avatar Hexilee commented on August 27, 2024

@jabley Hello, I cannot reproduce this issue on my macOS.

I get the profile on
cargo 1.44.1 (88ba85757 2020-06-11) and rustc 1.44.1 (c7087fe00 2020-06-17) by cargo run --bin vm-flamegraph --release -- -p profile.pb.

Are you sure your reproducing steps are correct?

from pprof-rs.

jabley avatar jabley commented on August 27, 2024

On a different Mac, I've just done:

> git clone [email protected]:jabley/monkeyinterpreter.git
> pushd monkeyinterpreter
> git checkout feature/pprof
> pushd rust/rmonkey/
> cargo run --bin vm-flamegraph --release -- -p profile.pb
Result: 9227465
report: THREAD: ThreadId(4757824960) 2000

I get the same 26 byte profile.pb output file as described in my original report.

I can run the examples from pprof-rs and get usable profiles produced.

@Hexilee, your profile looks like what I'd expect.

from pprof-rs.

sticnarf avatar sticnarf commented on August 27, 2024

I try your code on my 10.14.6 macOS with the same toolchain and can get the profile successfully. @Hexilee uses macOS 10.15.
We have no idea how to reproduce the issue.

from pprof-rs.

kjvalencik avatar kjvalencik commented on August 27, 2024

I'm having this same issue on macOS 11.0.1. Have you had any success identifying the issue? I appear to only have the issue with --release.

I'm on v1.50.0-nightly.

Edit: Compiling with --release and debug = true works.

from pprof-rs.

YangKeao avatar YangKeao commented on August 27, 2024

@kjvalencik AFAIK, debug = false will also keep the symbol information, unless it has been stripped explicitly. Would you mind to check whether the symbol information exists in the binary compiled with debug = false?

nm ./target/release/examples/xxx could be used to print the symbol information. If it has been stripped, the output would be nm: ./target/release/examples/xxx: no symbols. (However, I don't know whether Mac OS has nm command).

I heard that @sticnarf has got a new Mac OS laptop 🍻 . Maybe he could help us to find the problem.

from pprof-rs.

kjvalencik avatar kjvalencik commented on August 27, 2024

@YangKeao I had symbols in both, but I had 7 more when compiling with debug = true.

from pprof-rs.

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.