Skip to content

[Don't Review or Merge] Added memory metrics like Swap and Bitmap memory - #215

Draft
AjeshRPai wants to merge 1 commit into
mainfrom
memory-metrics
Draft

AjeshRPai wants to merge 1 commit into
mainfrom
memory-metrics

Conversation

@AjeshRPai

Copy link
Copy Markdown
Contributor

This pull request updates the benchmark and dependency setup for the project, focusing on improving benchmarking accuracy and aligning dependencies with the latest AndroidX snapshot releases. The main changes include updating macrobenchmark dependencies, enhancing benchmark metric collection, and ensuring the correct repository is used for snapshot dependencies.

Benchmark improvements:

  • Updated MemoryUsageMetric usage in both PromptBenchmark.kt and StartupBenchmark.kt to include all sub-metrics for more granular memory measurement. [1] [2]
  • Added jitCompilationMetric and classInitMetric to the benchmark metrics for more comprehensive performance profiling. [1] [2]
  • Added a setupBlock to benchmarks to ensure the process is killed before each run, improving measurement consistency. [1] [2]
  • Reduced the number of benchmark iterations from 10 to 5 for faster test runs.

Dependency and repository updates:

  • Updated versions of baselineprofile, benchmarkMacroJunit4, and profileinstaller to latest snapshot versions in libs.versions.toml. [1] [2]
  • Added the AndroidX snapshot repository to both pluginManagement and dependencyResolutionManagement in settings.gradle.kts to resolve new snapshot dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant