message: Add Fb4a Basic Block Stats Trace
  Summary:
  I added trace results for fb4a. I enumerate methods and basic blocks and details about method and block sizes.
  The python script can be used to extract statistics from the trace.
diff: @@ -15,7 +15,8 @@ parser.add_argument("-p", "--percentile",
  help="The percentile values to print")
  parser.add_argument("-c", "--count",
  dest="countSize", default="1",
  - help="Count number of Methods of this Size")
  + help="Count number of methods of this size")
  +
  def main():
  args = parser.parse_args()
  @@ -29,25 +30,24 @@ def main():
  tr_file = open(args.trace_file, "r")
  trace = 0
  for row in tr_file:
  - type_of_trace = row.split(" ")
  - if type_of_trace[0]!="[BBPROFILE:5]":
  - continue;
  - else:
  - trace = 1
  - all_stats = type_of_trace[1].split(',')
  + all_stats = row.split(',')
  if all_stats[0] == "M" or all_stats[0] == "B":
  + trace = 1
  if all_stats[0] == "M":
  num_methods += 1
  - method_size_array.insert(len(method_size_array), int(all_stats[2]))
  + method_size_array.insert(len(method_size_array),
  + int(all_stats[2]))
  elif all_stats[0] == "B":
  num_blocks += 1
  num_instructions += int(all_stats[2])
  fan_in += int(all_stats[4])
  - block_size_array.insert(len(method_size_array),int(all_stats[2]))
  + block_size_array.insert(len(method_size_array),
  + int(all_stats[2]))
  num_virtual += int(all_stats[4])
  print "========Summary========="
  if trace:
  - print "Num of Methods: %d, Num of Blocks: %d" % (num_methods, num_blocks)
  + print "Num of Methods: %d, Num of Blocks: %d" % (num_methods,
  + num_blocks)
  print "Blocks/Method: %.2f, Instructions/Block: %.2f" % (
  num_blocks / num_methods, num_instructions / num_blocks)
  print "Average Degree: %.2f" % (fan_in / num_blocks)
  @@ -56,7 +56,8 @@ def main():
  np.percentile(np.array(method_size_array), int(args.percentile)))
  print "%dth percentile in Block Size: %.2f" % (int(args.percentile),
  np.percentile(np.array(block_size_array), int(args.percentile)))
  - print "Methods of size %d: %d" % (int(args.countSize), method_size_array.count(int(args.countSize)))
  + print "Methods of size %d: %d" % (int(args.countSize),
  + method_size_array.count(int(args.countSize)))
  #print method_size_array
  #print block_size_array
  else:
  