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

Unified Diff: native_client_sdk/src/examples/trace_events/index.html

Issue 12212198: Add C++ Trace Event support to PPAPI/NaCl SDK (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 10 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
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..9a045b4819976505d0a2fb293240f543bbc61d7c
--- /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 with and captures the length
binji 2013/02/14 22:01:28 with...?
elijahtaylor1 2013/02/14 23:38:10 Done.
+ 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>

Powered by Google App Engine
This is Rietveld 408576698