Migrates profiler/ to ESM internally

Bug: 1006759
Change-Id: Ic455b75d0b7f8288c3f009b98f05b2aa9c3ac9ce
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1997345
Commit-Queue: Paul Lewis <[email protected]>
Reviewed-by: Tim van der Lippe <[email protected]>
diff --git a/front_end/profiler/LiveHeapProfileView.js b/front_end/profiler/LiveHeapProfileView.js
index 7e1014f..16f495c 100644
--- a/front_end/profiler/LiveHeapProfileView.js
+++ b/front_end/profiler/LiveHeapProfileView.js
@@ -2,10 +2,12 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
+import {SamplingHeapProfileNode} from './HeapProfileView.js';  // eslint-disable-line no-unused-vars
+
 /**
  * @extends {UI.VBox}
  */
-export default class LiveHeapProfileView extends UI.VBox {
+export class LiveHeapProfileView extends UI.VBox {
   constructor() {
     super(true);
     /** @type {!Map<string, !GridNode>} */
@@ -344,18 +346,3 @@
     }
   }
 }
-
-/* Legacy exported object */
-self.Profiler = self.Profiler || {};
-
-/* Legacy exported object */
-Profiler = Profiler || {};
-
-/** @constructor */
-Profiler.LiveHeapProfileView = LiveHeapProfileView;
-
-/** @constructor */
-Profiler.LiveHeapProfileView.GridNode = GridNode;
-
-/** @constructor */
-Profiler.LiveHeapProfileView.ActionDelegate = ActionDelegate;