From d122f88c230c2157b02925615f5e40ce59c6b971 Mon Sep 17 00:00:00 2001 From: Jed Davis Date: Wed, 15 Jan 2014 17:00:46 -0800 Subject: [PATCH] Bug 921165: allow ./profile.sh capture if only non-main processes are profiled --- profile.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/profile.sh b/profile.sh index a2a156ae..a6382b85 100755 --- a/profile.sh +++ b/profile.sh @@ -225,15 +225,9 @@ remove_profile_files() { # HELP_capture="Signals, pulls, and symbolicates the profile data" cmd_capture() { - # Send the signal right away. If the profiler wasn't started we'll catch - # that later. + # Send the signal right away. If the profiler wasn't started, this will + # print an error message and exit. cmd_signal "$1" - # Verify that b2g was started with the profiler enabled - if ! is_profiler_running $(get_b2g_pid); then - echo "Profiler doesn't seem to be running" - echo "Did you start the profiler using ${SCRIPT_NAME} start ?" - exit 1 - fi get_comms declare -a local_filename local timestamp=$(date +"%H%M")