devtools-protocol 0.0.1680125 → 0.0.1681094

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11863,6 +11863,26 @@
11863
11863
  }
11864
11864
  ]
11865
11865
  },
11866
+ {
11867
+ "name": "setCPUPerformanceOverride",
11868
+ "description": "Overrides the value of navigator.cpuPerformance",
11869
+ "experimental": true,
11870
+ "parameters": [
11871
+ {
11872
+ "name": "performanceTier",
11873
+ "description": "Override value. Omitting the parameter disables the override.",
11874
+ "optional": true,
11875
+ "type": "string",
11876
+ "enum": [
11877
+ "unknown",
11878
+ "low",
11879
+ "mid",
11880
+ "high",
11881
+ "ultra"
11882
+ ]
11883
+ }
11884
+ ]
11885
+ },
11866
11886
  {
11867
11887
  "name": "setUserAgentOverride",
11868
11888
  "description": "Allows overriding user agent with the given string.\n`userAgentMetadata` must be set for Client Hint headers to be sent.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1680125",
3
+ "version": "0.0.1681094",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -570,6 +570,22 @@ domain Emulation
570
570
  # Hardware concurrency to report
571
571
  integer hardwareConcurrency
572
572
 
573
+ # Overrides the value of navigator.cpuPerformance
574
+ experimental command setCPUPerformanceOverride
575
+ parameters
576
+ # Override value. Omitting the parameter disables the override.
577
+ optional enum performanceTier
578
+ # Tier 0: Unknown
579
+ unknown
580
+ # Tier 1: Low
581
+ low
582
+ # Tier 2: Mid
583
+ mid
584
+ # Tier 3: High
585
+ high
586
+ # Tier 4: Ultra
587
+ ultra
588
+
573
589
  # Allows overriding user agent with the given string.
574
590
  # `userAgentMetadata` must be set for Client Hint headers to be sent.
575
591
  command setUserAgentOverride
@@ -3550,6 +3550,14 @@ export namespace ProtocolMapping {
3550
3550
  paramsType: [Protocol.Emulation.SetHardwareConcurrencyOverrideRequest];
3551
3551
  returnType: void;
3552
3552
  };
3553
+ /**
3554
+ * Overrides the value of navigator.cpuPerformance
3555
+ * @experimental
3556
+ */
3557
+ 'Emulation.setCPUPerformanceOverride': {
3558
+ paramsType: [Protocol.Emulation.SetCPUPerformanceOverrideRequest?];
3559
+ returnType: void;
3560
+ };
3553
3561
  /**
3554
3562
  * Allows overriding user agent with the given string.
3555
3563
  * `userAgentMetadata` must be set for Client Hint headers to be sent.
@@ -2388,6 +2388,12 @@ export namespace ProtocolProxyApi {
2388
2388
  */
2389
2389
  setHardwareConcurrencyOverride(params: Protocol.Emulation.SetHardwareConcurrencyOverrideRequest): Promise<void>;
2390
2390
 
2391
+ /**
2392
+ * Overrides the value of navigator.cpuPerformance
2393
+ * @experimental
2394
+ */
2395
+ setCPUPerformanceOverride(params: Protocol.Emulation.SetCPUPerformanceOverrideRequest): Promise<void>;
2396
+
2391
2397
  /**
2392
2398
  * Allows overriding user agent with the given string.
2393
2399
  * `userAgentMetadata` must be set for Client Hint headers to be sent.
@@ -2526,6 +2526,12 @@ export namespace ProtocolTestsProxyApi {
2526
2526
  */
2527
2527
  setHardwareConcurrencyOverride(params: Protocol.Emulation.SetHardwareConcurrencyOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
2528
2528
 
2529
+ /**
2530
+ * Overrides the value of navigator.cpuPerformance
2531
+ * @experimental
2532
+ */
2533
+ setCPUPerformanceOverride(params: Protocol.Emulation.SetCPUPerformanceOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
2534
+
2529
2535
  /**
2530
2536
  * Allows overriding user agent with the given string.
2531
2537
  * `userAgentMetadata` must be set for Client Hint headers to be sent.
@@ -9987,6 +9987,21 @@ export namespace Protocol {
9987
9987
  hardwareConcurrency: integer;
9988
9988
  }
9989
9989
 
9990
+ export const enum SetCPUPerformanceOverrideRequestPerformanceTier {
9991
+ Unknown = 'unknown',
9992
+ Low = 'low',
9993
+ Mid = 'mid',
9994
+ High = 'high',
9995
+ Ultra = 'ultra',
9996
+ }
9997
+
9998
+ export interface SetCPUPerformanceOverrideRequest {
9999
+ /**
10000
+ * Override value. Omitting the parameter disables the override.
10001
+ */
10002
+ performanceTier?: ('unknown' | 'low' | 'mid' | 'high' | 'ultra');
10003
+ }
10004
+
9990
10005
  export interface SetUserAgentOverrideRequest {
9991
10006
  /**
9992
10007
  * User agent to use.