Changes between Version 7 and Version 8 of Documentation/UserGuide/ProfileGprof
- Timestamp:
- 2021-05-11T17:36:48+02:00 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Documentation/UserGuide/ProfileGprof
v7 v8 8 8 Authors: A.S. Lansø and S. Luyssaert [[BR]] 9 9 Last revision: S. Luyssaert (2019/09/30) [[BR]] 10 Last revision: X. Wang (2021/05/11) [[BR]] 10 11 11 12 Basically one needs to add the compiler option -p -g or -pg. Use [https://web.eecs.umich.edu/~sugih/pointers/gprof_quick.html on-line manuals] to learn about additional settings that can be used to fine tune the outcomes of gprof. … … 31 32 gprof orchide_ol gmon.out > view.txt 32 33 }}} 34 35 36 Tested in trunk rev n7164 with gprof on Irene. 37 * modify the modeles/IOIPSL/src/Makefile: add -p -g to the line F_O 38 * modify modeles/ORCHIDEE/arch/arch__servername.fcm: add -p -g to RPOD_FFLAGS 39 * recompile orchidee ./compile_orchidee_ol.sh 40 * if use a small region and without libIGCM for simulation: ./orchidee_ol_prod > out_orchidee_ol_prod 2>&1 41 * gprof -a orchidee_ol_prod gmon.out > analysis.txt