Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request]: Add CPU architecture to Windows device info #3367

Closed
anayw2001 opened this issue Nov 21, 2024 · 3 comments
Closed

[Request]: Add CPU architecture to Windows device info #3367

anayw2001 opened this issue Nov 21, 2024 · 3 comments
Labels
enhancement New feature or request triage

Comments

@anayw2001
Copy link

Plugin

device_info_plus

Use case

We were looking into adding architecture information for crash reports and plan to use this plugin.

Proposal

I'd like the plugin to determine the CPU architecture of the host PC at runtime.

@anayw2001 anayw2001 added enhancement New feature or request triage labels Nov 21, 2024
@miquelbeltran
Copy link
Member

miquelbeltran commented Nov 21, 2024

You can get that information directly from Dart, basically calling Abi.current().toString()

See dart-lang/sdk#56521 and dart-lang/sdk#56959

@anayw2001
Copy link
Author

Hi Miquel, we unfortunately run x64 code on arm64, and we'd like to distinguish between the two in crash reports, so that is why we need the information at runtime.

@miquelbeltran
Copy link
Member

Hi Miquel, we unfortunately run x64 code on arm64, and we'd like to distinguish between the two in crash reports, so that is why we need the information at runtime.

Oh, I didn't realize you were preparing a PR as well.

Have you checked Abi.current()?

The Dart team is also working on exposing the CPU architecture in dart-lang/sdk#56959 so that could help.

In all cases, thanks for the contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants