Re: [m-users.] Grade for profiling
Volker Wysk <[email protected]>
| Newsgroups | gmane.comp.lang.mercury.general |
|---|---|
| Message-ID | <[email protected]> |
Am Montag, dem 20.03.2023 um 13:17 +0100 schrieb Volker Wysk:
> Am Montag, dem 20.03.2023 um 21:29 +1100 schrieb Julien Fischer:
> >
> > On Mon, 20 Mar 2023, Volker Wysk wrote:
> >
> > > Hi, Julien
> > >
> > > Am Montag, dem 20.03.2023 um 09:40 +1100 schrieb Julien Fischer:
> > > > Hi Volker,
> > > >
> > > > On Sun, 19 Mar 2023, Volker Wysk wrote:
> > > >
> > > > > I want to profile my program, but when using mprof, I get only lines like
> > > > > this:
> > > > >
> > > > > 0.0 0.00 0.00 49576032 0.00 0.00
> > > > > unknown__140325205178080 [140]
> > > > >
> > > > > All names begin with "unknown_...".
> > > > >
> > > > > My guess is, that debug symbols must be compiled in. My profiling grade is
> > > > > "asm_fast.gc.prof", so no debug symbols.
> > > >
> > > > The .prof component should be all that is required for (time) profiling
> > > > to work; there's no need for anything additional
> > >
> > > So why are all the names "unknown__..."? It isn't usable this way...
> >
> > If they are all "unknown__...", then something is wrong. The profiler
> > builds a table of addresses to procedure names; if it can't find an
> > entry for a given address in that table it outputs it as "unknown__...".
> > When you run a program with profiling enabled, that table should be
> > written to the file Prof.Decl. When you run your program, does the file
> > Prof.Decl contain any entries?
>
> Yes, it does. It's a megabyte big.
This is how I build my program:
mmc -j8 -E --make \
--grade asm_fast.gc.debug.stseg \
--output-compile-error-lines=200 \
--cflags "$(pkg-config --cflags glib-2.0)" \
--cflags "$(pkg-config --cflags mhash)" \
--ml colipa \
-lodbc -lpthread -ldl \
--cflag "-DMODBC_UNIX" --cflag "-DMODBC_MYSQL" \
`pkg-config --libs glib-2.0` \
`pkg-config --libs mhash` \
"$PROG"
Bye
Volker
_______________________________________________
users mailing list
[email protected]
https://lists.mercurylang.org/listinfo/users
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE6QXGh82Ov3+2nrxp+K4ydFOsHoUFAmQYVuIACgkQ+K4ydFOs HoVYxRAAgtE9NPzlT8OmFPE2f01nD15nllqDkLuJ4Qc6kPI3IVbbZRN+WsS1CeJ+ 6sFcCu3X5/RAIlgLI4L2Ri+kNJ0LboMR2jN9fuq0ab8sVsBO/oVWLLTprra794au hzkOhb8ktWVk8m/u7Ool08xJBScOlFo72CEc1fvCShnyHZOnMcl+v0cyEUeNTSlw 7ZPP7nZ8pj2UP9UYEcBZoVIPTy7ZMLExxeCCiIgBuQklANXp0Omc+OipSas02Jzo UC43rnQLNF/oLnYwiu9k7Bej9tVa46Vpmk9AOJEh+xDvarXO56DHJGFSSt6z+wH7 V9OTQo5AWLDtbYaxvtVi6twTLWTcxW4y13EkeTlF24Zf/bsQht/8aU7Uuzlg7NAw D7l8uujKui8QekN158JicCxsyCT6mvC+9BfVJXDItEpFFUC/CsGMSq5nJNaXv3oI q8t9lAssmwSE9aTlWful2nSI0bFxywp8MyaPJjDAewAqzgoVQxUeK6p9ZxawaJzn KxbrKXx5qADZQvOR9cRT0KKVfX/bXlqpFq8XBKuW+RlkSS2rwnjtzWkAnSh4eu/6 6tXuLqFCVHyK8dQ9j7HH/nBfA8OmRxdHe/wv9sMwrRt3VEs8hQpi7D/ZEFtf0xzY LowO8Twue2izLV18u5qkrOXzfbWR3Vwe5y/TYg0spzepWrryTWU= =zifw -----END PGP SIGNATURE-----