Skip to content

Commit

Permalink
Merge pull request andreasgal#314 from jld/profile-capture-nonmainproc
Browse files Browse the repository at this point in the history
Bug 921165: allow ./profile.sh capture if only non-main processes are profiled
  • Loading branch information
rvandermeulen committed Jan 16, 2014
2 parents 77f60f2 + d122f88 commit 9a89ff8
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 9a89ff8

Please sign in to comment.