1 2<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 3<html><head><title>Python: module telemetry.internal.platform.profiler.android_profiling_helper</title> 4<meta charset="utf-8"> 5</head><body bgcolor="#f0f0f8"> 6 7<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> 8<tr bgcolor="#7799ee"> 9<td valign=bottom> <br> 10<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry.internal.html"><font color="#ffffff">internal</font></a>.<a href="telemetry.internal.platform.html"><font color="#ffffff">platform</font></a>.<a href="telemetry.internal.platform.profiler.html"><font color="#ffffff">profiler</font></a>.android_profiling_helper</strong></big></big></font></td 11><td align=right valign=bottom 12><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="../telemetry/internal/platform/profiler/android_profiling_helper.py">telemetry/internal/platform/profiler/android_profiling_helper.py</a></font></td></tr></table> 13 <p><tt># Copyright 2014 The Chromium Authors. All rights reserved.<br> 14# Use of this source code is governed by a BSD-style license that can be<br> 15# found in the LICENSE file.</tt></p> 16<p> 17<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 18<tr bgcolor="#aa55cc"> 19<td colspan=3 valign=bottom> <br> 20<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> 21 22<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> 23<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="telemetry.internal.platform.profiler.android_prebuilt_profiler_helper.html">telemetry.internal.platform.profiler.android_prebuilt_profiler_helper</a><br> 24<a href="telemetry.internal.util.binary_manager.html">telemetry.internal.util.binary_manager</a><br> 25<a href="telemetry.decorators.html">telemetry.decorators</a><br> 26<a href="glob.html">glob</a><br> 27</td><td width="25%" valign=top><a href="hashlib.html">hashlib</a><br> 28<a href="logging.html">logging</a><br> 29<a href="devil.android.md5sum.html">devil.android.md5sum</a><br> 30<a href="os.html">os</a><br> 31</td><td width="25%" valign=top><a href="platform.html">platform</a><br> 32<a href="re.html">re</a><br> 33<a href="shutil.html">shutil</a><br> 34<a href="sqlite3.html">sqlite3</a><br> 35</td><td width="25%" valign=top><a href="subprocess.html">subprocess</a><br> 36<a href="telemetry.core.platform.html">telemetry.core.platform</a><br> 37<a href="telemetry.core.util.html">telemetry.core.util</a><br> 38</td></tr></table></td></tr></table><p> 39<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 40<tr bgcolor="#eeaa77"> 41<td colspan=3 valign=bottom> <br> 42<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr> 43 44<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td> 45<td width="100%"><dl><dt><a name="-CreateSymFs"><strong>CreateSymFs</strong></a>(device, symfs_dir, libraries, use_symlinks<font color="#909090">=True</font>)</dt><dd><tt>Creates a symfs directory to be used for symbolizing profiles.<br> 46 <br> 47Prepares a set of files ("symfs") to be used with profilers such as perf for<br> 48converting binary addresses into human readable function names.<br> 49 <br> 50Args:<br> 51 device: DeviceUtils instance identifying the target device.<br> 52 symfs_dir: Path where the symfs should be created.<br> 53 libraries: Set of library file names that should be included in the symfs.<br> 54 use_symlinks: If True, link instead of copy unstripped libraries into the<br> 55 symfs. This will speed up the operation, but the resulting symfs will no<br> 56 longer be valid if the linked files are modified, e.g., by rebuilding.<br> 57 <br> 58Returns:<br> 59 The absolute path to the kernel symbols within the created symfs.</tt></dd></dl> 60 <dl><dt><a name="-GetPerfhostName"><strong>GetPerfhostName</strong></a>(*args, **kwargs)</dt></dl> 61 <dl><dt><a name="-GetRequiredLibrariesForPerfProfile"><strong>GetRequiredLibrariesForPerfProfile</strong></a>(profile_file)</dt><dd><tt>Returns the set of libraries necessary to symbolize a given perf profile.<br> 62 <br> 63Args:<br> 64 profile_file: Path to perf profile to analyse.<br> 65 <br> 66Returns:<br> 67 A set of required library file names.</tt></dd></dl> 68 <dl><dt><a name="-GetRequiredLibrariesForVTuneProfile"><strong>GetRequiredLibrariesForVTuneProfile</strong></a>(profile_file)</dt><dd><tt>Returns the set of libraries necessary to symbolize a given VTune profile.<br> 69 <br> 70Args:<br> 71 profile_file: Path to VTune profile to analyse.<br> 72 <br> 73Returns:<br> 74 A set of required library file names.</tt></dd></dl> 75 <dl><dt><a name="-GetToolchainBinaryPath"><strong>GetToolchainBinaryPath</strong></a>(library_file, binary_name)</dt><dd><tt>Return the path to an Android toolchain binary on the host.<br> 76 <br> 77Args:<br> 78 library_file: ELF library which is used to identify the used ABI,<br> 79 architecture and toolchain.<br> 80 binary_name: Binary to search for, e.g., 'objdump'<br> 81Returns:<br> 82 Full path to binary or None if the binary was not found.</tt></dd></dl> 83 <dl><dt><a name="-PrepareDeviceForPerf"><strong>PrepareDeviceForPerf</strong></a>(device)</dt><dd><tt>Set up a device for running perf.<br> 84 <br> 85Args:<br> 86 device: DeviceUtils instance identifying the target device.<br> 87 <br> 88Returns:<br> 89 The path to the installed perf binary on the device.</tt></dd></dl> 90</td></tr></table> 91</body></html>