Android: allow setting the emulator's CPU core count

Đang mở
#1,587 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
android, typescript
Lĩnh vực
mobile

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
705
Fork
40
Merge trung bình
12 giờ 9 phút
Pull request đã merge (30 ngày)
376

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của callstackincubator/simlock

Tất cả issue của callstackincubator/simlock

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.