OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <!-- |
| 4 Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 5 Use of this source code is governed by a BSD-style license that can be |
| 6 found in the LICENSE file. |
| 7 --> |
| 8 <head> |
| 9 <meta http-equiv="Pragma" content="no-cache"> |
| 10 <meta http-equiv="Expires" content="-1"> |
| 11 <title><TITLE></title> |
| 12 <script type="text/javascript" src="common.js"></script> |
| 13 <script type="text/javascript" src="example.js"></script> |
| 14 </head> |
| 15 <body data-name="<NAME>" data-tc="<tc>" data-path="<path>"> |
| 16 <h1><TITLE></h1> |
| 17 <h2>Status: <code id="statusField">NO-STATUS</code></h2> |
| 18 <!-- The NaCl plugin will be embedded inside the element with id "listener". |
| 19 See common.js.--> |
| 20 <div id="listener"></div> |
| 21 <ol> |
| 22 <li>In another tab, open chrome://tracing |
| 23 <li>Click 'Record' |
| 24 <li>Use the buttons below to trigger trace data |
| 25 <ul> |
| 26 <li>"Run threaded task" creates a new thread and captures the length of |
| 27 its execution (2 second sleep). |
| 28 <li>"Send trace begin/end" sends async tracing messages to measure the |
| 29 time between the begin and end button clicks. |
| 30 </ul> |
| 31 <li>On chrome://tracing, click 'Stop tracing' to view the data |
| 32 </ol> |
| 33 <div> |
| 34 <input type="button" id="runthreadedtask" value="Run threaded task"></input> |
| 35 <input type="button" id="sendasynctrace" value="Send trace begin"></input> |
| 36 <div/> |
| 37 </body> |
| 38 </html> |
OLD | NEW |