[m-users.] Grade for profiling

Peter Wang novalazy at gmail.com
Tue Mar 21 18:24:00 AEDT 2023


On Tue, 21 Mar 2023 08:08:19 +0100 Volker Wysk <post at volker-wysk.de> wrote:
> For the record (if someone stumbles into the same problem). With the help of
> Julien I was able to find the solution.
> 
> A (Linux) kernel feature called "Address space layout randomization" (ASLR)
> must be turned off, before running the program which is to be profiled. This
> can be accomplished with this command:
> 
> sudo bash -c "echo 0 > /proc/sys/kernel/randomize_va_space"
> 
> Then you get the right names for most predicates.

Did you merge profiling data from different runs?
Otherwise, if the Prof.* files are generated in the same run
then I don't see why ASLR should make a difference.

> 
> You also need to run the program with an English locale. Set the LANG
> environment variable to "C.UTF-8" or something like that. Otherwise, the
> mprof program might quit with an error message, because numbers aren't
> formatted right (point vs. comma in floating point numbers).
> 

We should fix that.

Peter


More information about the users mailing list