Commit 1ab9d0e8 authored by junjianx@chromium.org's avatar junjianx@chromium.org

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
parent 8f28854b
graphs/*
visualizer/static/third_party/flot/*
visualizer/app.yaml
<!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
#!/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
......@@ -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_();
......
......@@ -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_();
......
......@@ -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>
......
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment