Filmstrip polls delay native commands by ~110 ms each

Aberta
#584 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
44/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
ios, typescript
Domínio
mobile, performance

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
TypeScript
Estrelas
10
Forks
4
Merge médio
1d 11h
PRs com merge (30d)
76

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de webdriverio/devtools

Todas as issues de webdriverio/devtools

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.