Index: native_client_sdk/src/examples/trace_events/index.html |
diff --git a/native_client_sdk/src/examples/trace_events/index.html b/native_client_sdk/src/examples/trace_events/index.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b55f6f0624c1aa999bd4d8cb2acaf78aad621f58 |
--- /dev/null |
+++ b/native_client_sdk/src/examples/trace_events/index.html |
@@ -0,0 +1,38 @@ |
+<!DOCTYPE html> |
+<html> |
+ <!-- |
+ Copyright (c) 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. |
+ --> |
+<head> |
+ <meta http-equiv="Pragma" content="no-cache"> |
+ <meta http-equiv="Expires" content="-1"> |
+ <title><TITLE></title> |
+ <script type="text/javascript" src="common.js"></script> |
+ <script type="text/javascript" src="example.js"></script> |
+</head> |
+<body data-name="<NAME>" data-tc="<tc>" data-path="<path>"> |
+ <h1><TITLE></h1> |
+ <h2>Status: <code id="statusField">NO-STATUS</code></h2> |
+ <!-- The NaCl plugin will be embedded inside the element with id "listener". |
+ See common.js.--> |
+ <div id="listener"></div> |
+ <ol> |
+ <li>In another tab, open chrome://tracing |
+ <li>Click 'Record' |
+ <li>Use the buttons below to trigger trace data |
+ <ul> |
+ <li>"Run threaded task" creates a new thread and captures the length of |
+ its execution (2 second sleep). |
+ <li>"Send trace begin/end" sends async tracing messages to measure the |
+ time between the begin and end button clicks. |
+ </ul> |
+ <li>On chrome://tracing, click 'Stop tracing' to view the data |
+ </ol> |
+ <div> |
+ <input type="button" id="runthreadedtask" value="Run threaded task"></input> |
+ <input type="button" id="sendasynctrace" value="Send trace begin"></input> |
+ <div/> |
+</body> |
+</html> |