Skip to content

Commit 375b941

Browse files
Dominik InführDevtools-frontend LUCI CQ
authored andcommitted
Remove show-option-to-expose-internals-in-heap-snapshot experiment
This CL removes this experiment which only guards whether this checkbox is shown. The checkbox is then shown by default. Bug: 497855658, 476074983 Change-Id: I0ca70cf449317e75747b9d259cd623ca70f34ab2 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/7715341 Reviewed-by: Wolfgang Beyer <wolfi@chromium.org> Reviewed-by: Mathias Bynens <mathias@chromium.org> Commit-Queue: Dominik Inführ <dinfuehr@chromium.org>
1 parent f7df2a1 commit 375b941

6 files changed

Lines changed: 3 additions & 12 deletions

File tree

front_end/core/host/UserMetrics.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,6 @@ export enum DevtoolsExperiments {
815815
'live-heap-profile' = 11,
816816
'protocol-monitor' = 13,
817817
'sampling-heap-profiler-timeline' = 17,
818-
'show-option-to-expose-internals-in-heap-snapshot' = 18,
819818
'timeline-invalidation-tracking' = 26,
820819
'timeline-show-all-events' = 27,
821820
apca = 39,

front_end/core/root/ExperimentNames.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export enum ExperimentName {
88
LIVE_HEAP_PROFILE = 'live-heap-profile',
99
PROTOCOL_MONITOR = 'protocol-monitor',
1010
SAMPLING_HEAP_PROFILER_TIMELINE = 'sampling-heap-profiler-timeline',
11-
SHOW_OPTION_TO_EXPOSE_INTERNALS_IN_HEAP_SNAPSHOT = 'show-option-to-expose-internals-in-heap-snapshot',
1211
TIMELINE_INVALIDATION_TRACKING = 'timeline-invalidation-tracking',
1312
TIMELINE_SHOW_ALL_EVENTS = 'timeline-show-all-events',
1413
APCA = 'apca',

front_end/entrypoints/main/MainImpl.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,9 +356,6 @@ export class MainImpl {
356356
Root.ExperimentNames.ExperimentName.PROTOCOL_MONITOR, protocolMonitorExperiment);
357357
Root.Runtime.experiments.register(
358358
Root.ExperimentNames.ExperimentName.SAMPLING_HEAP_PROFILER_TIMELINE, 'Sampling heap profiler timeline');
359-
Root.Runtime.experiments.register(
360-
Root.ExperimentNames.ExperimentName.SHOW_OPTION_TO_EXPOSE_INTERNALS_IN_HEAP_SNAPSHOT,
361-
'Show option to expose internals in heap snapshots');
362359

363360
// Timeline
364361
Root.Runtime.experiments.register(

front_end/panels/profiler/HeapSnapshotView.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import * as Common from '../../core/common/common.js';
88
import * as Host from '../../core/host/host.js';
99
import * as i18n from '../../core/i18n/i18n.js';
1010
import * as Platform from '../../core/platform/platform.js';
11-
import * as Root from '../../core/root/root.js';
1211
import * as SDK from '../../core/sdk/sdk.js';
1312
import type * as Protocol from '../../generated/protocol.js';
1413
import * as Bindings from '../../models/bindings/bindings.js';
@@ -1339,12 +1338,10 @@ export class HeapSnapshotProfileType extends
13391338
}
13401339

13411340
override customContent(): Element|null {
1342-
const showOptionToExposeInternalsInHeapSnapshot = Root.Runtime.experiments.isEnabled(
1343-
Root.ExperimentNames.ExperimentName.SHOW_OPTION_TO_EXPOSE_INTERNALS_IN_HEAP_SNAPSHOT);
13441341
const exposeInternalsInHeapSnapshotCheckbox =
13451342
SettingsUI.SettingsUI.createSettingCheckbox(i18nString(UIStrings.exposeInternals), this.exposeInternals);
13461343
this.customContentInternal = exposeInternalsInHeapSnapshotCheckbox;
1347-
return showOptionToExposeInternalsInHeapSnapshot ? exposeInternalsInHeapSnapshotCheckbox : null;
1344+
return exposeInternalsInHeapSnapshotCheckbox;
13481345
}
13491346

13501347
override setCustomContentEnabled(enable: boolean): void {

front_end/ui/visual_logging/KnownContextValues.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3623,7 +3623,6 @@ export const knownContextValues = new Set([
36233623
'show-minimal-safe-area-for-maskable-icons',
36243624
'show-more',
36253625
'show-network-requests',
3626-
'show-option-to-expose-internals-in-heap-snapshot',
36273626
'show-overrides',
36283627
'show-paint-rects',
36293628
'show-paint-rects-true',

test/e2e/memory/memory.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,8 +615,8 @@ describe('The Memory Panel', function() {
615615
});
616616
});
617617

618-
describe(' The Memory Panel with show-option-to-expose-internals-in-heap-snapshot experiment', () => {
619-
setup({dockingMode: 'undocked', enabledDevToolsExperiments: ['show-option-to-expose-internals-in-heap-snapshot']});
618+
describe('The Memory Panel', () => {
619+
setup({dockingMode: 'undocked'});
620620

621621
it('Does not include backing store size in the shallow size of a JS Set', async ({devToolsPage, inspectedPage}) => {
622622
await inspectedPage.goToResource('memory/set.html');

0 commit comments

Comments
 (0)