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 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.

Volker

_______________________________________________
users mailing list
[email protected]
https://lists.mercurylang.org/listinfo/users
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE6QXGh82Ov3+2nrxp+K4ydFOsHoUFAmQYTtwACgkQ+K4ydFOs
HoWk1A//XkpS5iApdVITYtBALkYxv2aY0XIk3SfnCHjsYl1NDVgkYdkp5fw+HYqh
Ip1qEPAg3/45fPAb0c5f8M3x1Z06ZBkryyrl81zbcbh2XujcwYMlga3TPTMPvPpC
Kr9AYpS7r+aFn/ozboMeXfvLmpDbS2ygWuJrTchdEEIOPsRVb7/MtLB/8BTb28EI
wBgin9M97u9wPby+ynFNXbMYzlVBqq9CpMTMq7vJsjyo+kDRKcFKcxQ8HC8JDQQG
d3hdPUk9vrO5PJhXJ7QWwGAaCzv3o3xdRyU71oZ/pn1qQ9WSDs9VsOnNKfjORqE9
MQ9GD7n0hDz5cni325+3JfmkM4Iw6OmrXM/RW+jj6cOFtLMJZXBu9qkgtlV33Gsc
/fnqiH+rlRet8xqom3WrJF8aC8JuvUzGC20V4zWvMkr8VUzPWqIE/xsGs6LSW+DL
/95qZq6KJwUXjkjAkb52JIOHNR4EuH7/numdgwReg9LA5qNhNauaa4w6bnI78U+m
vjMv7cn0oguD5qstun2UjxbofoDVtdRdweWWrShxduq9JgQp9RiFTsJO8zNr1QuX
bfSKonmU7mkxniuO1yB6fdMaCkZmLyyFtiQpR3dPLktnoZIWUJX3JhbRVApCMnts
PaaeJtUZK00ywYV4wpTxl48tRnGxHFKZfHHlEkizzX0WnnSOC+A=
=KVnL
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.