We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Reproduced on Samsung J3 Android 9
This command fails https://github.com/bamlab/android-performance-profiler/blob/main/packages/android-performance-profiler/src/commands/cpu/getCpuClockTick.ts#L6 100 is a good default value but it seems like for some phones, this is completely innacurate (for a Moto e5 this seemed off) Same for https://github.com/bamlab/android-performance-profiler/blob/main/packages/android-performance-profiler/src/commands/ram/pollRamUsage.ts#L6
The issue is that getconf doesn't seem to exist on all Android versions.
getconf
To fix this, running sysconf(_SC_CLK_TCK) and sysconf(_SC_PAGESIZE) via a C++ script should retrieve the proper values
sysconf(_SC_CLK_TCK)
sysconf(_SC_PAGESIZE)
We could include this in the C++ profiler script like in here: #12
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Reproduced on Samsung J3 Android 9
This command fails
https://github.com/bamlab/android-performance-profiler/blob/main/packages/android-performance-profiler/src/commands/cpu/getCpuClockTick.ts#L6
100 is a good default value but it seems like for some phones, this is completely innacurate (for a Moto e5 this seemed off)
Same for https://github.com/bamlab/android-performance-profiler/blob/main/packages/android-performance-profiler/src/commands/ram/pollRamUsage.ts#L6
The issue is that
getconf
doesn't seem to exist on all Android versions.To fix this, running
sysconf(_SC_CLK_TCK)
andsysconf(_SC_PAGESIZE)
via a C++ script should retrieve the proper valuesWe could include this in the C++ profiler script like in here: #12
The text was updated successfully, but these errors were encountered: