Collect JavaScript CPU profiler data

@bug W-2164675@
Merging origin/rsalvador/master-pending-cpuprofiler into master