diff --git a/modif/notes.md b/modif/notes.md index f3bda01..7ecf33f 100644 --- a/modif/notes.md +++ b/modif/notes.md @@ -1,14 +1,14 @@ compilation : -gcc -g -pg -o student_rank student_rank.c heapsort.c bubblesort.c +```gcc -g -pg -o student_rank student_rank.c heapsort.c bubblesort.c``` premier test: -./student_rank 5 5 1 +```./student_rank 5 5 1``` lancement de gprof: -'''gprof ./student_rank''' +```gprof ./student_rank``` -''' +``` Flat profile: Each sample counts as 0.01 seconds. @@ -68,7 +68,7 @@ index % time self children called name 0.00 0.00 25/25 find_rank_student [2] 0.00 0.00 5/30 bubblesort [1] ----------------------------------------------- -''' +``` par exemple on peut voir que la fonction bubblesort a été appelée 30 fois, 5 fois par la fonction sort_students et 25 fois par la fonction find_rank_student. la fonction find_rank_student a été appelée 25 fois par sort_students et à chaque fois elle appelle la fonction bubblesort.