Update to latest trace viewer

Upstream trace viewer has changed substantially since last pull.

First, the old flattening into js + css + html workflow has been replaced with
a new flatten into single html file workflow.

Second, trace viewer has moved to git.

Some pieces that were previously only in systrace are now upstream as well.
In particular, minification is now upstream. Thus, the minifying features in
systrace can be removed.

Change-Id: Ibc6a46fa3dccff8b771a95aae1909cf178157264
diff --git a/trace-viewer/trace_viewer/core/analysis/single_global_memory_dump_sub_view.html b/trace-viewer/trace_viewer/core/analysis/single_global_memory_dump_sub_view.html
new file mode 100644
index 0000000..fc2920c
--- /dev/null
+++ b/trace-viewer/trace_viewer/core/analysis/single_global_memory_dump_sub_view.html
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2015 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.
+-->
+
+<link rel="import" href="/core/analysis/analysis_sub_view.html">
+<link rel="import" href="/core/analysis/generic_object_view.html">
+
+<polymer-element name="tv-c-single-global-memory-dump-sub-view"
+    extends="tracing-analysis-sub-view">
+  <script>
+  'use strict';
+
+  Polymer({
+    created: function() {
+      this.currentSelection_ = undefined;
+    },
+
+    set selection(selection) {
+      if (selection.length !== 1)
+        throw new Error('Only supports a single global memory dump');
+      if (!(selection[0] instanceof tv.c.trace_model.GlobalMemoryDump))
+        throw new Error('Only supports global memory dumps');
+      this.setSelectionWithoutErrorChecks(selection);
+    },
+
+    get selection() {
+      return this.currentSelection_;
+    },
+
+    setSelectionWithoutErrorChecks: function(selection) {
+      this.currentSelection_ = selection;
+      this.textContent = '';
+
+      var pidToProcessMemoryMap = {};
+      var gd = this.currentSelection_[0];
+      for (var pid in gd.processMemoryDumps) {
+        var pd = gd.processMemoryDumps[pid];
+        pidToProcessMemoryMap[pid] = pd.args;
+      }
+
+      var objectView =
+          document.createElement('tv-c-analysis-generic-object-view');
+      objectView.object = pidToProcessMemoryMap;
+      this.appendChild(objectView);
+    }
+  });
+  </script>
+</polymer>