# Cutting some Slack, for leaks and giggles

DevFeed: [Cutting some Slack, for leaks and giggles](<https://devfeed.tech/articles/cutting-some-slack-for-leaks-and-giggles-25621.md>)

Original publisher: [Read original article](<https://blog.p-y.wtf/cutting-some-slack-for-leaks-and-giggles>)

Author: Pierre-Yves Ricau

Published: 2024-05-07T00:47:25Z

Content type: article

Language: en

Sources: [Py's blog](<https://devfeed.tech/sources/py-s-blog.md>)

Topics: [leakcanary](<https://devfeed.tech/topics/leakcanary.md>), [UiAutomator](<https://devfeed.tech/topics/uiautomator.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Android](<https://devfeed.tech/topics/android.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-studio](<https://devfeed.tech/tags/android-studio.md>), [emulator](<https://devfeed.tech/tags/emulator.md>), [gradle](<https://devfeed.tech/tags/gradle.md>), [growth](<https://devfeed.tech/tags/growth.md>), [heap](<https://devfeed.tech/tags/heap.md>), [leakcanary](<https://devfeed.tech/tags/leakcanary.md>), [leaks](<https://devfeed.tech/tags/leaks.md>), [maestro](<https://devfeed.tech/tags/maestro.md>), [memory](<https://devfeed.tech/tags/memory.md>), [memory-leak](<https://devfeed.tech/tags/memory-leak.md>), [performance](<https://devfeed.tech/tags/performance.md>), [slack](<https://devfeed.tech/tags/slack.md>)

## AI overview

LeakCanary 3.0 alpha 4 adds a heap-growth detector for cases where memory use keeps rising without a reported leak, such as a collection that continually accumulates log strings. It compares repeated heap dumps and looks for objects whose outgoing edges keep increasing. The author runs it as a UI Automator test that switches between Slack Android workspaces. On normal Android OS builds, dumping another app's heap requires that app to be debuggable or profileable as shell; the author says those restrictions do not apply on non-Play-Store emulator images. The excerpt ends before reporting the experiment's findings.

## Source excerpt

In this article I run the new LeakCanary toolkit against the Slack Android app. Read on to learn a bunch! A new LeakCanary toolkit In two months, I will give a talk at Droidcon SF: Cutting Edges: universal heap trimming with LeakCanary 3 At Square, ...