Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: tools/android/loading/deprecated/process_request_log.py

Issue 1619713002: Upgrade analyze.py and related scripts to new world order. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/android/loading/deprecated/log_requests.py ('k') | tools/android/loading/device_setup.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #! /usr/bin/python 1 #! /usr/bin/python
2 # Copyright 2015 The Chromium Authors. All rights reserved. 2 # Copyright 2015 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Creates a Graphviz file visualizing the resource dependencies from a JSON 6 """Creates a Graphviz file visualizing the resource dependencies from a JSON
7 file dumped by log_requests.py. 7 file dumped by log_requests.py.
8 """ 8 """
9 9
10 import collections 10 import collections
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 def main(): 180 def main():
181 filename = sys.argv[1] 181 filename = sys.argv[1]
182 requests = log_parser.ParseJsonFile(filename) 182 requests = log_parser.ParseJsonFile(filename)
183 requests = log_parser.FilterRequests(requests) 183 requests = log_parser.FilterRequests(requests)
184 (resources, deps) = _BuildResourceDependencyGraph(requests) 184 (resources, deps) = _BuildResourceDependencyGraph(requests)
185 _GraphvizFileFromDeps(resources, requests, deps, filename + '.dot') 185 _GraphvizFileFromDeps(resources, requests, deps, filename + '.dot')
186 186
187 187
188 if __name__ == '__main__': 188 if __name__ == '__main__':
189 main() 189 main()
OLDNEW
« no previous file with comments | « tools/android/loading/deprecated/log_requests.py ('k') | tools/android/loading/device_setup.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698