-
Notifications
You must be signed in to change notification settings - Fork 159
RUM-13469: Add totalRam and logicalCpuCount to DeviceInfo
#2591
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
RUM-13469: Add totalRam and logicalCpuCount to DeviceInfo
#2591
Conversation
b619739 to
cfa29d7
Compare
cfa29d7 to
d7c19e0
Compare
46dd08f to
5642bd8
Compare
simaoseica-dd
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Just left a suggestion for improvement.
b9ca352 to
200e6ea
Compare
maxep
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great 👍 Just a little change to make!
| processorCount: Double(ProcessInfo.processInfo.processorCount), | ||
| totalRam: Double(ProcessInfo.processInfo.physicalMemory / (1_024 * 1_024)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cr/ Lets use the processInfo provided as argument:
| processorCount: Double(ProcessInfo.processInfo.processorCount), | |
| totalRam: Double(ProcessInfo.processInfo.physicalMemory / (1_024 * 1_024)) | |
| processorCount: Double(processInfo.processorCount), | |
| totalRam: Double(processInfo.physicalMemory / (1_024 * 1_024)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch 👍 thanks! I have rebased the PR and pushed the new changes
| processorCount: Double(ProcessInfo.processInfo.processorCount), | ||
| totalRam: Double(ProcessInfo.processInfo.physicalMemory / (1_024 * 1_024)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cr/ same here
| processorCount: Double(ProcessInfo.processInfo.processorCount), | |
| totalRam: Double(ProcessInfo.processInfo.physicalMemory / (1_024 * 1_024)) | |
| processorCount: Double(processInfo.processorCount), | |
| totalRam: Double(processInfo.physicalMemory / (1_024 * 1_024)) |
| processorCount: Double(ProcessInfo.processInfo.processorCount), | ||
| totalRam: Double(ProcessInfo.processInfo.physicalMemory / (1_024 * 1_024)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| processorCount: Double(ProcessInfo.processInfo.processorCount), | |
| totalRam: Double(ProcessInfo.processInfo.physicalMemory / (1_024 * 1_024)) | |
| processorCount: Double(processInfo.processorCount), | |
| totalRam: Double(processInfo.physicalMemory / (1_024 * 1_024)) |
200e6ea to
af3aa56
Compare
simaoseica-dd
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
maxep
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
totalRam and processorCount to DeviceInfototalRam and processorCount to DeviceInfo
3d4afbb
af3aa56 to
3d4afbb
Compare
totalRam and processorCount to DeviceInfototalRam and logicalCpuCount to DeviceInfo
|
Following an internal discussion, I have renamed Here are the changes in |
maxep
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
What and why?
Adds new attributes to the Device Info:
These attributes allow us to classify devices as low-, mid-, or high-tier, which improves our ability to diagnose performance issues.
How?
logicalCpuCountis retrieved fromProcessInfo.processInfo.processorCount, which returns the number of processor cores available on the device (ref)totalRamis retrieved fromProcessInfo.processInfo.physicalMemory, which returns the amount of physical memory on the device in bytes (ref)Additional Notes
Review checklist
make api-surface)