Add yapf python formatter and format all files
yapf seems widely used in chromium. Adding here and
formatting all existing sources.
Change-Id: I5fd223a46cf3a00e6b7e6266850825b484af1558
diff --git a/tools/analyze_profiling_sampling_distribution.py b/tools/analyze_profiling_sampling_distribution.py
index a33ffb3..e1e41cb 100644
--- a/tools/analyze_profiling_sampling_distribution.py
+++ b/tools/analyze_profiling_sampling_distribution.py
@@ -24,6 +24,7 @@
from collections import defaultdict
from matplotlib import pyplot as plt
+
def main(argv):
sns.set()
@@ -44,8 +45,9 @@
distributions[code_location][int(itr)] += int(size)
# Map from key to list of bytes allocated, one for each iteration.
- flat_distributions = {key: value.values() for key, value
- in distributions.iteritems()}
+ flat_distributions = {
+ key: value.values() for key, value in distributions.iteritems()
+ }
for key, value in flat_distributions.iteritems():
print key, "ground truth %d " % ground_truth[key], sp.stats.describe(value)