Skip to content

suggestion: Profiling RMG #1

@rwest

Description

@rwest

If you replace lines like
python-jl /home/khalil.nor/Code/RMG-Py/rmg.py input.py
in your slurm bash scripts with
python-jl /home/khalil.nor/Code/RMG-Py/rmg.py -p input.py
(just adding a -p option) then it should record and save profiling information.

If it finishes building a model then it will postprocess it and make you a nice PDF showing where the code spent its time. This may give ideas for speeding things up.

If it crashes or is killed before finishing, then you need to manually post-process it which you can do by calling it again with -P instead of -p. The postprocessing runs gprof2dot so you'll need graphviz, etc. installed (probably just conda install gprof2dot if it fails).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions