chrome-devtools-frontend
Version:
Chrome DevTools UI
23 lines (19 loc) • 956 B
text/typescript
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {CPUProfileType} from './CPUProfileView.js';
import {SamplingHeapProfileType} from './HeapProfileView.js';
import {HeapSnapshotProfileType, TrackingHeapSnapshotProfileType} from './HeapSnapshotView.js';
export class ProfileTypeRegistry {
cpuProfileType: CPUProfileType;
heapSnapshotProfileType: HeapSnapshotProfileType;
samplingHeapProfileType: SamplingHeapProfileType;
trackingHeapSnapshotProfileType: TrackingHeapSnapshotProfileType;
constructor() {
this.cpuProfileType = new CPUProfileType();
this.heapSnapshotProfileType = new HeapSnapshotProfileType();
this.samplingHeapProfileType = new SamplingHeapProfileType();
this.trackingHeapSnapshotProfileType = new TrackingHeapSnapshotProfileType();
}
}
export const instance = new ProfileTypeRegistry();