Bug 1581963 - [devtools] Add a new trait to control the use of the bulk API for the performance panel r=devtools-reviewers,devtools-backward-compat-reviewers,profiler-reviewers,nchevobbe,mstange
Differential Revision: https://phabricator.services.mozilla.com/D245460
This commit is contained in:
committed by
jwajsberg@mozilla.com
parent
859d407b2b
commit
8c7ecb613b
15
devtools/client/performance-new/@types/perf.d.ts
vendored
15
devtools/client/performance-new/@types/perf.d.ts
vendored
@@ -46,7 +46,11 @@ export interface Commands {
|
|||||||
client: any;
|
client: any;
|
||||||
targetCommand: {
|
targetCommand: {
|
||||||
targetFront: {
|
targetFront: {
|
||||||
getTrait: (traitName: string) => unknown;
|
// @backward-compat { version 140 } This trait is used to support Firefox < 140
|
||||||
|
getTrait(
|
||||||
|
traitName: "useBulkTransferForPerformanceProfile"
|
||||||
|
): boolean | undefined;
|
||||||
|
getTrait(traitName: string): unknown;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -84,7 +88,14 @@ export interface PreferenceFront {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface RootTraits {
|
export interface RootTraits {
|
||||||
// There are no traits used by the performance front end at the moment.
|
// @backward-compat { version 140 }
|
||||||
|
// In Firefox >= 140, this will be true, and will be missing in older
|
||||||
|
// versions. The functionality controlled by this property can be cleaned up
|
||||||
|
// once Firefox 140 hits release.
|
||||||
|
useBulkTransferForPerformanceProfile?: boolean;
|
||||||
|
|
||||||
|
// There are other properties too, but we don't list them here as they're not
|
||||||
|
// related to the performance panel.
|
||||||
}
|
}
|
||||||
|
|
||||||
export type RecordingState =
|
export type RecordingState =
|
||||||
|
|||||||
@@ -144,6 +144,9 @@ class RootActor extends Actor {
|
|||||||
// Contact Holger Benl (hbenl) to make sure the VS Code extension is
|
// Contact Holger Benl (hbenl) to make sure the VS Code extension is
|
||||||
// updated.
|
// updated.
|
||||||
supportsEnableWindowGlobalThreadActors: true,
|
supportsEnableWindowGlobalThreadActors: true,
|
||||||
|
// @backward-compat { version 140 } Use the bulk API to transfer the
|
||||||
|
// performance profile data.
|
||||||
|
useBulkTransferForPerformanceProfile: true,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user