tracing: add v8 specific tracing api

This is a rebase of #6527 for current master, minus one commit that wasn't fully implemented, we can incrementally continue to flesh out this interface.

docs are still outstanding