common/tools/analysis/readme.txt
author Matt Davies <mattd@symbian.org>
Wed, 03 Jun 2009 18:30:15 +0100
changeset 162 d3c5dd0ae0b0
parent 124 71122b8e1c7b
permissions -rw-r--r--
Added yarp.pl - (Yet Another Raptor Parser) and dump_recipe_at_line.pl Usage for yarp.pl: perl yarp.pl <compile_log> <output_csv> Usage for dump_recipe_at_line.pl: perl dump_recipe_at_line.pl <compile_log> <line|line_list_file> The idea of dump_recipe_at_line.pl is so you can take a column of line numbers from the CSV created by yarp and see what happened (without having to open the 300MB file) with a single column: ... 226242 ... you get: ... 226242 <recipe name blah blah blah... ... With two columns in the file, you can have some more readable output: ... 226242 m:/sf/mw/classicui/group/bld.inf ... you get: ... m:/sf/mw/classicui/group/bld.inf(226242): <recipe name blah blah blah... ...
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
124
71122b8e1c7b Added find_collisions.pl Updated the readme.txt for instructions.
Matt Davies <mattd@symbian.org>
parents: 120
diff changeset
     1
Update 20090519 by MattD
120
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
     2
124
71122b8e1c7b Added find_collisions.pl Updated the readme.txt for instructions.
Matt Davies <mattd@symbian.org>
parents: 120
diff changeset
     3
Can now run parselistdirs.pl from anywhere witout lots of intermediate output files:
71122b8e1c7b Added find_collisions.pl Updated the readme.txt for instructions.
Matt Davies <mattd@symbian.org>
parents: 120
diff changeset
     4
perl parselistdirs.pl <logs_dir> (<output_dir>)
71122b8e1c7b Added find_collisions.pl Updated the readme.txt for instructions.
Matt Davies <mattd@symbian.org>
parents: 120
diff changeset
     5
Note that it will still put most of it's output to the console as before. The second dir is optional.
120
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
     6
124
71122b8e1c7b Added find_collisions.pl Updated the readme.txt for instructions.
Matt Davies <mattd@symbian.org>
parents: 120
diff changeset
     7
Added find_collisions.pl
71122b8e1c7b Added find_collisions.pl Updated the readme.txt for instructions.
Matt Davies <mattd@symbian.org>
parents: 120
diff changeset
     8
Prefers to be run from the root on the build machine (as it's looking for files to compare)
71122b8e1c7b Added find_collisions.pl Updated the readme.txt for instructions.
Matt Davies <mattd@symbian.org>
parents: 120
diff changeset
     9
It's a hacked up version of merge_csv.pl
71122b8e1c7b Added find_collisions.pl Updated the readme.txt for instructions.
Matt Davies <mattd@symbian.org>
parents: 120
diff changeset
    10
Usage:
71122b8e1c7b Added find_collisions.pl Updated the readme.txt for instructions.
Matt Davies <mattd@symbian.org>
parents: 120
diff changeset
    11
perl find_collisions.pl what_results.log >collision_result.txt
71122b8e1c7b Added find_collisions.pl Updated the readme.txt for instructions.
Matt Davies <mattd@symbian.org>
parents: 120
diff changeset
    12
It creates a CSV based on the name of the file passed to it (ie what_results.log_collisions.csv)
71122b8e1c7b Added find_collisions.pl Updated the readme.txt for instructions.
Matt Davies <mattd@symbian.org>
parents: 120
diff changeset
    13
71122b8e1c7b Added find_collisions.pl Updated the readme.txt for instructions.
Matt Davies <mattd@symbian.org>
parents: 120
diff changeset
    14
Yes, They are all quick and dirty.
71122b8e1c7b Added find_collisions.pl Updated the readme.txt for instructions.
Matt Davies <mattd@symbian.org>
parents: 120
diff changeset
    15
71122b8e1c7b Added find_collisions.pl Updated the readme.txt for instructions.
Matt Davies <mattd@symbian.org>
parents: 120
diff changeset
    16
Older stuff:
120
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    17
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    18
F:\6.2\generated\parselistdirs.pl - creates sets from the listdirs outputs...
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    19
F:\6.2\generated\parsewhatlog.pl - creates a CSV-style log from the whatlogs.
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    20
F:\6.2\generated\merge_csv.pl - takes the output CSV from parsewhatlog.pl and merges in the output of parselistdirs.pl
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    21
in generated>
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    22
perl parselistdirs.pl ..\ >list_results.log
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    23
perl parsewhatlog.pl ..\ >what_results.log
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    24
perl merge_csv.pl what_results.log list_results.log >summary.txt
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    25
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    26
The Test dir is a directory filled with test text files...
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    27
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    28
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    29