<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module telemetry.internal.platform.profiler.android_profiling_helper</title> <meta charset="utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> <tr bgcolor="#7799ee"> <td valign=bottom> <br> <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 ><td align=right valign=bottom ><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> <p><tt># Copyright 2014 The Chromium Authors. All rights reserved.<br> # Use of this source code is governed by a BSD-style license that can be<br> # found in the LICENSE file.</tt></p> <p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#aa55cc"> <td colspan=3 valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> <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> <a href="telemetry.internal.util.binary_manager.html">telemetry.internal.util.binary_manager</a><br> <a href="telemetry.decorators.html">telemetry.decorators</a><br> <a href="glob.html">glob</a><br> </td><td width="25%" valign=top><a href="hashlib.html">hashlib</a><br> <a href="logging.html">logging</a><br> <a href="devil.android.md5sum.html">devil.android.md5sum</a><br> <a href="os.html">os</a><br> </td><td width="25%" valign=top><a href="platform.html">platform</a><br> <a href="re.html">re</a><br> <a href="shutil.html">shutil</a><br> <a href="sqlite3.html">sqlite3</a><br> </td><td width="25%" valign=top><a href="subprocess.html">subprocess</a><br> <a href="telemetry.core.platform.html">telemetry.core.platform</a><br> <a href="telemetry.core.util.html">telemetry.core.util</a><br> </td></tr></table></td></tr></table><p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#eeaa77"> <td colspan=3 valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr> <tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td> <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> <br> Prepares a set of files ("symfs") to be used with profilers such as perf for<br> converting binary addresses into human readable function names.<br> <br> Args:<br> device: DeviceUtils instance identifying the target device.<br> symfs_dir: Path where the symfs should be created.<br> libraries: Set of library file names that should be included in the symfs.<br> use_symlinks: If True, link instead of copy unstripped libraries into the<br> symfs. This will speed up the operation, but the resulting symfs will no<br> longer be valid if the linked files are modified, e.g., by rebuilding.<br> <br> Returns:<br> The absolute path to the kernel symbols within the created symfs.</tt></dd></dl> <dl><dt><a name="-GetPerfhostName"><strong>GetPerfhostName</strong></a>(*args, **kwargs)</dt></dl> <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> <br> Args:<br> profile_file: Path to perf profile to analyse.<br> <br> Returns:<br> A set of required library file names.</tt></dd></dl> <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> <br> Args:<br> profile_file: Path to VTune profile to analyse.<br> <br> Returns:<br> A set of required library file names.</tt></dd></dl> <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> <br> Args:<br> library_file: ELF library which is used to identify the used ABI,<br> architecture and toolchain.<br> binary_name: Binary to search for, e.g., 'objdump'<br> Returns:<br> Full path to binary or None if the binary was not found.</tt></dd></dl> <dl><dt><a name="-PrepareDeviceForPerf"><strong>PrepareDeviceForPerf</strong></a>(device)</dt><dd><tt>Set up a device for running perf.<br> <br> Args:<br> device: DeviceUtils instance identifying the target device.<br> <br> Returns:<br> The path to the installed perf binary on the device.</tt></dd></dl> </td></tr></table> </body></html>