Bug 914658 - Improve b2g profile.sh to support per thread profiling. r=jld

.