Re: [m-users.] Grade for profiling
Volker Wysk <[email protected]>
| Newsgroups | gmane.comp.lang.mercury.general |
|---|---|
| Message-ID | <[email protected]> |
Am Dienstag, dem 21.03.2023 um 20:35 +1100 schrieb Zoltan Somogyi: > 2023-03-21 20:31 GMT+11:00 "Volker Wysk" <[email protected]>: > > > That makes sense. The Prof.Decl file would be written when the program > > > starts up, and the Prof.Counts file is probably overwritten by each > > > process when it shuts down. Obviously, you may not get usable profiling > > > information then. > > > > But I *have* got usable profiling information. At least it seems to me. > > (It's the first time I'm using a profiler.) This way I've found a > > performance bug, btw. > > > > The processes I create with fork/exec, and the one forking, are all the same > > program. It's a command line option, which tells each child process what to > > do. Maybe that's the reason why I get usable profiling data. > > Peter did not say you *definitely* wouldn't get usable data; he said > you *may* not get usable data. If Peter's overwriting theory is true > (I have not checked), then you get the profiling data from the last > process of your program to exit. This process *may* contain > a bottleneck that profiling can reveal, but bottlenecks may exist > in the earlier-exiting processes as well. Anyhow, including the process id in the Prof.* file's names sounds like a good idea. Volker _______________________________________________ users mailing list [email protected] https://lists.mercurylang.org/listinfo/users
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE6QXGh82Ov3+2nrxp+K4ydFOsHoUFAmQZfqsACgkQ+K4ydFOs HoUvLA//Vkkjw2+zdPtbugBmqM0F4pkHt007A7k2SCmkkrccuIkOCpFQJsH72w5p GtAztNMl+0e4T+OOi8o0/ztiyi5SnKU/xPyyN22wCOmYmwb6LwD8PG8ZORhChOkj AAgW2JnTzGAUbbwr/83qNvfc6sGQiCb6SaGJ1R4c245Mv2CyZM3p3zqO+eijG5Xz iW+L7/0W9LH1fGLK73YCxGwPB+e5OOwAW72S/f7S/9aVz3BqKUZSvISlzWUbDRy4 xxdjxtU1tugy4/ShMEuG97X4P5GDDPViFdBHr76nYNZhghHdij2T5TluNv+D5TwC 1JV1qaOXV2WZieZT22FN8LE8iEd+Cmw0HwpsLe+pIayTKaGHSY3Qvqu7/KwmRXTA 9Qi6dSFYVtWjnfcl8WrfcDDD43NrgNew14IznvVGaM5M4X4PMr045zkTQ7KdbKON OoowAzrNKZV5pI0p5d35J7YRiKLBwcma882Xc5pxWx6BI5tpw2GKtqowla3WX9a1 fQUY91VEZqJuRZxhJrUNR0EnHRptRWd5IVdngDKEMyjP2tVAZf9UST0qb7BugOQG +7D+RxIpXT9L3u1Ghx9UAPaOn2T+yJsLL2gO2Y5t9zb90+qjcLYdQaEoBOyh+0Cj TRf3aSl3PVfIonfowdqF+JPa5/+pIx6S72uSDEnbhuHHpvoUNew= =kjcl -----END PGP SIGNATURE-----