Add ability to take stack-only snapshots.

This isn't exposed via any CLI options, but it's quite simple to call it
using ad-hoc instrumentation code.