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

Side by Side Diff: tools/deep_memory_profiler/visualizer/template.py

Issue 23777005: Modified directory preparing for app engine for dmprof visualizer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove index.js Created 7 years, 3 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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2013 The Chromium Authors. All rights reserved. 2 # Copyright 2013 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 import os 6 import os
7 import subprocess 7 import subprocess
8 import sys 8 import sys
9 import tempfile 9 import tempfile
10 10
11 from string import Template 11 from string import Template
12 12
13 13
14 _TEMPLATE = """<!DOCTYPE html> 14 _TEMPLATE = """<!DOCTYPE html>
15 <meta charset="utf-8"> 15 <meta charset="utf-8">
16 <link rel="stylesheet" href="../visualizer/index.css"> 16 <link rel="stylesheet" href="../visualizer/static/index.css">
17 <link rel="stylesheet" href="../visualizer/third_party/jqTree/jqtree.css"> 17 <link rel="stylesheet"
18 href="../visualizer/static/third_party/jqTree/jqtree.css">
18 19
19 <script src="../../../third_party/flot/jquery.min.js"></script> 20 <script src="../../../third_party/flot/jquery.min.js"></script>
20 <script src="../../../third_party/flot/jquery.flot.min.js"></script> 21 <script src="../../../third_party/flot/jquery.flot.min.js"></script>
21 <script src="../../../third_party/flot/jquery.flot.stack.min.js"></script> 22 <script src="../../../third_party/flot/jquery.flot.stack.min.js"></script>
22 <script src="../visualizer/third_party/jqTree/tree.jquery.js"></script> 23 <script src="../visualizer/static/third_party/jqTree/tree.jquery.js"></script>
23 <script src="../visualizer/utility.js"></script> 24 <script src="../visualizer/static/utility.js"></script>
24 <script src="../visualizer/profiler.js"></script> 25 <script src="../visualizer/static/profiler.js"></script>
25 <script src="../visualizer/graph-view.js"></script> 26 <script src="../visualizer/static/graph-view.js"></script>
26 <script src="../visualizer/dropdown-view.js"></script> 27 <script src="../visualizer/static/dropdown-view.js"></script>
27 <script src="../visualizer/menu-view.js"></script> 28 <script src="../visualizer/static/menu-view.js"></script>
28 <script type="text/javascript"> 29 <script type="text/javascript">
29 $(function() { 30 $(function() {
30 var data = $DATA; 31 var data = $DATA;
31 var profiler = new Profiler(data); 32 var profiler = new Profiler(data);
32 var graphView = new GraphView(profiler); 33 var graphView = new GraphView(profiler);
33 var dropdownView = new DropdownView(profiler); 34 var dropdownView = new DropdownView(profiler);
34 var menuView = new MenuView(profiler); 35 var menuView = new MenuView(profiler);
35 36
36 profiler.reparse(); 37 profiler.reparse();
37 }); 38 });
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 subprocess.call(['xdg-open', html_path]) 72 subprocess.call(['xdg-open', html_path])
72 except OSError, exception: 73 except OSError, exception:
73 print >> sys.stderr, 'xdg-open failed:', exception 74 print >> sys.stderr, 'xdg-open failed:', exception
74 print 'generated html file is at ' + html_path 75 print 'generated html file is at ' + html_path
75 else: 76 else:
76 print 'generated html file is at ' + html_path 77 print 'generated html file is at ' + html_path
77 78
78 79
79 if __name__ == '__main__': 80 if __name__ == '__main__':
80 sys.exit(main(sys.argv)) 81 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « tools/deep_memory_profiler/visualizer/static/utility.js ('k') | tools/deep_memory_profiler/visualizer/test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698