Skip to content

Add debug logging for Glide bitmap memory tracking.#5705

Open
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_933370872
Open

Add debug logging for Glide bitmap memory tracking.#5705
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_933370872

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Jun 17, 2026

Copy link
Copy Markdown

Add debug logging for Glide bitmap memory tracking.

Introduce a "GlideMemoryTracking" debug tag to help trace and measure memory overhead caused by image upscaling and cache hits by:

  • Logging when Downsampler decodes a bitmap to a size larger than its original source dimensions.
  • Logging when centerCrop or fitCenter transformations scale up a bitmap.
  • Logging memory cache hits (cache/active resources) for both raw bitmaps and wrappers to verify reuse.

Workflow:

  • adb shell setprop log.tag.GlideMemoryTracking DEBUG
  • adb logcat -s GlideMemoryTracking

@copybara-service copybara-service Bot changed the title Internal change Add debug logging for Glide bitmap memory tracking. Jun 17, 2026
Introduce a "GlideMemoryTracking" debug tag to help trace and measure memory overhead caused by image upscaling and cache hits by:
- Logging when Downsampler decodes a bitmap to a size larger than its original source dimensions.
- Logging when centerCrop or fitCenter transformations scale up a bitmap.
- Logging memory cache hits (cache/active resources) for both raw bitmaps and wrappers to verify reuse.

Workflow:
- adb shell setprop log.tag.GlideMemoryTracking DEBUG
- adb logcat -s GlideMemoryTracking
PiperOrigin-RevId: 933370872
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