[m-users.] Grade for profiling
Zoltan Somogyi
zoltan.somogyi at runbox.com
Tue Mar 21 19:24:57 AEDT 2023
2023-03-21 19:19 GMT+11:00 "Peter Wang" <novalazy at gmail.com>:
>> Because there's more going on that just that. Volker's program forks
>> off separate processes and I suspect the the Prof.* files end up being
>> inconsistent -- ASLR just complicates matters because the addresses
>> differ between each of them.
>
> 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.
Note that the Mercury profiler mprof was designed and implemented
years before either
- Mercury got support for parallel programs, or
- OSs started supporting ASLR.
It is therefore not surprising that it would need further work to support
either, or both.
Zoltan.
More information about the users
mailing list