New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 653256 link

Starred by 1 user

Issue metadata

Status: Archived
Owner: ----
Closed: Jan 10
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

adb_profile_chrome --perf gives few symbols on Nexus5X

Project Member Reported by csharrison@chromium.org, Oct 5 2016

Issue description

I ran the command:
./build/android/adb_profile_chrome --browser=content_shell --perf --continuous -o perf_output

I get the following output:
Capturing atrace + chrome trace + perf profile. Press Enter to stop...
WARNING:root:Could not find symbols for /data/app/org.chromium.content_shell_apk-1/oat/arm/base.odex.
WARNING:root:Is the correct output directory selected (CHROMIUM_OUTPUT_DIR)? Did you install the APK after building?

Note: to view the profile in perf, run:
  third_party/catapult/telemetry/telemetry/internal/bin/linux/x86_64/perfhost_trusty report -n -i /tmp/csharrison/csharrison-perf-symfs/perf_output-dfd07ed8d4086 --symfs /tmp/csharrison/csharrison-perf-symfs --kallsyms /tmp/csharrison/csharrison-perf-symfs/kallsyms --objdump third_party/android_tools/ndk/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-objdump
Downloading...Writing trace HTML

Wrote file:///usr/local/google/home/csharrison/chromium/src/merged-data.html



However when I run the given command I retrieve very little Chrome symbols, and get the error:
/system/bin/linker64 with build id 59f7914a2f1fdc4efc370da23e692e3000000000 not found, continuing without symbols
/system/bin/linker64 with build id 59f7914a2f1fdc4efc370da23e692e3000000000 not found, continuing without symbols
Failed to open /data/dalvik-cache/arm/system@framework@boot.oat, continuing without symbols
Failed to open /data/dalvik-cache/arm64/system@framework@boot.oat, continuing without symbols
/sbin/adbd with build id dfe51948776c9c0944cf259fc2a26f5f00000000 not found, continuing without symbols
no symbols found in /system/framework/oat/arm64/services.odex, maybe install a debug package?
/system/bin/cnss_diag with build id 20774de69063e786b00b5833b136b36c00000000 not found, continuing without symbols
no symbols found in /system/framework/oat/arm64/wifi-service.odex, maybe install a debug package?
Failed to open /data/app/org.chromium.content_shell_apk-1/oat/arm/base.odex, continuing without symbols
Failed to open [vectors], continuing without symbols
Failed to open /tmp/perf-vdso.so-dkdqVn, continuing without symbols
/system/bin/sh with build id dfe0ea4d97ac0f7cf4897deb6f6afde000000000 not found, continuing without symbols
no symbols found in /system/priv-app/SystemUI/oat/arm64/SystemUI.odex, maybe install a debug package?
 
I forgot to add that my args.gn looks like:
use_goma = true
is_debug = false
is_clang = true
arm_use_thumb = false
target_os = "android"
enable_nacl = false
is_component_build = true
is_java_debug = false
enable_profiling = true

Tried this again on Nexus 7 with same results. CHROMIUM_OUTPUT_DIR points to ~/out/androidrelease

Comment 3 by zh...@chromium.org, Oct 6 2016

I just reproduced it on Nexus 7 with Android 6.0.1.

When running on Android 5.1, it shows

Failed to open /data/dalvik-cache/arm/system@framework@boot.oat, continuing without symbols
Failed to open /data/dalvik-cache/arm/system@framework@services.jar@classes.dex, continuing without symbols
no symbols found in /system/bin/logd, maybe install a debug package?
no symbols found in /system/bin/lmkd, maybe install a debug package?
no symbols found in /system/bin/sensors.qcom, maybe install a debug package?
Failed to open /sbin/adbd, continuing without symbols
Failed to open /data/dalvik-cache/arm/data@app@org.chromium.content_shell_apk-1@base.apk@classes.dex, continuing without symbols
Failed to open /data/dalvik-cache/arm/system@priv-app@SystemUI@SystemUI.apk@classes.dex, continuing without symbols
no symbols found in /system/bin/wpa_supplicant, maybe install a debug package?
no symbols found in /system/bin/sh, maybe install a debug package?
no symbols found in /system/bin/sdcard, maybe install a debug package?
no symbols found in /system/bin/toolbox, maybe install a debug package?


When running on Android 4.4.4, it shows

no symbols found in /system/bin/wpa_supplicant, maybe install a debug package?
/dev/ashmem/dalvik-jit-code-cache was updated (is prelink enabled?). Restart the long running apps that use it!
no symbols found in /system/bin/sensors.qcom, maybe install a debug package?
Failed to open /sbin/adbd, continuing without symbols
no symbols found in /system/bin/mksh, maybe install a debug package?
no symbols found in /system/bin/sdcard, maybe install a debug package?
no symbols found in /system/bin/toolbox, maybe install a debug package?


So it seems to me that which symbol is missing is related to which Android version it runs.

Sami, can you confirm if perf is subject to the Android version?

Charles, FYI, Android folks are switching to use simpleperf now, which will be supported by adb_profile_chrome.
Thanks for the update. Is there a workaround you can recommend (like use Android 4.4.4)?

Using simpleperf sgtm :) Can't wait until it's in adb_profile_chrome!

Comment 5 by zh...@chromium.org, Oct 6 2016

Not quite sure about the workaround. Probably pick the Android version that contains the symbol you are interested at. Sami could probably give a deeper answer.
Status: Archived (was: Untriaged)
Archiving P3s older than 1 year with no owner or component.

Sign in to add a comment