From f7edbe1044f463bc9382343f0234ab89b81dbea9 Mon Sep 17 00:00:00 2001 From: bens Date: Wed, 21 Oct 2026 12:28:12 +0200 Subject: [PATCH] profil --- profil_apres.txt | 224 +++++++++++++++++++++++++++++++++++++++++++++++ profil_avant.txt | 220 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 444 insertions(+) create mode 100644 profil_apres.txt create mode 100644 profil_avant.txt diff --git a/profil_apres.txt b/profil_apres.txt new file mode 100644 index 0000000..67c6edb --- /dev/null +++ b/profil_apres.txt @@ -0,0 +1,224 @@ +Flat profile: + +Each sample counts as 0.01 seconds. + % cumulative self self total + time seconds seconds calls ms/call ms/call name + 93.55 0.29 0.29 1 290.00 290.00 meilleure_periode + 3.23 0.30 0.01 1 10.00 10.00 nb_paires_opposees + 3.23 0.31 0.01 comparer_transactions + 0.00 0.31 0.00 149998 0.00 0.00 alea + 0.00 0.31 0.00 30000 0.00 0.00 categorie + 0.00 0.31 0.00 30000 0.00 0.00 rechercher_par_id + 0.00 0.31 0.00 15066 0.00 0.00 categorie_debit + 0.00 0.31 0.00 14934 0.00 0.00 categorie_credit + 0.00 0.31 0.00 6017 0.00 0.00 ajouter_ligne + 0.00 0.31 0.00 1 0.00 0.00 empreinte + 0.00 0.31 0.00 1 0.00 0.00 generer_transactions + 0.00 0.31 0.00 1 0.00 0.00 nb_clients_distincts + 0.00 0.31 0.00 1 0.00 0.00 nb_facons_rendre + 0.00 0.31 0.00 1 0.00 0.00 total_par_client + 0.00 0.31 0.00 1 0.00 0.00 total_par_jour + 0.00 0.31 0.00 1 0.00 0.00 trier_par_montant + + % the percentage of the total running time of the +time program used by this function. + +cumulative a running sum of the number of seconds accounted + seconds for by this function and those listed above it. + + self the number of seconds accounted for by this +seconds function alone. This is the major sort for this + listing. + +calls the number of times this function was invoked, if + this function is profiled, else blank. + + self the average number of milliseconds spent in this +ms/call function per call, if this function is profiled, + else blank. + + total the average number of milliseconds spent in this +ms/call function and its descendents per call, if this + function is profiled, else blank. + +name the name of the function. This is the minor sort + for this listing. The index shows the location of + the function in the gprof listing. If the index is + in parenthesis it shows where it would appear in + the gprof listing if it were to be printed. + +Copyright (C) 2012-2026 Free Software Foundation, Inc. + +Copying and distribution of this file, with or without modification, +are permitted in any medium without royalty provided the copyright +notice and this notice are preserved. + + Call graph (explanation follows) + + +granularity: each sample hit covers 4 byte(s) for 3.23% of 0.31 seconds + +index % time self children called name + +[1] 96.8 0.00 0.30 main [1] + 0.29 0.00 1/1 meilleure_periode [2] + 0.01 0.00 1/1 nb_paires_opposees [3] + 0.00 0.00 30000/30000 rechercher_par_id [7] + 0.00 0.00 30000/30000 categorie [6] + 0.00 0.00 6017/6017 ajouter_ligne [10] + 0.00 0.00 1/1 generer_transactions [12] + 0.00 0.00 1/1 nb_clients_distincts [13] + 0.00 0.00 1/1 total_par_client [15] + 0.00 0.00 1/1 total_par_jour [16] + 0.00 0.00 1/1 trier_par_montant [17] + 0.00 0.00 1/1 nb_facons_rendre [14] + 0.00 0.00 1/1 empreinte [11] +----------------------------------------------- + 0.29 0.00 1/1 main [1] +[2] 93.5 0.29 0.00 1 meilleure_periode [2] +----------------------------------------------- + 0.01 0.00 1/1 main [1] +[3] 3.2 0.01 0.00 1 nb_paires_opposees [3] +----------------------------------------------- + +[4] 3.2 0.01 0.00 comparer_transactions [4] +----------------------------------------------- + 0.00 0.00 149998/149998 generer_transactions [12] +[5] 0.0 0.00 0.00 149998 alea [5] +----------------------------------------------- + 0.00 0.00 30000/30000 main [1] +[6] 0.0 0.00 0.00 30000 categorie [6] + 0.00 0.00 15066/15066 categorie_debit [8] + 0.00 0.00 14934/14934 categorie_credit [9] +----------------------------------------------- + 0.00 0.00 30000/30000 main [1] +[7] 0.0 0.00 0.00 30000 rechercher_par_id [7] +----------------------------------------------- + 0.00 0.00 15066/15066 categorie [6] +[8] 0.0 0.00 0.00 15066 categorie_debit [8] +----------------------------------------------- + 0.00 0.00 14934/14934 categorie [6] +[9] 0.0 0.00 0.00 14934 categorie_credit [9] +----------------------------------------------- + 0.00 0.00 6017/6017 main [1] +[10] 0.0 0.00 0.00 6017 ajouter_ligne [10] +----------------------------------------------- + 0.00 0.00 1/1 main [1] +[11] 0.0 0.00 0.00 1 empreinte [11] +----------------------------------------------- + 0.00 0.00 1/1 main [1] +[12] 0.0 0.00 0.00 1 generer_transactions [12] + 0.00 0.00 149998/149998 alea [5] +----------------------------------------------- + 0.00 0.00 1/1 main [1] +[13] 0.0 0.00 0.00 1 nb_clients_distincts [13] +----------------------------------------------- + 0.00 0.00 1/1 main [1] +[14] 0.0 0.00 0.00 1 nb_facons_rendre [14] +----------------------------------------------- + 0.00 0.00 1/1 main [1] +[15] 0.0 0.00 0.00 1 total_par_client [15] +----------------------------------------------- + 0.00 0.00 1/1 main [1] +[16] 0.0 0.00 0.00 1 total_par_jour [16] +----------------------------------------------- + 0.00 0.00 1/1 main [1] +[17] 0.0 0.00 0.00 1 trier_par_montant [17] +----------------------------------------------- + + This table describes the call tree of the program, and was sorted by + the total amount of time spent in each function and its children. + + Each entry in this table consists of several lines. The line with the + index number at the left hand margin lists the current function. + The lines above it list the functions that called this function, + and the lines below it list the functions this one called. + This line lists: + index A unique number given to each element of the table. + Index numbers are sorted numerically. + The index number is printed next to every function name so + it is easier to look up where the function is in the table. + + % time This is the percentage of the `total' time that was spent + in this function and its children. Note that due to + different viewpoints, functions excluded by options, etc, + these numbers will NOT add up to 100%. + + self This is the total amount of time spent in this function. + + children This is the total amount of time propagated into this + function by its children. + + called This is the number of times the function was called. + If the function called itself recursively, the number + only includes non-recursive calls, and is followed by + a `+' and the number of recursive calls. + + name The name of the current function. The index number is + printed after it. If the function is a member of a + cycle, the cycle number is printed between the + function's name and the index number. + + + For the function's parents, the fields have the following meanings: + + self This is the amount of time that was propagated directly + from the function into this parent. + + children This is the amount of time that was propagated from + the function's children into this parent. + + called This is the number of times this parent called the + function `/' the total number of times the function + was called. Recursive calls to the function are not + included in the number after the `/'. + + name This is the name of the parent. The parent's index + number is printed after it. If the parent is a + member of a cycle, the cycle number is printed between + the name and the index number. + + If the parents of the function cannot be determined, the word + `' is printed in the `name' field, and all the other + fields are blank. + + For the function's children, the fields have the following meanings: + + self This is the amount of time that was propagated directly + from the child into the function. + + children This is the amount of time that was propagated from the + child's children to the function. + + called This is the number of times the function called + this child `/' the total number of times the child + was called. Recursive calls by the child are not + listed in the number after the `/'. + + name This is the name of the child. The child's index + number is printed after it. If the child is a + member of a cycle, the cycle number is printed + between the name and the index number. + + If there are any cycles (circles) in the call graph, there is an + entry for the cycle-as-a-whole. This entry shows who called the + cycle (as parents) and the members of the cycle (as children.) + The `+' recursive calls entry shows the number of function calls that + were internal to the cycle, and the calls entry for each member shows, + for that member, how many times it was called from other members of + the cycle. + +Copyright (C) 2012-2026 Free Software Foundation, Inc. + +Copying and distribution of this file, with or without modification, +are permitted in any medium without royalty provided the copyright +notice and this notice are preserved. + +Index by function name + + [10] ajouter_ligne [11] empreinte [7] rechercher_par_id + [5] alea [12] generer_transactions [15] total_par_client + [6] categorie [2] meilleure_periode [16] total_par_jour + [9] categorie_credit (banque.c) [13] nb_clients_distincts [17] trier_par_montant + [8] categorie_debit (banque.c) [14] nb_facons_rendre + [4] comparer_transactions (banque.c) [3] nb_paires_opposees diff --git a/profil_avant.txt b/profil_avant.txt new file mode 100644 index 0000000..5899407 --- /dev/null +++ b/profil_avant.txt @@ -0,0 +1,220 @@ +Flat profile: + +Each sample counts as 0.01 seconds. + % cumulative self self total + time seconds seconds calls s/call s/call name + 50.25 3.05 3.05 1 3.05 3.05 trier_par_montant + 13.18 3.85 0.80 30000 0.00 0.00 rechercher_par_id + 12.52 4.61 0.76 1 0.76 0.76 nb_paires_opposees + 9.06 5.16 0.55 1 0.55 0.55 nb_facons_rendre + 6.59 5.56 0.40 6017 0.00 0.00 longueur + 5.11 5.87 0.31 1 0.31 0.31 meilleure_periode + 1.65 5.97 0.10 1 0.10 0.10 nb_clients_distincts + 0.99 6.03 0.06 1 0.06 0.06 total_par_jour + 0.66 6.07 0.04 _init + 0.00 6.07 0.00 149998 0.00 0.00 alea + 0.00 6.07 0.00 30000 0.00 0.00 categorie + 0.00 6.07 0.00 6017 0.00 0.00 ajouter_ligne + 0.00 6.07 0.00 1 0.00 0.00 empreinte + 0.00 6.07 0.00 1 0.00 0.00 generer_transactions + 0.00 6.07 0.00 1 0.00 0.00 total_par_client + + % the percentage of the total running time of the +time program used by this function. + +cumulative a running sum of the number of seconds accounted + seconds for by this function and those listed above it. + + self the number of seconds accounted for by this +seconds function alone. This is the major sort for this + listing. + +calls the number of times this function was invoked, if + this function is profiled, else blank. + + self the average number of milliseconds spent in this +ms/call function per call, if this function is profiled, + else blank. + + total the average number of milliseconds spent in this +ms/call function and its descendents per call, if this + function is profiled, else blank. + +name the name of the function. This is the minor sort + for this listing. The index shows the location of + the function in the gprof listing. If the index is + in parenthesis it shows where it would appear in + the gprof listing if it were to be printed. + +Copyright (C) 2012-2026 Free Software Foundation, Inc. + +Copying and distribution of this file, with or without modification, +are permitted in any medium without royalty provided the copyright +notice and this notice are preserved. + + Call graph (explanation follows) + + +granularity: each sample hit covers 4 byte(s) for 0.16% of 6.07 seconds + +index % time self children called name + +[1] 99.3 0.00 6.03 main [1] + 3.05 0.00 1/1 trier_par_montant [2] + 0.80 0.00 30000/30000 rechercher_par_id [3] + 0.76 0.00 1/1 nb_paires_opposees [4] + 0.55 0.00 1/1 nb_facons_rendre [5] + 0.00 0.40 6017/6017 ajouter_ligne [6] + 0.31 0.00 1/1 meilleure_periode [8] + 0.10 0.00 1/1 nb_clients_distincts [9] + 0.06 0.00 1/1 total_par_jour [10] + 0.00 0.00 30000/30000 categorie [13] + 0.00 0.00 1/1 generer_transactions [15] + 0.00 0.00 1/1 total_par_client [16] + 0.00 0.00 1/1 empreinte [14] +----------------------------------------------- + 3.05 0.00 1/1 main [1] +[2] 50.2 3.05 0.00 1 trier_par_montant [2] +----------------------------------------------- + 0.80 0.00 30000/30000 main [1] +[3] 13.2 0.80 0.00 30000 rechercher_par_id [3] +----------------------------------------------- + 0.76 0.00 1/1 main [1] +[4] 12.5 0.76 0.00 1 nb_paires_opposees [4] +----------------------------------------------- + 266723738 nb_facons_rendre [5] + 0.55 0.00 1/1 main [1] +[5] 9.1 0.55 0.00 1+266723738 nb_facons_rendre [5] + 266723738 nb_facons_rendre [5] +----------------------------------------------- + 0.00 0.40 6017/6017 main [1] +[6] 6.6 0.00 0.40 6017 ajouter_ligne [6] + 0.40 0.00 6017/6017 longueur [7] +----------------------------------------------- + 0.40 0.00 6017/6017 ajouter_ligne [6] +[7] 6.6 0.40 0.00 6017 longueur [7] +----------------------------------------------- + 0.31 0.00 1/1 main [1] +[8] 5.1 0.31 0.00 1 meilleure_periode [8] +----------------------------------------------- + 0.10 0.00 1/1 main [1] +[9] 1.6 0.10 0.00 1 nb_clients_distincts [9] +----------------------------------------------- + 0.06 0.00 1/1 main [1] +[10] 1.0 0.06 0.00 1 total_par_jour [10] +----------------------------------------------- + +[11] 0.7 0.04 0.00 _init [11] +----------------------------------------------- + 0.00 0.00 149998/149998 generer_transactions [15] +[12] 0.0 0.00 0.00 149998 alea [12] +----------------------------------------------- + 0.00 0.00 30000/30000 main [1] +[13] 0.0 0.00 0.00 30000 categorie [13] +----------------------------------------------- + 0.00 0.00 1/1 main [1] +[14] 0.0 0.00 0.00 1 empreinte [14] +----------------------------------------------- + 0.00 0.00 1/1 main [1] +[15] 0.0 0.00 0.00 1 generer_transactions [15] + 0.00 0.00 149998/149998 alea [12] +----------------------------------------------- + 0.00 0.00 1/1 main [1] +[16] 0.0 0.00 0.00 1 total_par_client [16] +----------------------------------------------- + + This table describes the call tree of the program, and was sorted by + the total amount of time spent in each function and its children. + + Each entry in this table consists of several lines. The line with the + index number at the left hand margin lists the current function. + The lines above it list the functions that called this function, + and the lines below it list the functions this one called. + This line lists: + index A unique number given to each element of the table. + Index numbers are sorted numerically. + The index number is printed next to every function name so + it is easier to look up where the function is in the table. + + % time This is the percentage of the `total' time that was spent + in this function and its children. Note that due to + different viewpoints, functions excluded by options, etc, + these numbers will NOT add up to 100%. + + self This is the total amount of time spent in this function. + + children This is the total amount of time propagated into this + function by its children. + + called This is the number of times the function was called. + If the function called itself recursively, the number + only includes non-recursive calls, and is followed by + a `+' and the number of recursive calls. + + name The name of the current function. The index number is + printed after it. If the function is a member of a + cycle, the cycle number is printed between the + function's name and the index number. + + + For the function's parents, the fields have the following meanings: + + self This is the amount of time that was propagated directly + from the function into this parent. + + children This is the amount of time that was propagated from + the function's children into this parent. + + called This is the number of times this parent called the + function `/' the total number of times the function + was called. Recursive calls to the function are not + included in the number after the `/'. + + name This is the name of the parent. The parent's index + number is printed after it. If the parent is a + member of a cycle, the cycle number is printed between + the name and the index number. + + If the parents of the function cannot be determined, the word + `' is printed in the `name' field, and all the other + fields are blank. + + For the function's children, the fields have the following meanings: + + self This is the amount of time that was propagated directly + from the child into the function. + + children This is the amount of time that was propagated from the + child's children to the function. + + called This is the number of times the function called + this child `/' the total number of times the child + was called. Recursive calls by the child are not + listed in the number after the `/'. + + name This is the name of the child. The child's index + number is printed after it. If the child is a + member of a cycle, the cycle number is printed + between the name and the index number. + + If there are any cycles (circles) in the call graph, there is an + entry for the cycle-as-a-whole. This entry shows who called the + cycle (as parents) and the members of the cycle (as children.) + The `+' recursive calls entry shows the number of function calls that + were internal to the cycle, and the calls entry for each member shows, + for that member, how many times it was called from other members of + the cycle. + +Copyright (C) 2012-2026 Free Software Foundation, Inc. + +Copying and distribution of this file, with or without modification, +are permitted in any medium without royalty provided the copyright +notice and this notice are preserved. + +Index by function name + + [11] _init [15] generer_transactions [4] nb_paires_opposees + [6] ajouter_ligne [7] longueur [3] rechercher_par_id + [12] alea [8] meilleure_periode [16] total_par_client + [13] categorie [9] nb_clients_distincts [10] total_par_jour + [14] empreinte [5] nb_facons_rendre [2] trier_par_montant