tonyxx7 / antstatistics

Automatically exported from code.google.com/p/antstatistics
0 stars 1 forks source link

Dealing with stats on recursive targets #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create a target task (called task_to_be_called)
2. create a target task which contains antcall task, referencing 
task_to_be_called
3.

What is the expected output? What do you see instead?
I gues the output is the one wanted by you : a bar graph for each one, but it 
would be much more interesting for me to only see level 1 stats (only time for 
task_to_be_called)

Finally, we could get of course the overall stats, and inside, the time of each 
task.
In my case, :

<target name="run_all" description="Meta-annauire > Execute toutes les lignes 
d'assemblage definies">
        <antcall target="conf"/>

        <antcall target = "timestamp_assemblies_logs"/>
        <antcall target = "10Load_RHVDN_2_LDIF"/>
        <antcall target = "11Load_RHCCAS_2_LDIF"/>
        <antcall target = "12Load_RHCDE_2_LDIF"/>
        <antcall target = "13Load_Hierarchy_2_LDIF"/>
        <antcall target = "20MAJ_RHVDN_2_ADLDS"/>
        <antcall target = "21MAJ_RHCCAS_2_ADLDS"/>
        <antcall target = "22MAJ_RHCDE_2_ADLDS"/>
        <antcall target = "24MAJ_Hierarchy_2_ADLDS"/>
        <antcall target = "30MAJ_ADLDS_2_AD"/>
        <antcall target = "40MAJ_AD_2_ADLDS"/>
        <antcall target = "50Delete_RHVDN_2_XML"/>
        <antcall target = "51Delete_RHCCAS_2_XML"/>
        <antcall target = "52Delete_RHCDE_2_XML"/>
        <antcall target = "53Delete_Employee_Entries_ADLDS"/>
        <antcall target = "54Delete_Employee_Entries_IPPABX"/>
        <antcall target = "60Modif_RHVDN_XML"/>
        <antcall target = "61Modif_RHCCAS_XML"/>
        <antcall target = "62Modif_RHCDE_CSV"/>
        <antcall target = "70MAJ_Employee_ADLDS_2_IPPABX"/>
        <antcall target = "71MAJ_Employee_IPPABX_2_ADLDS"/>
        <antcall target = "72MAJ_Guest_ADLDS_2_IPPABX"/>
        <antcall target = "73MAJ_Guest_IPPABX_2_ADLDS"/>
        <antcall target = "74MAJ_Locality_ADLDS_2_IPPABX"/>
        <antcall target = "75MAJ_Locality_IPPABX_2_ADLDS"/>
        <antcall target = "76MAJ_ADLDS_Format_Numeros"/>
        <antcall target = "80_adlds_to_mairie_siidma"/>

</target>

In that case, i should not see this :

BUILD SUCCESSFUL
Total time: 51 seconds
+-------------------------------------------------------+
|               TivoliDirectoryIntegrator               |
+-------------------------------------------------------+
|          Target           | Duration (s) | Duration % |
+-------------------------------------------------------+
|          run_all          |      51      |   33,00%   |
|       run_assembly        |      50      |   33,00%   |
|    10Load_RHVDN_2_LDIF    |      17      |   11,00%   |
|    12Load_RHCDE_2_LDIF    |      15      |   9,00%    |
|   11Load_RHCCAS_2_LDIF    |      9       |   6,00%    |
|  13Load_Hierarchy_2_LDIF  |      8       |   5,00%    |
|           conf            |      0       |   0,00%    |
|   load.itdi.properties    |      0       |   0,00%    |
| timestamp_assemblies_logs |      0       |   0,00%    |
+-------------------------------------------------------+
|                  total time (s): 51                   |
+-------------------------------------------------------+

in my case :

run_all is the target that wrapps all calls
run_assembly is a target that is called as a function by all other targets.

So finally i would have rather expected to get only level 1 targets inside the 
run_all :

BUILD SUCCESSFUL
Total time: 51 seconds
+-------------------------------------------------------+
|               TivoliDirectoryIntegrator               |
+-------------------------------------------------------+
|          Target           | Duration (s) | Duration % |
+-------------------------------------------------------+
|    10Load_RHVDN_2_LDIF    |      17      |   11,00%   |
|    12Load_RHCDE_2_LDIF    |      15      |   9,00%    |
|   11Load_RHCCAS_2_LDIF    |      9       |   6,00%    |
|  13Load_Hierarchy_2_LDIF  |      8       |   5,00%    |
|           conf            |      0       |   0,00%    |
|   load.itdi.properties    |      0       |   0,00%    |
| timestamp_assemblies_logs |      0       |   0,00%    |
+-------------------------------------------------------+
|                  total time (s): 51                   |
+-------------------------------------------------------+

I think this is not really a bug, rather a feature request, that may probably 
not match your perspectives for your project.

Thank you in advance for any kind of feedback.

Best Regards,

Adrien

Original issue reported on code.google.com by adrien.s...@gmail.com on 28 Jul 2011 at 2:36

Attachments: