Giter VIP home page Giter VIP logo

Comments (3)

jrfonseca avatar jrfonseca commented on May 27, 2024

There are 2 problems here:

  • gprof couldn't figure out who called strlen. Perhaps because libc had no debug information, or due to some limitation with m68k architecture (e.g., no stack frame pointer by default)?

  • gprof lists main as a caller (ie, an edge on the call graph), but didn't create a node for it in the report. No idea why. I never seen this with x86. Perhaps gprof's -c/--static-call-graph help.

Both issues are in gcc/gprof domain, not the gprof2dot tool. The missing main issue is minor IMO. But the strlen is a showstopper -- if time spent in libc functions is not accurately billed to the callers, then the whole graph will end up biased and useless.

I hope this helps.

from gprof2dot.

githubaf avatar githubaf commented on May 27, 2024

Thank you very much for the explaination! It's very much appreciated. I am sure it will help our m68k gprof.

Happy New Year!

from gprof2dot.

ildar avatar ildar commented on May 27, 2024

I had main() missing on x86_64. But then I used alternative approach:

valgrind --tool=callgrind

from gprof2dot.

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.