print backtrace on SIGINFO and terminal signals
fix previous commit for linux, and cleanup some profile behaviors