Skip to content

Instantly share code, notes, and snippets.

@mcomella
mcomella / git-rebase-onto.sh
Last active September 14, 2021 19:51
Rebase a specific set of revisions in git (rebase --onto)
git rebase --onto <new_root> <old_root-exclusive> <old_tip>
@mcomella
mcomella / resolve-activity.sh
Created September 13, 2021 18:50
Find the name of the activity that resolves an intent on Android
adb shell cmd package resolve-activity --brief <PKG_ID>
@mcomella
mcomella / list-android-packages.sh
Last active September 13, 2021 18:43
List installed packages on Android
adb shell cmd package list packages <FILTER>
@mcomella
mcomella / mach-perftest-example.txt
Last active September 15, 2020 20:04
mach perftest example run options
# Common changes
# --browsertime-iterations <num>
# change to --profile-condition-platform p2_aarch64-fenix.nightly
# remove --profile* for builds without conditioned profiles
# add --android-perf-tuning to use performance tuning (root only)
# add --android-install-apk <url> (maybe disk too?) to install a build before running
# VIEW
./mach perftest --flavor mobile-browser --android --android-capture-logcat logcat --output artifacts --android-app-name org.mozilla.fenix --android-clear-logcat --perfherder-metrics processLaunchToNavStart --hooks testing/performance/hooks_android_view.py --perfherder testing/performance/perftest_android_view.js --browsertime-iterations 10 --profile-conditioned --profile-conditioned-scenario settled --profile-conditioned-platform g5-fenix.nightly