Files
Ryad Mehiri 931e0ade75 Profil après optimisation et compte rendu du TD3
profil_apres.txt : profil gprof de la version finale (0,05 s profilées
contre 38,10 s). COMPTE_RENDU.md : complexités avant/après de F1 à F10,
M de chaque fonction calculé à la main (maximum 14 → 5), profils avant
et après, justification de chaque optimisation et résultats du concours
(3,05 s → 0,061 s en -O2, empreinte inchangée).

Groupe : Ryad MEHIRI, Luka PLOUVIER, Jimmy COLOMB-RAVAT.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 11:05:42 +02:00

174 lines
10 KiB
Plaintext

Flat profile:
Each sample counts as 0.01 seconds.
% cumulative self self total
time seconds seconds calls ms/call ms/call name
40.00 0.02 0.02 __fentry__
40.00 0.04 0.02 _mcount_private
20.00 0.05 0.01 149998 0.00 0.00 alea
0.00 0.05 0.00 60002 0.00 0.00 premier_indice
0.00 0.05 0.00 30001 0.00 0.00 effectif
0.00 0.05 0.00 30000 0.00 0.00 categorie
0.00 0.05 0.00 30000 0.00 0.00 rechercher_par_id
0.00 0.05 0.00 15066 0.00 0.00 categorie_debit
0.00 0.05 0.00 14934 0.00 0.00 categorie_credit
0.00 0.05 0.00 9677 0.00 0.00 est_week_end
0.00 0.05 0.00 6017 0.00 0.00 ajouter_formatee
0.00 0.05 0.00 6017 0.00 0.00 ajouter_ligne
0.00 0.05 0.00 5957 0.00 0.00 categorie_gros_credit
0.00 0.05 0.00 1 0.00 0.00 afficher
0.00 0.05 0.00 1 0.00 0.00 analyser
0.00 0.05 0.00 1 0.00 0.00 compter_categories
0.00 0.05 0.00 1 0.00 0.00 construire_rapport
0.00 0.05 0.00 1 0.00 0.00 ecrire_fichier
0.00 0.05 0.00 1 0.00 0.00 empreinte
0.00 0.05 0.00 1 0.00 10.00 generer_transactions
0.00 0.05 0.00 1 0.00 0.00 indexer_par_id
0.00 0.05 0.00 1 0.00 0.00 meilleure_periode
0.00 0.05 0.00 1 0.00 0.00 nb_clients_distincts
0.00 0.05 0.00 1 0.00 0.00 nb_facons_rendre
0.00 0.05 0.00 1 0.00 0.00 nb_paires_opposees
0.00 0.05 0.00 1 0.00 0.00 sommer_requetes
0.00 0.05 0.00 1 0.00 0.00 total_par_client
0.00 0.05 0.00 1 0.00 0.00 total_par_jour
0.00 0.05 0.00 1 0.00 0.00 trier_par_montant
Call graph
granularity: each sample hit covers 4 byte(s) for 20.00% of 0.05 seconds
index % time self children called name
<spontaneous>
[1] 40.0 0.02 0.00 __fentry__ [1]
-----------------------------------------------
<spontaneous>
[2] 40.0 0.02 0.00 _mcount_private [2]
-----------------------------------------------
0.01 0.00 149998/149998 generer_transactions [4]
[3] 20.0 0.01 0.00 149998 alea [3]
-----------------------------------------------
0.00 0.01 1/1 main [5]
[4] 20.0 0.00 0.01 1 generer_transactions [4]
0.01 0.00 149998/149998 alea [3]
-----------------------------------------------
<spontaneous>
[5] 20.0 0.00 0.01 main [5]
0.00 0.01 1/1 generer_transactions [4]
0.00 0.00 1/1 analyser [17]
0.00 0.00 1/1 construire_rapport [19]
0.00 0.00 1/1 ecrire_fichier [20]
0.00 0.00 1/1 afficher [16]
-----------------------------------------------
0.00 0.00 60002/60002 effectif [7]
[6] 0.0 0.00 0.00 60002 premier_indice [6]
-----------------------------------------------
0.00 0.00 30001/30001 nb_paires_opposees [26]
[7] 0.0 0.00 0.00 30001 effectif [7]
0.00 0.00 60002/60002 premier_indice [6]
-----------------------------------------------
0.00 0.00 30000/30000 compter_categories [18]
[8] 0.0 0.00 0.00 30000 categorie [8]
0.00 0.00 15066/15066 categorie_debit [10]
0.00 0.00 14934/14934 categorie_credit [11]
-----------------------------------------------
0.00 0.00 30000/30000 sommer_requetes [27]
[9] 0.0 0.00 0.00 30000 rechercher_par_id [9]
-----------------------------------------------
0.00 0.00 15066/15066 categorie [8]
[10] 0.0 0.00 0.00 15066 categorie_debit [10]
0.00 0.00 9042/9677 est_week_end [12]
-----------------------------------------------
0.00 0.00 14934/14934 categorie [8]
[11] 0.0 0.00 0.00 14934 categorie_credit [11]
0.00 0.00 5957/5957 categorie_gros_credit [15]
-----------------------------------------------
0.00 0.00 635/9677 categorie_gros_credit [15]
0.00 0.00 9042/9677 categorie_debit [10]
[12] 0.0 0.00 0.00 9677 est_week_end [12]
-----------------------------------------------
0.00 0.00 6017/6017 construire_rapport [19]
[13] 0.0 0.00 0.00 6017 ajouter_formatee [13]
0.00 0.00 6017/6017 ajouter_ligne [14]
-----------------------------------------------
0.00 0.00 6017/6017 ajouter_formatee [13]
[14] 0.0 0.00 0.00 6017 ajouter_ligne [14]
-----------------------------------------------
0.00 0.00 5957/5957 categorie_credit [11]
[15] 0.0 0.00 0.00 5957 categorie_gros_credit [15]
0.00 0.00 635/9677 est_week_end [12]
-----------------------------------------------
0.00 0.00 1/1 main [5]
[16] 0.0 0.00 0.00 1 afficher [16]
0.00 0.00 1/1 empreinte [21]
-----------------------------------------------
0.00 0.00 1/1 main [5]
[17] 0.0 0.00 0.00 1 analyser [17]
0.00 0.00 1/1 sommer_requetes [27]
0.00 0.00 1/1 nb_clients_distincts [24]
0.00 0.00 1/1 total_par_client [28]
0.00 0.00 1/1 total_par_jour [29]
0.00 0.00 1/1 meilleure_periode [23]
0.00 0.00 1/1 compter_categories [18]
0.00 0.00 1/1 trier_par_montant [30]
0.00 0.00 1/1 nb_paires_opposees [26]
0.00 0.00 1/1 nb_facons_rendre [25]
-----------------------------------------------
0.00 0.00 1/1 analyser [17]
[18] 0.0 0.00 0.00 1 compter_categories [18]
0.00 0.00 30000/30000 categorie [8]
-----------------------------------------------
0.00 0.00 1/1 main [5]
[19] 0.0 0.00 0.00 1 construire_rapport [19]
0.00 0.00 6017/6017 ajouter_formatee [13]
-----------------------------------------------
0.00 0.00 1/1 main [5]
[20] 0.0 0.00 0.00 1 ecrire_fichier [20]
-----------------------------------------------
0.00 0.00 1/1 afficher [16]
[21] 0.0 0.00 0.00 1 empreinte [21]
-----------------------------------------------
0.00 0.00 1/1 sommer_requetes [27]
[22] 0.0 0.00 0.00 1 indexer_par_id [22]
-----------------------------------------------
0.00 0.00 1/1 analyser [17]
[23] 0.0 0.00 0.00 1 meilleure_periode [23]
-----------------------------------------------
0.00 0.00 1/1 analyser [17]
[24] 0.0 0.00 0.00 1 nb_clients_distincts [24]
-----------------------------------------------
0.00 0.00 1/1 analyser [17]
[25] 0.0 0.00 0.00 1 nb_facons_rendre [25]
-----------------------------------------------
0.00 0.00 1/1 analyser [17]
[26] 0.0 0.00 0.00 1 nb_paires_opposees [26]
0.00 0.00 30001/30001 effectif [7]
-----------------------------------------------
0.00 0.00 1/1 analyser [17]
[27] 0.0 0.00 0.00 1 sommer_requetes [27]
0.00 0.00 30000/30000 rechercher_par_id [9]
0.00 0.00 1/1 indexer_par_id [22]
-----------------------------------------------
0.00 0.00 1/1 analyser [17]
[28] 0.0 0.00 0.00 1 total_par_client [28]
-----------------------------------------------
0.00 0.00 1/1 analyser [17]
[29] 0.0 0.00 0.00 1 total_par_jour [29]
-----------------------------------------------
0.00 0.00 1/1 analyser [17]
[30] 0.0 0.00 0.00 1 trier_par_montant [30]
-----------------------------------------------
Index by function name
[1] __fentry__ [15] categorie_gros_credit [24] nb_clients_distincts
[2] _mcount_private [18] compter_categories [25] nb_facons_rendre
[16] afficher [19] construire_rapport [26] nb_paires_opposees
[13] ajouter_formatee [20] ecrire_fichier [6] premier_indice
[14] ajouter_ligne [7] effectif [9] rechercher_par_id
[3] alea [21] empreinte [27] sommer_requetes
[17] analyser [12] est_week_end [28] total_par_client
[8] categorie [4] generer_transactions [29] total_par_jour
[11] categorie_credit [22] indexer_par_id [30] trier_par_montant
[10] categorie_debit [23] meilleure_periode