forked from menault/2026_TD1_DEV51_Qualite_Algo
Profil après optimisation et compte rendu du TD1
profil_apres.txt : profil gprof de la version finale (0,32 s profilées contre 28,87 s). COMPTE_RENDU.md : temps avant/après, analyse du profil, pistes classées par gain attendu, optimisations réalisées et gains mesurés (6,25 s → 0,18 s en -O0, 1,72 s → 0,11 s en -O2, empreinte inchangée). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,165 @@
|
||||
Flat profile:
|
||||
|
||||
Each sample counts as 0.01 seconds.
|
||||
% cumulative self self total
|
||||
time seconds seconds calls ms/call ms/call name
|
||||
37.50 0.12 0.12 _mcount_private
|
||||
18.75 0.18 0.06 __fentry__
|
||||
12.50 0.22 0.04 21746 0.00 0.00 compter_mots_ligne
|
||||
6.25 0.24 0.02 928117 0.00 0.00 alea
|
||||
6.25 0.26 0.02 250000 0.00 0.00 est_mot_vide
|
||||
6.25 0.28 0.02 150183 0.00 0.00 empreinte
|
||||
6.25 0.30 0.02 1 20.00 20.00 decouper_lignes
|
||||
3.12 0.31 0.01 5297256 0.00 0.00 est_lettre
|
||||
3.12 0.32 0.01 1266663 0.00 0.00 en_minuscule
|
||||
0.00 0.32 0.00 873485 0.00 0.00 egales
|
||||
0.00 0.32 0.00 150182 0.00 0.00 chercher_mot
|
||||
0.00 0.32 0.00 150182 0.00 0.00 compter_mot
|
||||
0.00 0.32 0.00 38532 0.00 0.00 longueur
|
||||
0.00 0.32 0.00 37530 0.00 0.00 comparer
|
||||
0.00 0.32 0.00 26800 0.00 0.00 copier
|
||||
0.00 0.32 0.00 21746 0.00 0.00 normaliser_ligne
|
||||
0.00 0.32 0.00 20934 0.00 0.00 ajouter
|
||||
0.00 0.32 0.00 2 0.00 0.00 longueur_moyenne
|
||||
0.00 0.32 0.00 1 0.00 7.09 analyser_bigrammes
|
||||
0.00 0.32 0.00 1 0.00 0.00 construire_rapport
|
||||
0.00 0.32 0.00 1 0.00 0.00 ecart_type_longueur
|
||||
0.00 0.32 0.00 1 0.00 19.40 generer_texte
|
||||
0.00 0.32 0.00 1 0.00 0.60 generer_vocabulaire
|
||||
0.00 0.32 0.00 1 0.00 0.00 racine
|
||||
0.00 0.32 0.00 1 0.00 0.00 trier_entrees
|
||||
|
||||
Call graph
|
||||
|
||||
|
||||
granularity: each sample hit covers 4 byte(s) for 3.12% of 0.32 seconds
|
||||
|
||||
index % time self children called name
|
||||
<spontaneous>
|
||||
[1] 43.8 0.00 0.14 main [1]
|
||||
0.04 0.04 21746/21746 compter_mots_ligne [3]
|
||||
0.02 0.00 1/1 decouper_lignes [8]
|
||||
0.00 0.02 1/1 generer_texte [11]
|
||||
0.00 0.01 21746/21746 normaliser_ligne [12]
|
||||
0.00 0.01 1/1 analyser_bigrammes [15]
|
||||
0.00 0.00 1/1 generer_vocabulaire [16]
|
||||
0.00 0.00 1/150183 empreinte [7]
|
||||
0.00 0.00 1/1 trier_entrees [26]
|
||||
0.00 0.00 1/2 longueur_moyenne [22]
|
||||
0.00 0.00 1/1 ecart_type_longueur [24]
|
||||
0.00 0.00 1/1 racine [25]
|
||||
0.00 0.00 1/1 construire_rapport [23]
|
||||
-----------------------------------------------
|
||||
<spontaneous>
|
||||
[2] 37.5 0.12 0.00 _mcount_private [2]
|
||||
-----------------------------------------------
|
||||
0.04 0.04 21746/21746 main [1]
|
||||
[3] 25.0 0.04 0.04 21746 compter_mots_ligne [3]
|
||||
0.02 0.00 250000/250000 est_mot_vide [6]
|
||||
0.00 0.02 150182/150182 compter_mot [10]
|
||||
-----------------------------------------------
|
||||
<spontaneous>
|
||||
[4] 18.8 0.06 0.00 __fentry__ [4]
|
||||
-----------------------------------------------
|
||||
0.00 0.00 27934/928117 generer_vocabulaire [16]
|
||||
0.02 0.00 900183/928117 generer_texte [11]
|
||||
[5] 6.2 0.02 0.00 928117 alea [5]
|
||||
-----------------------------------------------
|
||||
0.02 0.00 250000/250000 compter_mots_ligne [3]
|
||||
[6] 6.2 0.02 0.00 250000 est_mot_vide [6]
|
||||
0.00 0.00 718511/873485 egales [17]
|
||||
-----------------------------------------------
|
||||
0.00 0.00 1/150183 main [1]
|
||||
0.02 0.00 150182/150183 chercher_mot [9]
|
||||
[7] 6.2 0.02 0.00 150183 empreinte [7]
|
||||
-----------------------------------------------
|
||||
0.02 0.00 1/1 main [1]
|
||||
[8] 6.2 0.02 0.00 1 decouper_lignes [8]
|
||||
-----------------------------------------------
|
||||
0.00 0.02 150182/150182 compter_mot [10]
|
||||
[9] 6.2 0.00 0.02 150182 chercher_mot [9]
|
||||
0.02 0.00 150182/150183 empreinte [7]
|
||||
0.00 0.00 154974/873485 egales [17]
|
||||
-----------------------------------------------
|
||||
0.00 0.02 150182/150182 compter_mots_ligne [3]
|
||||
[10] 6.2 0.00 0.02 150182 compter_mot [10]
|
||||
0.00 0.02 150182/150182 chercher_mot [9]
|
||||
0.00 0.00 5866/26800 copier [20]
|
||||
-----------------------------------------------
|
||||
0.00 0.02 1/1 main [1]
|
||||
[11] 6.1 0.00 0.02 1 generer_texte [11]
|
||||
0.02 0.00 900183/928117 alea [5]
|
||||
-----------------------------------------------
|
||||
0.00 0.01 21746/21746 main [1]
|
||||
[12] 4.0 0.00 0.01 21746 normaliser_ligne [12]
|
||||
0.01 0.00 1266663/1266663 en_minuscule [14]
|
||||
0.00 0.00 1539584/5297256 est_lettre [13]
|
||||
-----------------------------------------------
|
||||
0.00 0.00 1539584/5297256 normaliser_ligne [12]
|
||||
0.01 0.00 3757672/5297256 analyser_bigrammes [15]
|
||||
[13] 3.1 0.01 0.00 5297256 est_lettre [13]
|
||||
-----------------------------------------------
|
||||
0.01 0.00 1266663/1266663 normaliser_ligne [12]
|
||||
[14] 3.1 0.01 0.00 1266663 en_minuscule [14]
|
||||
-----------------------------------------------
|
||||
0.00 0.01 1/1 main [1]
|
||||
[15] 2.2 0.00 0.01 1 analyser_bigrammes [15]
|
||||
0.01 0.00 3757672/5297256 est_lettre [13]
|
||||
-----------------------------------------------
|
||||
0.00 0.00 1/1 main [1]
|
||||
[16] 0.2 0.00 0.00 1 generer_vocabulaire [16]
|
||||
0.00 0.00 27934/928117 alea [5]
|
||||
0.00 0.00 20934/20934 ajouter [21]
|
||||
-----------------------------------------------
|
||||
0.00 0.00 154974/873485 chercher_mot [9]
|
||||
0.00 0.00 718511/873485 est_mot_vide [6]
|
||||
[17] 0.0 0.00 0.00 873485 egales [17]
|
||||
-----------------------------------------------
|
||||
0.00 0.00 5866/38532 ecart_type_longueur [24]
|
||||
0.00 0.00 11732/38532 longueur_moyenne [22]
|
||||
0.00 0.00 20934/38532 ajouter [21]
|
||||
[18] 0.0 0.00 0.00 38532 longueur [18]
|
||||
-----------------------------------------------
|
||||
0.00 0.00 37530/37530 comparer_entrees [46]
|
||||
[19] 0.0 0.00 0.00 37530 comparer [19]
|
||||
-----------------------------------------------
|
||||
0.00 0.00 5866/26800 compter_mot [10]
|
||||
0.00 0.00 20934/26800 ajouter [21]
|
||||
[20] 0.0 0.00 0.00 26800 copier [20]
|
||||
-----------------------------------------------
|
||||
0.00 0.00 20934/20934 generer_vocabulaire [16]
|
||||
[21] 0.0 0.00 0.00 20934 ajouter [21]
|
||||
0.00 0.00 20934/38532 longueur [18]
|
||||
0.00 0.00 20934/26800 copier [20]
|
||||
-----------------------------------------------
|
||||
0.00 0.00 1/2 ecart_type_longueur [24]
|
||||
0.00 0.00 1/2 main [1]
|
||||
[22] 0.0 0.00 0.00 2 longueur_moyenne [22]
|
||||
0.00 0.00 11732/38532 longueur [18]
|
||||
-----------------------------------------------
|
||||
0.00 0.00 1/1 main [1]
|
||||
[23] 0.0 0.00 0.00 1 construire_rapport [23]
|
||||
-----------------------------------------------
|
||||
0.00 0.00 1/1 main [1]
|
||||
[24] 0.0 0.00 0.00 1 ecart_type_longueur [24]
|
||||
0.00 0.00 5866/38532 longueur [18]
|
||||
0.00 0.00 1/2 longueur_moyenne [22]
|
||||
-----------------------------------------------
|
||||
0.00 0.00 1/1 main [1]
|
||||
[25] 0.0 0.00 0.00 1 racine [25]
|
||||
-----------------------------------------------
|
||||
0.00 0.00 1/1 main [1]
|
||||
[26] 0.0 0.00 0.00 1 trier_entrees [26]
|
||||
-----------------------------------------------
|
||||
|
||||
Index by function name
|
||||
|
||||
[4] __fentry__ [23] construire_rapport [11] generer_texte
|
||||
[2] _mcount_private [20] copier [16] generer_vocabulaire
|
||||
[21] ajouter [8] decouper_lignes [18] longueur
|
||||
[5] alea [24] ecart_type_longueur [22] longueur_moyenne
|
||||
[15] analyser_bigrammes [17] egales [12] normaliser_ligne
|
||||
[9] chercher_mot [7] empreinte [25] racine
|
||||
[19] comparer [14] en_minuscule [26] trier_entrees
|
||||
[10] compter_mot [13] est_lettre
|
||||
[3] compter_mots_ligne [6] est_mot_vide
|
||||
Reference in New Issue
Block a user