diff options
| author | Aleks Haecky <vhaecky@google.com> | 2015-05-26 21:13:42 +0000 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2015-05-26 21:13:42 +0000 |
| commit | c03c11e584abf1e61a902ea441818912f912fda7 (patch) | |
| tree | 66d7f252d1ad73448b22653769b32730e24200d3 /docs/html/tools/performance/hierarchy-viewer/setup.jd | |
| parent | 25fe13fa9ff0b1db8a6e10569fd62ca4eae150c9 (diff) | |
| parent | be3ab00fd3fb54dd7662d00dc1bfcf542358a052 (diff) | |
| download | frameworks_base-c03c11e584abf1e61a902ea441818912f912fda7.zip frameworks_base-c03c11e584abf1e61a902ea441818912f912fda7.tar.gz frameworks_base-c03c11e584abf1e61a902ea441818912f912fda7.tar.bz2 | |
am be3ab00f: am fdd06fe6: Merge "docs: Add peformance tools getting started docs in new tools/performance subtree." into lmp-docs
* commit 'be3ab00fd3fb54dd7662d00dc1bfcf542358a052':
docs: Add peformance tools getting started docs in new tools/performance subtree.
Diffstat (limited to 'docs/html/tools/performance/hierarchy-viewer/setup.jd')
| -rw-r--r-- | docs/html/tools/performance/hierarchy-viewer/setup.jd | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/docs/html/tools/performance/hierarchy-viewer/setup.jd b/docs/html/tools/performance/hierarchy-viewer/setup.jd new file mode 100644 index 0000000..aaac1ca --- /dev/null +++ b/docs/html/tools/performance/hierarchy-viewer/setup.jd @@ -0,0 +1,89 @@ +page.title=Device Setup for Hierarchy Viewer +meta.tags="android, performance, profiling, tools, rendering, hierarchyviewer" +page.tags="android", "performance", "profiling", "tools", "rendering", "hierarchyviewer" +page.metaDescription=Set up your mobile device to work with Hierarchy Viewer. +page.image=tools/performance/thumbnails/tools_hierarchy_viewer.png +page.article=true + +@jd:body + +<div id="tb" style="margin-left: 7px; margin-bottom: 5px;"> + +<h2>You should also read</h2> +<ul> + <li><a href="{@docRoot}tools/performance/hierarchy-viewer/index.html"> + Hierarchy Viewer Walkthrough</a></li> + <li><a href="{@docRoot}tools/performance/hierarchy-viewer/profiling.html"> + Profiling with Hierarchy Viewer</a></li> +</ul> + +</div> + + <p>To run Hierarchy Viewer, you must enable Developer Options on your mobile device and perform + some setup on your computer.</p> + + <h2>Configuring Devices</h2> + + <ol> + <li><p>Enable <a href= + "http://developer.android.com/tools/device.html#developer-device-options">Developer Options</a> + on your mobile device.</p></li> + + <li>Depending on the type of device you have, do one of the following: + <ul> + <li>If you have a locked device running Android 4.0 or lower, follow the instructions + for <a href= + "https://github.com/romainguy/ViewServer">installing and configuring ViewServer</a>. + </li> + <li>If you have an unlocked device running Android 4.0 or lower, + no further configuration is needed.</li> + <li>If you have a device running Android 4.1 or higher, you must set an environment + variable on your development machine. For more information, + see <a href="#hvproto-variable">Setting the ANDROID_HVPROTO variable</a> + </ul> + </li> + </ol> + + + <h2 id="hvproto-variable">Setting the ANDROID_HVPROTO variable</h2> + + <h3>Windows</h3> + + <ol> + <li>Click <b>My Computer > Property > Advanced > Environment Variables.</b></li> + + <li>Click <b>New.</b></li> + + <li>In variables name put: <code>ANDROID_HVPROTO</code></li> + + <li>In variable value put: <code>ddm</code></li> + + <li>Click <b>OK</b><./li> + </ol> + + <h3>Mac</h3> + + <ol> + <li>Edit <code>~/.bash_profile</code></li> + + <li>Add: + <br><code>#Hierarchy Viewer Variable + <br>export ANDROID_HVPROTO=ddm</code> + </li> + + <li><code>source ~/.bash_profile</code></li> + </ol> + + <h3>Linux</h3> + + <ol> + <li>Edit <code>~/.bash_profile</code></li> + + <li>Add: + + <br><code>#Hierarchy Viewer Variable + <br>export ANDROID_HVPROTO=ddm</code> + </li> + + <li><code>source ~/.bash_profile</code></li> + </ol> |
