Use new gprof2dot.py JSON format.

Instead of reaching inside gprof2dot internal implementation.