Plot memory usage

Memory usage is generated by running JOREK with memory monitor script, e.g.

mpirun mem_monitor jorek

As the result, files mem_pid_*.log are generated. The plot_mlog.py script read these files and plot the memory usage versus time.

Optionally, JOREK can produce time line files with arbitrary marks which can be placed on top of time history. To do so one needs to modify the source code by adding use matio_module, only: timestamp and call timestamp("Arbitrary time mark",<my_id>) wherever necessary. This produces files timeline00<my_id>.out containing a line xxxxxx.xxxxx Arbitrary time mark. The plot_mlog.py script can read this file by providing option -tline <timeline_file_name>.