Skip to content

Commit

Permalink
Bug 921165: allow ./profile.sh capture if only non-main processes are…
Browse files Browse the repository at this point in the history
… profiled
  • Loading branch information
jld committed Jan 16, 2014
1 parent 605ee4d commit d122f88
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions profile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit d122f88

Please sign in to comment.