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

Unified Diff: chrome/browser/resources/profiler/profiler.html

Issue 8918018: Support save/restore in about:profiler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/profiler/profiler.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/profiler/profiler.html
diff --git a/chrome/browser/resources/profiler/profiler.html b/chrome/browser/resources/profiler/profiler.html
index 53db962e6859599570295c9571a96fe3416330e0..c5da4a4e8a4b47694e530c6d2c8c5393e93d040f 100644
--- a/chrome/browser/resources/profiler/profiler.html
+++ b/chrome/browser/resources/profiler/profiler.html
@@ -97,9 +97,19 @@ table.results-table,
color: green;
}
+.errormsg {
+ color: red;
+}
+
</style>
</head>
<body>
+ <b>Save:</b><button id=save-snapshots-button>Save</button>
+ <b>Restore:</b> <input type=file id=snapshot-file-loader />
+ <span id=file-load-error hidden class=errormsg></span>
+
+ <hr/>
+
<table width=100%>
<tr>
<td>
@@ -126,7 +136,7 @@ table.results-table,
</tr>
<tr id=snapshots-row style='display:none'>
<td colspan=2>
- <button id=snapshot-button>Add snapshot</button>
+ <button id=take-snapshot-button>Add snapshot</button>
<table><tbody id=snapshots-tbody></tbody></table>
<div id=snapshot-selection-summary></div>
</td>
@@ -140,5 +150,7 @@ table.results-table,
<!-- TODO(eroman): This should only be a short-lived solution,
which will eventually be superceded by snapshotting -->
<span id=reset-data-link class=pseudo-link>[Reset tracking data]</span>
+
+ <iframe style="display: none" id="download-iframe"></iframe>
</body>
</html>
« no previous file with comments | « no previous file | chrome/browser/resources/profiler/profiler.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698