@todesktop/shared 7.188.30 → 7.188.32
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.
- package/lib/desktopify.d.ts +19 -2
- package/package.json +1 -1
- package/src/desktopify.ts +19 -2
package/lib/desktopify.d.ts
CHANGED
|
@@ -190,7 +190,10 @@ export interface SmokeTestProgress {
|
|
|
190
190
|
bcState?: SmokeTestState;
|
|
191
191
|
code?: string;
|
|
192
192
|
message?: string;
|
|
193
|
-
performance?:
|
|
193
|
+
performance?: {
|
|
194
|
+
ab?: SmokeTestPerformance;
|
|
195
|
+
bc: SmokeTestPerformance;
|
|
196
|
+
};
|
|
194
197
|
progress: number;
|
|
195
198
|
screenshot?: string;
|
|
196
199
|
state: SmokeTestState;
|
|
@@ -204,9 +207,18 @@ export interface SmokeTestProgress {
|
|
|
204
207
|
}
|
|
205
208
|
export interface SmokeTestPerformance {
|
|
206
209
|
/**
|
|
207
|
-
* Time between process.getCreationTime() and `App#redy event`
|
|
210
|
+
* Time between `process.getCreationTime()` and `App#redy event`
|
|
208
211
|
*/
|
|
209
212
|
appReadyMs: number;
|
|
213
|
+
/**
|
|
214
|
+
* Time between `process.getCreationTime()` and app is closed for update
|
|
215
|
+
*/
|
|
216
|
+
appReadyToRestartForUpdateMs: number;
|
|
217
|
+
/**
|
|
218
|
+
* Time between `process.getCreationTime()` and connect event received from
|
|
219
|
+
* the restarted app. It can be up to 4 minutes on Windows.
|
|
220
|
+
*/
|
|
221
|
+
appRestartedAfterUpdateMs: number;
|
|
210
222
|
/**
|
|
211
223
|
* From `process.cpuUsage()` user + system.
|
|
212
224
|
* This value measures time spent in user and system code, and may end up
|
|
@@ -235,6 +247,11 @@ export interface SmokeTestPerformance {
|
|
|
235
247
|
* runtime execution
|
|
236
248
|
*/
|
|
237
249
|
runtimeLoadedMs: number;
|
|
250
|
+
/**
|
|
251
|
+
* Time between `process.getCreationTime()` and the update file downloaded
|
|
252
|
+
* from the server.
|
|
253
|
+
*/
|
|
254
|
+
updateDownloadedMs: number;
|
|
238
255
|
/**
|
|
239
256
|
* Time between `process.getCreationTime()` and the first firing of
|
|
240
257
|
* WebContents#dom-ready if any window is created
|
package/package.json
CHANGED
package/src/desktopify.ts
CHANGED
|
@@ -267,7 +267,10 @@ export interface SmokeTestProgress {
|
|
|
267
267
|
bcState?: SmokeTestState;
|
|
268
268
|
code?: string; // string currently, since it's still a subject to change
|
|
269
269
|
message?: string;
|
|
270
|
-
performance?:
|
|
270
|
+
performance?: {
|
|
271
|
+
ab?: SmokeTestPerformance;
|
|
272
|
+
bc: SmokeTestPerformance;
|
|
273
|
+
};
|
|
271
274
|
progress: number;
|
|
272
275
|
screenshot?: string;
|
|
273
276
|
state: SmokeTestState;
|
|
@@ -282,9 +285,18 @@ export interface SmokeTestProgress {
|
|
|
282
285
|
|
|
283
286
|
export interface SmokeTestPerformance {
|
|
284
287
|
/**
|
|
285
|
-
* Time between process.getCreationTime() and `App#redy event`
|
|
288
|
+
* Time between `process.getCreationTime()` and `App#redy event`
|
|
286
289
|
*/
|
|
287
290
|
appReadyMs: number;
|
|
291
|
+
/**
|
|
292
|
+
* Time between `process.getCreationTime()` and app is closed for update
|
|
293
|
+
*/
|
|
294
|
+
appReadyToRestartForUpdateMs: number;
|
|
295
|
+
/**
|
|
296
|
+
* Time between `process.getCreationTime()` and connect event received from
|
|
297
|
+
* the restarted app. It can be up to 4 minutes on Windows.
|
|
298
|
+
*/
|
|
299
|
+
appRestartedAfterUpdateMs: number;
|
|
288
300
|
/**
|
|
289
301
|
* From `process.cpuUsage()` user + system.
|
|
290
302
|
* This value measures time spent in user and system code, and may end up
|
|
@@ -313,6 +325,11 @@ export interface SmokeTestPerformance {
|
|
|
313
325
|
* runtime execution
|
|
314
326
|
*/
|
|
315
327
|
runtimeLoadedMs: number;
|
|
328
|
+
/**
|
|
329
|
+
* Time between `process.getCreationTime()` and the update file downloaded
|
|
330
|
+
* from the server.
|
|
331
|
+
*/
|
|
332
|
+
updateDownloadedMs: number;
|
|
316
333
|
/**
|
|
317
334
|
* Time between `process.getCreationTime()` and the first firing of
|
|
318
335
|
* WebContents#dom-ready if any window is created
|