Converts .cpuprofile format to trace viewer JSON object format to allow analysing the data in chrome://tracing.