Android: allow setting the emulator's CPU core count

Aperta
#1,587 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
android, typescript
Ambito
mobile

Direzione di ricerca

Start by tracing how emulator lease options are defined and applied, then follow the Android profile and AVD launch configuration paths. Check how running emulators and snapshots are matched to lease requests. Done means a requested core count is applied to the AVD and launch flags, and a 2-core lease cannot reuse a 4-core emulator or snapshot.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

request:new

All bundled Android profiles set hw.cpu.ncore: 4, and there's no way to ask for fewer cores when leasing an emulator. The emulator options only cover headless, gpu, audio and bootAnimation.

We run Simlock on a Mac that also runs CI jobs and native builds. A 4-core emulator competes with them, so we'd like to cap emulators at 2 cores. For now we just don't run Android emulators on that machine.

Would a cores option on the lease (or on the profile) make sense? Two details matter to us:

  • the emulator should really start with that many cores (AVD config and launch flags);
  • a 2-core request shouldn't get an already running 4-core emulator or a 4-core snapshot.

Happy to test a build.

Lingua principale
TypeScript
Stelle
705
Fork
40
Merge medio
12h 9m
PR unite (30g)
376

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di callstackincubator/simlock

Tutte le issue di callstackincubator/simlock

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.