mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Deploy website
Deploy website version based on b6252b76ddd9ef155f67affbc904f74bd0b8b2cf
This commit is contained in:
@@ -68,10 +68,6 @@
|
||||
<li><a href="/react-native/docs/next/systrace#beginasyncevent"><code>beginAsyncEvent</code></a></li>
|
||||
<li><a href="/react-native/docs/next/systrace#endasyncevent"><code>endAsyncEvent</code></a></li>
|
||||
<li><a href="/react-native/docs/next/systrace#counterevent"><code>counterEvent</code></a></li>
|
||||
<li><a href="/react-native/docs/next/systrace#attachtorelayprofiler"><code>attachToRelayProfiler</code></a></li>
|
||||
<li><a href="/react-native/docs/next/systrace#swizzlejson"><code>swizzleJSON</code></a></li>
|
||||
<li><a href="/react-native/docs/next/systrace#measuremethods"><code>measureMethods</code></a></li>
|
||||
<li><a href="/react-native/docs/next/systrace#measure"><code>measure</code></a></li>
|
||||
</ul>
|
||||
<hr>
|
||||
<h1><a class="anchor" aria-hidden="true" id="reference"></a><a href="#reference" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Reference</h1>
|
||||
@@ -110,28 +106,6 @@
|
||||
<pre><code class="hljs css language-javascript"><span class="token keyword">static</span> <span class="token function">counterEvent</span><span class="token punctuation">(</span>profileName<span class="token operator">?</span><span class="token punctuation">,</span> value<span class="token operator">?</span><span class="token punctuation">)</span>
|
||||
</code></pre>
|
||||
<p>Register the value to the profileName on the systrace timeline.</p>
|
||||
<hr>
|
||||
<h3><a class="anchor" aria-hidden="true" id="attachtorelayprofiler"></a><a href="#attachtorelayprofiler" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a><code>attachToRelayProfiler()</code></h3>
|
||||
<pre><code class="hljs css language-javascript"><span class="token keyword">static</span> <span class="token function">attachToRelayProfiler</span><span class="token punctuation">(</span>relayProfiler<span class="token punctuation">)</span>
|
||||
</code></pre>
|
||||
<p>Relay profiles use await calls, so likely occur out of current stack frame therefore async variant of profiling is used.</p>
|
||||
<hr>
|
||||
<h3><a class="anchor" aria-hidden="true" id="swizzlejson"></a><a href="#swizzlejson" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a><code>swizzleJSON()</code></h3>
|
||||
<pre><code class="hljs css language-javascript"><span class="token keyword">static</span> <span class="token function">swizzleJSON</span><span class="token punctuation">(</span><span class="token punctuation">)</span>
|
||||
</code></pre>
|
||||
<p>This is not called by default due to performance overhead, but it's useful for finding traces which spend too much time in JSON.</p>
|
||||
<hr>
|
||||
<h3><a class="anchor" aria-hidden="true" id="measuremethods"></a><a href="#measuremethods" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a><code>measureMethods()</code></h3>
|
||||
<pre><code class="hljs css language-javascript"><span class="token keyword">static</span> <span class="token function">measureMethods</span><span class="token punctuation">(</span>object<span class="token punctuation">,</span> objectName<span class="token punctuation">,</span> methodNames<span class="token punctuation">)</span>
|
||||
</code></pre>
|
||||
<p>Measures multiple methods of a class. For example, the following will return the <code>parse</code> and <code>stringify</code> methods of the JSON class: Systrace.measureMethods(JSON, 'JSON', ['parse', 'stringify']);</p>
|
||||
<p>@param object @param objectName @param methodNames Map from method names to method display names.</p>
|
||||
<hr>
|
||||
<h3><a class="anchor" aria-hidden="true" id="measure"></a><a href="#measure" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a><code>measure()</code></h3>
|
||||
<pre><code class="hljs css language-javascript"><span class="token keyword">static</span> <span class="token function">measure</span><span class="token punctuation">(</span>objName<span class="token punctuation">,</span> fnName<span class="token punctuation">,</span> func<span class="token punctuation">)</span>
|
||||
</code></pre>
|
||||
<p>Returns a profiled version of the input function. For example, you can: JSON.parse = Systrace.measure('JSON', 'parse', JSON.parse);</p>
|
||||
<p>@param objName @param fnName @param {function} func @return {function} replacement function</p>
|
||||
</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/react-native/docs/next/stylesheet"><span class="arrow-prev">← </span><span class="function-name-prevnext">StyleSheet</span></a><a class="docs-next button" href="/react-native/docs/next/text-style-props"><span>Text Style Props</span><span class="arrow-next"> →</span></a></div></div></div></div><footer class="nav-footer" id="footer"><section class="sitemap"><a href="/react-native/" class="nav-home"><img src="/react-native/img/header_logo.png" alt="React Native" width="66" height="58"/></a><div><h5><a href="/react-native/docs/getting-started.html">Docs</a></h5><a href="/react-native/docs/getting-started.html">Getting Started</a><a href="/react-native/docs/tutorial.html">Tutorial</a><a href="/react-native/docs/components-and-apis.html">Components and APIs</a><a href="/react-native/docs/more-resources.html">More Resources</a></div><div><h5>Community</h5><a href="/react-native/help.html">Community Resources</a><a href="/react-native/showcase.html">Who's using React Native?</a><a href="http://stackoverflow.com/questions/tagged/react-native" target="_blank">Stack Overflow</a><a href="https://discord.gg/0ZcbPKXt5bZjGY5n">Reactiflux Chat</a></div><div><h5>More</h5><a href="/react-native/blog/">Blog</a><a href="https://twitter.com/reactnative" target="_blank">Twitter</a><a href="https://github.com/facebook/react-native" target="_blank">GitHub</a><a href="http://reactjs.org" target="_blank">React</a></div></section><a href="https://code.facebook.com/projects/" target="_blank" class="fbOpenSource"><img src="/react-native/img/oss_logo.png" alt="Facebook Open Source" width="170" height="45"/></a><section class="copyright">Copyright © 2019 Facebook Inc.</section></footer></div><script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script><script>window.fbAsyncInit = function() {FB.init({appId:'1677033832619985',xfbml:true,version:'v2.7'});};(function(d, s, id){var js, fjs = d.getElementsByTagName(s)[0];if (d.getElementById(id)) {return;}js = d.createElement(s); js.id = id;js.src = '//connect.facebook.net/en_US/sdk.js';fjs.parentNode.insertBefore(js, fjs);}(document, 'script','facebook-jssdk'));
|
||||
</script><script>window.twttr=(function(d,s, id){var js,fjs=d.getElementsByTagName(s)[0],t=window.twttr||{};if(d.getElementById(id))return t;js=d.createElement(s);js.id=id;js.src='https://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js, fjs);t._e = [];t.ready = function(f) {t._e.push(f);};return t;}(document, 'script', 'twitter-wjs'));</script><script>
|
||||
document.addEventListener('keyup', function(e) {
|
||||
|
||||
@@ -68,10 +68,6 @@
|
||||
<li><a href="/react-native/docs/next/systrace#beginasyncevent"><code>beginAsyncEvent</code></a></li>
|
||||
<li><a href="/react-native/docs/next/systrace#endasyncevent"><code>endAsyncEvent</code></a></li>
|
||||
<li><a href="/react-native/docs/next/systrace#counterevent"><code>counterEvent</code></a></li>
|
||||
<li><a href="/react-native/docs/next/systrace#attachtorelayprofiler"><code>attachToRelayProfiler</code></a></li>
|
||||
<li><a href="/react-native/docs/next/systrace#swizzlejson"><code>swizzleJSON</code></a></li>
|
||||
<li><a href="/react-native/docs/next/systrace#measuremethods"><code>measureMethods</code></a></li>
|
||||
<li><a href="/react-native/docs/next/systrace#measure"><code>measure</code></a></li>
|
||||
</ul>
|
||||
<hr>
|
||||
<h1><a class="anchor" aria-hidden="true" id="reference"></a><a href="#reference" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Reference</h1>
|
||||
@@ -110,28 +106,6 @@
|
||||
<pre><code class="hljs css language-javascript"><span class="token keyword">static</span> <span class="token function">counterEvent</span><span class="token punctuation">(</span>profileName<span class="token operator">?</span><span class="token punctuation">,</span> value<span class="token operator">?</span><span class="token punctuation">)</span>
|
||||
</code></pre>
|
||||
<p>Register the value to the profileName on the systrace timeline.</p>
|
||||
<hr>
|
||||
<h3><a class="anchor" aria-hidden="true" id="attachtorelayprofiler"></a><a href="#attachtorelayprofiler" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a><code>attachToRelayProfiler()</code></h3>
|
||||
<pre><code class="hljs css language-javascript"><span class="token keyword">static</span> <span class="token function">attachToRelayProfiler</span><span class="token punctuation">(</span>relayProfiler<span class="token punctuation">)</span>
|
||||
</code></pre>
|
||||
<p>Relay profiles use await calls, so likely occur out of current stack frame therefore async variant of profiling is used.</p>
|
||||
<hr>
|
||||
<h3><a class="anchor" aria-hidden="true" id="swizzlejson"></a><a href="#swizzlejson" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a><code>swizzleJSON()</code></h3>
|
||||
<pre><code class="hljs css language-javascript"><span class="token keyword">static</span> <span class="token function">swizzleJSON</span><span class="token punctuation">(</span><span class="token punctuation">)</span>
|
||||
</code></pre>
|
||||
<p>This is not called by default due to performance overhead, but it's useful for finding traces which spend too much time in JSON.</p>
|
||||
<hr>
|
||||
<h3><a class="anchor" aria-hidden="true" id="measuremethods"></a><a href="#measuremethods" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a><code>measureMethods()</code></h3>
|
||||
<pre><code class="hljs css language-javascript"><span class="token keyword">static</span> <span class="token function">measureMethods</span><span class="token punctuation">(</span>object<span class="token punctuation">,</span> objectName<span class="token punctuation">,</span> methodNames<span class="token punctuation">)</span>
|
||||
</code></pre>
|
||||
<p>Measures multiple methods of a class. For example, the following will return the <code>parse</code> and <code>stringify</code> methods of the JSON class: Systrace.measureMethods(JSON, 'JSON', ['parse', 'stringify']);</p>
|
||||
<p>@param object @param objectName @param methodNames Map from method names to method display names.</p>
|
||||
<hr>
|
||||
<h3><a class="anchor" aria-hidden="true" id="measure"></a><a href="#measure" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a><code>measure()</code></h3>
|
||||
<pre><code class="hljs css language-javascript"><span class="token keyword">static</span> <span class="token function">measure</span><span class="token punctuation">(</span>objName<span class="token punctuation">,</span> fnName<span class="token punctuation">,</span> func<span class="token punctuation">)</span>
|
||||
</code></pre>
|
||||
<p>Returns a profiled version of the input function. For example, you can: JSON.parse = Systrace.measure('JSON', 'parse', JSON.parse);</p>
|
||||
<p>@param objName @param fnName @param {function} func @return {function} replacement function</p>
|
||||
</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/react-native/docs/next/stylesheet"><span class="arrow-prev">← </span><span class="function-name-prevnext">StyleSheet</span></a><a class="docs-next button" href="/react-native/docs/next/text-style-props"><span>Text Style Props</span><span class="arrow-next"> →</span></a></div></div></div></div><footer class="nav-footer" id="footer"><section class="sitemap"><a href="/react-native/" class="nav-home"><img src="/react-native/img/header_logo.png" alt="React Native" width="66" height="58"/></a><div><h5><a href="/react-native/docs/getting-started.html">Docs</a></h5><a href="/react-native/docs/getting-started.html">Getting Started</a><a href="/react-native/docs/tutorial.html">Tutorial</a><a href="/react-native/docs/components-and-apis.html">Components and APIs</a><a href="/react-native/docs/more-resources.html">More Resources</a></div><div><h5>Community</h5><a href="/react-native/help.html">Community Resources</a><a href="/react-native/showcase.html">Who's using React Native?</a><a href="http://stackoverflow.com/questions/tagged/react-native" target="_blank">Stack Overflow</a><a href="https://discord.gg/0ZcbPKXt5bZjGY5n">Reactiflux Chat</a></div><div><h5>More</h5><a href="/react-native/blog/">Blog</a><a href="https://twitter.com/reactnative" target="_blank">Twitter</a><a href="https://github.com/facebook/react-native" target="_blank">GitHub</a><a href="http://reactjs.org" target="_blank">React</a></div></section><a href="https://code.facebook.com/projects/" target="_blank" class="fbOpenSource"><img src="/react-native/img/oss_logo.png" alt="Facebook Open Source" width="170" height="45"/></a><section class="copyright">Copyright © 2019 Facebook Inc.</section></footer></div><script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script><script>window.fbAsyncInit = function() {FB.init({appId:'1677033832619985',xfbml:true,version:'v2.7'});};(function(d, s, id){var js, fjs = d.getElementsByTagName(s)[0];if (d.getElementById(id)) {return;}js = d.createElement(s); js.id = id;js.src = '//connect.facebook.net/en_US/sdk.js';fjs.parentNode.insertBefore(js, fjs);}(document, 'script','facebook-jssdk'));
|
||||
</script><script>window.twttr=(function(d,s, id){var js,fjs=d.getElementsByTagName(s)[0],t=window.twttr||{};if(d.getElementById(id))return t;js=d.createElement(s);js.id=id;js.src='https://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js, fjs);t._e = [];t.ready = function(f) {t._e.push(f);};return t;}(document, 'script', 'twitter-wjs'));</script><script>
|
||||
document.addEventListener('keyup', function(e) {
|
||||
|
||||
Reference in New Issue
Block a user