diff options
author | junjianx@chromium.org <junjianx@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-17 05:13:58 +0000 |
---|---|---|
committer | junjianx@chromium.org <junjianx@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-17 05:13:58 +0000 |
commit | 1ab9d0e8826ad011b70f6499754264ee7624e316 (patch) | |
tree | 89889c5704a3d64c03d4107bb0a5e076c265b2b1 /tools/deep_memory_profiler | |
parent | 8f28854b30c6bc78a496ccc1e804ce5d9796a090 (diff) | |
download | chromium_src-1ab9d0e8826ad011b70f6499754264ee7624e316.zip chromium_src-1ab9d0e8826ad011b70f6499754264ee7624e316.tar.gz chromium_src-1ab9d0e8826ad011b70f6499754264ee7624e316.tar.bz2 |
Modified directory preparing for app engine for dmprof visualizer.
Create static folder to put javascript and css files.
Recovered index.html and index.js removed in last issue for app engine.
BUG=259206
NOTRY=True
Review URL: https://chromiumcodereview.appspot.com/23777005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223541 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/deep_memory_profiler')
-rw-r--r-- | tools/deep_memory_profiler/.gitignore | 2 | ||||
-rw-r--r-- | tools/deep_memory_profiler/visualizer/index.html | 33 | ||||
-rwxr-xr-x | tools/deep_memory_profiler/visualizer/run.sh | 10 | ||||
-rw-r--r-- | tools/deep_memory_profiler/visualizer/static/dropdown-view.js (renamed from tools/deep_memory_profiler/visualizer/dropdown-view.js) | 0 | ||||
-rw-r--r-- | tools/deep_memory_profiler/visualizer/static/graph-view.js (renamed from tools/deep_memory_profiler/visualizer/graph-view.js) | 0 | ||||
-rw-r--r-- | tools/deep_memory_profiler/visualizer/static/graph-view_unittest.js (renamed from tools/deep_memory_profiler/visualizer/graph-view_unittest.js) | 2 | ||||
-rw-r--r-- | tools/deep_memory_profiler/visualizer/static/index.css (renamed from tools/deep_memory_profiler/visualizer/index.css) | 0 | ||||
-rw-r--r-- | tools/deep_memory_profiler/visualizer/static/menu-view.js (renamed from tools/deep_memory_profiler/visualizer/menu-view.js) | 0 | ||||
-rw-r--r-- | tools/deep_memory_profiler/visualizer/static/profiler.js (renamed from tools/deep_memory_profiler/visualizer/profiler.js) | 0 | ||||
-rw-r--r-- | tools/deep_memory_profiler/visualizer/static/profiler_unittest.js (renamed from tools/deep_memory_profiler/visualizer/profiler_unittest.js) | 2 | ||||
-rw-r--r-- | tools/deep_memory_profiler/visualizer/static/test.html (renamed from tools/deep_memory_profiler/visualizer/test.html) | 2 | ||||
-rw-r--r-- | tools/deep_memory_profiler/visualizer/static/third_party/jqTree/LICENSE (renamed from tools/deep_memory_profiler/visualizer/third_party/jqTree/LICENSE) | 0 | ||||
-rw-r--r-- | tools/deep_memory_profiler/visualizer/static/third_party/jqTree/OWNERS (renamed from tools/deep_memory_profiler/visualizer/third_party/jqTree/OWNERS) | 0 | ||||
-rw-r--r-- | tools/deep_memory_profiler/visualizer/static/third_party/jqTree/README.chromium (renamed from tools/deep_memory_profiler/visualizer/third_party/jqTree/README.chromium) | 0 | ||||
-rw-r--r-- | tools/deep_memory_profiler/visualizer/static/third_party/jqTree/README.md (renamed from tools/deep_memory_profiler/visualizer/third_party/jqTree/README.md) | 0 | ||||
-rw-r--r-- | tools/deep_memory_profiler/visualizer/static/third_party/jqTree/jqtree.css (renamed from tools/deep_memory_profiler/visualizer/third_party/jqTree/jqtree.css) | 0 | ||||
-rw-r--r-- | tools/deep_memory_profiler/visualizer/static/third_party/jqTree/tree.jquery.js (renamed from tools/deep_memory_profiler/visualizer/third_party/jqTree/tree.jquery.js) | 0 | ||||
-rw-r--r-- | tools/deep_memory_profiler/visualizer/static/utility.js (renamed from tools/deep_memory_profiler/visualizer/utility.js) | 0 | ||||
-rwxr-xr-x | tools/deep_memory_profiler/visualizer/template.py | 17 |
19 files changed, 57 insertions, 11 deletions
diff --git a/tools/deep_memory_profiler/.gitignore b/tools/deep_memory_profiler/.gitignore index 2607a57..ca14820 100644 --- a/tools/deep_memory_profiler/.gitignore +++ b/tools/deep_memory_profiler/.gitignore @@ -1 +1,3 @@ graphs/* +visualizer/static/third_party/flot/* +visualizer/app.yaml diff --git a/tools/deep_memory_profiler/visualizer/index.html b/tools/deep_memory_profiler/visualizer/index.html new file mode 100644 index 0000000..4d756c4 --- /dev/null +++ b/tools/deep_memory_profiler/visualizer/index.html @@ -0,0 +1,33 @@ +<!DOCTYPE html> +<!-- +Copyright 2013 The Chromium Authors. All rights reserved. +Use of this source code is governed by a BSD-style license that can be +found in the LICENSE file. +--> +<meta charset="utf-8"> +<link rel="stylesheet" href="static/index.css"> +<link rel="stylesheet" href="static/third_party/jqTree/jqtree.css"> + +<script src="static/third_party/flot/jquery.min.js"></script> +<script src="static/third_party/flot/jquery.flot.min.js"></script> +<script src="static/third_party/flot/jquery.flot.stack.min.js"></script> +<script src="static/third_party/jqTree/tree.jquery.js"></script> +<script src="static/utility.js"></script> +<script src="static/profiler.js"></script> +<script src="static/graph-view.js"></script> +<script src="static/dropdown-view.js"></script> +<script src="static/menu-view.js"></script> +<script src="static/index.js"></script> + +<body> + <h2>Deep Memory Profiler Visulaizer</h2> + <form action="/" method="post"> + <input type="file" action=name="data"/> + <input type="submit"/> + </form> + <div id="graph-div"></div> + <div id="info-div"> + <div id="subs-dropdown"></div> + <div id="category-menu"></div> + </div> +</body>
\ No newline at end of file diff --git a/tools/deep_memory_profiler/visualizer/run.sh b/tools/deep_memory_profiler/visualizer/run.sh new file mode 100755 index 0000000..a918c43 --- /dev/null +++ b/tools/deep_memory_profiler/visualizer/run.sh @@ -0,0 +1,10 @@ +#!/bin/bash +# Copyright 2013 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +# This shell would copy flot library from chromium/src/third_parth. +mkdir static/third_party/flot +cp ../../../third_party/flot/jquery.min.js static/third_party/flot +cp ../../../third_party/flot/jquery.flot.min.js static/third_party/flot +cp ../../../third_party/flot/jquery.flot.stack.min.js static/third_party/flot diff --git a/tools/deep_memory_profiler/visualizer/dropdown-view.js b/tools/deep_memory_profiler/visualizer/static/dropdown-view.js index 64820bb..64820bb 100644 --- a/tools/deep_memory_profiler/visualizer/dropdown-view.js +++ b/tools/deep_memory_profiler/visualizer/static/dropdown-view.js diff --git a/tools/deep_memory_profiler/visualizer/graph-view.js b/tools/deep_memory_profiler/visualizer/static/graph-view.js index cd20511..cd20511 100644 --- a/tools/deep_memory_profiler/visualizer/graph-view.js +++ b/tools/deep_memory_profiler/visualizer/static/graph-view.js diff --git a/tools/deep_memory_profiler/visualizer/graph-view_unittest.js b/tools/deep_memory_profiler/visualizer/static/graph-view_unittest.js index e649555..b972089 100644 --- a/tools/deep_memory_profiler/visualizer/graph-view_unittest.js +++ b/tools/deep_memory_profiler/visualizer/static/graph-view_unittest.js @@ -23,7 +23,7 @@ var lineIsValid = function(line, length) { // Test title format is file-name:function-name. test('graph-view:generateLines_', function() { stop(); - $.getJSON('data/sample.json', function(data) { + $.getJSON('../data/sample.json', function(data) { start(); var profiler = new Profiler(data); var models = profiler.parseTemplate_(); diff --git a/tools/deep_memory_profiler/visualizer/index.css b/tools/deep_memory_profiler/visualizer/static/index.css index e807d31..e807d31 100644 --- a/tools/deep_memory_profiler/visualizer/index.css +++ b/tools/deep_memory_profiler/visualizer/static/index.css diff --git a/tools/deep_memory_profiler/visualizer/menu-view.js b/tools/deep_memory_profiler/visualizer/static/menu-view.js index e9ec197..e9ec197 100644 --- a/tools/deep_memory_profiler/visualizer/menu-view.js +++ b/tools/deep_memory_profiler/visualizer/static/menu-view.js diff --git a/tools/deep_memory_profiler/visualizer/profiler.js b/tools/deep_memory_profiler/visualizer/static/profiler.js index 8e311aa..8e311aa 100644 --- a/tools/deep_memory_profiler/visualizer/profiler.js +++ b/tools/deep_memory_profiler/visualizer/static/profiler.js diff --git a/tools/deep_memory_profiler/visualizer/profiler_unittest.js b/tools/deep_memory_profiler/visualizer/static/profiler_unittest.js index f6f0f8c..7ea721d 100644 --- a/tools/deep_memory_profiler/visualizer/profiler_unittest.js +++ b/tools/deep_memory_profiler/visualizer/static/profiler_unittest.js @@ -35,7 +35,7 @@ var modelIsValid = function(model) { // Test title format is file-name:function-name. test('profiler:parseTemplate_', function() { stop(); - $.getJSON('data/sample.json', function(data) { + $.getJSON('../data/sample.json', function(data) { start(); var profiler = new Profiler(data); var models = profiler.parseTemplate_(); diff --git a/tools/deep_memory_profiler/visualizer/test.html b/tools/deep_memory_profiler/visualizer/static/test.html index c108ff7..ec1caa6 100644 --- a/tools/deep_memory_profiler/visualizer/test.html +++ b/tools/deep_memory_profiler/visualizer/static/test.html @@ -8,7 +8,7 @@ found in the LICENSE file. <link rel="stylesheet" href="//code.jquery.com/qunit/qunit-1.12.0.css"> <script src="//code.jquery.com/qunit/qunit-1.12.0.js"></script> -<script src="../../../third_party/flot/jquery.min.js"></script> +<script src="../../../../third_party/flot/jquery.min.js"></script> <script src="third_party/jqTree/tree.jquery.js"></script> <script src="utility.js"></script> <script src="profiler.js"></script> diff --git a/tools/deep_memory_profiler/visualizer/third_party/jqTree/LICENSE b/tools/deep_memory_profiler/visualizer/static/third_party/jqTree/LICENSE index d09301f..d09301f 100644 --- a/tools/deep_memory_profiler/visualizer/third_party/jqTree/LICENSE +++ b/tools/deep_memory_profiler/visualizer/static/third_party/jqTree/LICENSE diff --git a/tools/deep_memory_profiler/visualizer/third_party/jqTree/OWNERS b/tools/deep_memory_profiler/visualizer/static/third_party/jqTree/OWNERS index a207fbd..a207fbd 100644 --- a/tools/deep_memory_profiler/visualizer/third_party/jqTree/OWNERS +++ b/tools/deep_memory_profiler/visualizer/static/third_party/jqTree/OWNERS diff --git a/tools/deep_memory_profiler/visualizer/third_party/jqTree/README.chromium b/tools/deep_memory_profiler/visualizer/static/third_party/jqTree/README.chromium index ae316fd..ae316fd 100644 --- a/tools/deep_memory_profiler/visualizer/third_party/jqTree/README.chromium +++ b/tools/deep_memory_profiler/visualizer/static/third_party/jqTree/README.chromium diff --git a/tools/deep_memory_profiler/visualizer/third_party/jqTree/README.md b/tools/deep_memory_profiler/visualizer/static/third_party/jqTree/README.md index d9ee14d..d9ee14d 100644 --- a/tools/deep_memory_profiler/visualizer/third_party/jqTree/README.md +++ b/tools/deep_memory_profiler/visualizer/static/third_party/jqTree/README.md diff --git a/tools/deep_memory_profiler/visualizer/third_party/jqTree/jqtree.css b/tools/deep_memory_profiler/visualizer/static/third_party/jqTree/jqtree.css index 5f040ce..5f040ce 100644 --- a/tools/deep_memory_profiler/visualizer/third_party/jqTree/jqtree.css +++ b/tools/deep_memory_profiler/visualizer/static/third_party/jqTree/jqtree.css diff --git a/tools/deep_memory_profiler/visualizer/third_party/jqTree/tree.jquery.js b/tools/deep_memory_profiler/visualizer/static/third_party/jqTree/tree.jquery.js index 2ebff8b..2ebff8b 100644 --- a/tools/deep_memory_profiler/visualizer/third_party/jqTree/tree.jquery.js +++ b/tools/deep_memory_profiler/visualizer/static/third_party/jqTree/tree.jquery.js diff --git a/tools/deep_memory_profiler/visualizer/utility.js b/tools/deep_memory_profiler/visualizer/static/utility.js index 85f6768..85f6768 100644 --- a/tools/deep_memory_profiler/visualizer/utility.js +++ b/tools/deep_memory_profiler/visualizer/static/utility.js diff --git a/tools/deep_memory_profiler/visualizer/template.py b/tools/deep_memory_profiler/visualizer/template.py index 5a3f0ee..d87a360 100755 --- a/tools/deep_memory_profiler/visualizer/template.py +++ b/tools/deep_memory_profiler/visualizer/template.py @@ -13,18 +13,19 @@ from string import Template _TEMPLATE = """<!DOCTYPE html> <meta charset="utf-8"> -<link rel="stylesheet" href="../visualizer/index.css"> -<link rel="stylesheet" href="../visualizer/third_party/jqTree/jqtree.css"> +<link rel="stylesheet" href="../visualizer/static/index.css"> +<link rel="stylesheet" + href="../visualizer/static/third_party/jqTree/jqtree.css"> <script src="../../../third_party/flot/jquery.min.js"></script> <script src="../../../third_party/flot/jquery.flot.min.js"></script> <script src="../../../third_party/flot/jquery.flot.stack.min.js"></script> -<script src="../visualizer/third_party/jqTree/tree.jquery.js"></script> -<script src="../visualizer/utility.js"></script> -<script src="../visualizer/profiler.js"></script> -<script src="../visualizer/graph-view.js"></script> -<script src="../visualizer/dropdown-view.js"></script> -<script src="../visualizer/menu-view.js"></script> +<script src="../visualizer/static/third_party/jqTree/tree.jquery.js"></script> +<script src="../visualizer/static/utility.js"></script> +<script src="../visualizer/static/profiler.js"></script> +<script src="../visualizer/static/graph-view.js"></script> +<script src="../visualizer/static/dropdown-view.js"></script> +<script src="../visualizer/static/menu-view.js"></script> <script type="text/javascript"> $(function() { var data = $DATA; |