valgrind

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
valgrind [2018/01/08 14:09]
doeringn [On Mogon]
valgrind [2018/01/08 14:29]
doeringn Adaption to SLURM
Line 29: Line 29:
 Imaging you submit a job like: Imaging you submit a job like:
 <code bash> <code bash>
- bsub -n 1 -app Reserve1800M -q short -300 valgrind --tool=callgrind cmd [args]+ srun -p short -n 1 --mem 1800M -300 valgrind --tool=callgrind <path/to/cmd[args]
 </code> </code>
 where ''cmd'' is the program to profile with its optional arguments (''args''). where ''cmd'' is the program to profile with its optional arguments (''args'').
  
-This will produce an output file (e.g. ''callgrind.out.44289'') which you can further analyze on the command line:+This will produce an output file (e.g. ''callgrind.out.44289'', with 44289 being the PID of the process) which you can further analyze on the command line:
 <code bash> <code bash>
 callgrind_annotate --auto=yes callgrind.out.44289 |less callgrind_annotate --auto=yes callgrind.out.44289 |less