Android: allow setting the emulator's CPU core count

オープン
#1,587 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
android, typescript
領域
mobile

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
705
フォーク
40
平均マージ
12時間 9分
マージ済み PR(30日)
376

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

callstackincubator/simlock のほかの issue

callstackincubator/simlock の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。