Filmstrip polls delay native commands by ~110 ms each

Ouverte
#584 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
44/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Active
Stack technique
ios, typescript
Domaine
mobile, performance

Piste de recherche

Start with SCREENCAST_DEFAULTS.pollIntervalMs and the filmstrip polling and capture paths; the issue does not name their files, so locate them in the repository. Compare command and per-action capture timings with polling enabled and disabled on native iOS, then measure the proposed polling interval and screenshot quality options. Done when measurements identify a change that reduces command delay without losing required filmstrip frames.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

Without a CDP screencast (Safari, Appium), the filmstrip polls a screenshot every 200 ms (SCREENCAST_DEFAULTS.pollIntervalMs). On native iOS each shot holds the driver for about 440 ms, and a command issued during a shot waits behind it.

Measured (BrowserStack, iPhone 15 / iOS 17.5, 3-test spec, 2 runs with the filmstrip on and 2 with filmstrip: false):

  • Commands that start while a poll is in flight run about 110 ms slower than the same command type with the filmstrip off. That adds 2.4 to 3.2 s per run.
  • Per-action captures also get slower with polling on: a median of about 800 ms against about 680 ms.
  • Overall the spec ran about 5 s longer with the filmstrip on (median 43.1 s against 38.1 s).

Options to measure before choosing:

  • A longer default poll interval on native sessions.
  • Not polling between commands at all, and relying on the capture screenshots, which are already kept as frames.
  • A lower XCUITest screenshotQuality for poll shots only. It is untested whether this is faster or whether BrowserStack respects it.

Follow-up to #583.

Langage dominant
TypeScript
Étoiles
10
Forks
4
Merge moyen
1 j 11 h
PR mergées (30 j)
76

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de webdriverio/devtools

Toutes les issues de webdriverio/devtools

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.