Comments (10)
I get
index % time self children called name
0.00 0.00 1/1 main [52]
[1] 0.0 0.00 0.00 1 fct_1 [1]
0.00 0.00 1/1 fct_2 [2] ```
from amiga-gcc.
I see. So it might be a problem of gprof2dot visualizer? I just asked there.
from amiga-gcc.
any news here?
from amiga-gcc.
I opened an issue here:
jrfonseca/gprof2dot#55
No comments do far.
from amiga-gcc.
please retest
from amiga-gcc.
you might retest this due to the recent changes, no?
from amiga-gcc.
We just got a reply from jrfonseca/gprof2dot#55
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 amiga-gcc.
then you need libs compiled with -pg.
not a real issue.
from amiga-gcc.
I don't understand why main gets lost when compiling with any optimization level, but yes, it seems compiling libnix with -pg seems to help. So we can close this issue.
Would it make sense to compile the libs (libnix) additionally with -pg during toolchain-installation and use this -pg-compiled version automatically when compiling an executable with -pg?
(I currently build two versions (-g and -pg) of libnix into different directories and have a symbolic link "libnix" pointing to of these two directories)
from amiga-gcc.
IMHO it's easier to use two independent toolchains in different prefixes.
- with pg
- without pg
that way you have it handy for all variants (baserel, 020, math, etc.p.p.) , just use the prefix you want.
from amiga-gcc.
Related Issues (20)
- Cannot build on MacOS due to CC_FOR_BUILD error HOT 1
- Broken Makefile for 13.1 branch? HOT 1
- Arch Linux "make update" Problem HOT 3
- Is it possible to compile Amiga Shared Libraries with this wonderfull compiler ? HOT 7
- Program will exit because of unwanted automatic LoadLibrary() with optional lib HOT 2
- aminet links and amitools on Debian and Ubuntu HOT 7
- gcc build fails on Fedora 39 HOT 1
- Unable to compile a Reaction snippet from the NDK3.2 HOT 6
- M3 Mac Book Pro Build - NDK 3.2 Patches Fail HOT 2
- gcc build fails in graphite-isl-ast-to-gimple.c HOT 2
- Question: Optional libraries... possible? HOT 2
- Checked in libamiga.a HOT 1
- @isoriano1968 - "make min" in a pristine repo (and sub project repos) seems to be OK. I'll open another issue for the oddities I noticed. HOT 1
- __divdi3 crashes on 68060 HOT 6
- gcc doesn't build on M1 macOS
- dlfcn.h is installed from clib2 but dl* functions do not exist on AmigaOS 3.x HOT 4
- gcc compile error: `isl_val_free` was not declared in this scope HOT 2
- Duplicate section has different contents HOT 17
- Update VASM (1.9a to 1.9f) HOT 3
- vbcc not building, missing a declaration of some function HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amiga-gcc.