---
title: "Pierre-Yves Ricau (@py) | Hashnode"
description: "Deep dives. Read the latest articles by Pierre-Yves Ricau on Hashnode."
url: "https://hashnode.com/@py"
---

@py

# Pierre-Yves Ricau

@py · San Francisco · Joined July 2021

Deep dives

[Website](https://p-y.wtf/)

## Comments

[I wrote the example later without re reading the definition I gave.. that was confusing! Fixed it, thanks!](https://hashnode.com/posts/rendering-the-java-heap-as-a-treemap/66f393828d003f4cd95af5ae/comment/66f3a653a8533947e2d47ef2#reply-66f4bf0832bd29e5e1b16e2f)

Reply · Article · Sep 26, 2024 · [Rendering the Java heap as a Treemap](https://hashnode.com/posts/rendering-the-java-heap-as-a-treemap/66f393828d003f4cd95af5ae)

[You could add stack sampling in production with Debug.startMethodTracingSampling() (works in releases) with a low sampling rate, then upload the file from the device. Alternatively, you could track attributes (account, device type, entry point, etc) and then try to repro locally and once you repro a slow hot launch you can profile locally.](https://hashnode.com/posts/tracking-android-app-launch-in-production/64af4c0009b8aa2957c3b3ae/comment/64b154980470cd817f0dc689#reply-64b178a70470cd817f0dcad4)

Reply · Article · Jul 14, 2023 · [Tracking Android App Launch in production](https://hashnode.com/posts/tracking-android-app-launch-in-production/64af4c0009b8aa2957c3b3ae)

[Because canceling the request means we can save network related resources](https://hashnode.com/posts/callback-leaks-cancel-your-picasso-requests/63c70dc6420d9d2bc9e723b6/comment/63dea377870f1899b96ee68b#reply-63deb8cd870f1899b96ee96e)

Reply · Article · Feb 4, 2023 · [Callback leaks: cancel your Picasso requests!](https://hashnode.com/posts/callback-leaks-cancel-your-picasso-requests/63c70dc6420d9d2bc9e723b6)

[Yeah the general idea here is that this ensures you add an activity to a specific activity stack, rather than starting it from a random live activity or from the application context which isn't tied to a specific activity stack.](https://hashnode.com/posts/using-an-activity-from-a-hilt-viewmodel/631914555abe8613b3d2f620/comment/631f50df526d775aa7f65966#reply-631f5c326c86d75accc7e627)

Reply · Article · Sep 12, 2022 · [Using an Activity from a Hilt ViewModel](https://hashnode.com/posts/using-an-activity-from-a-hilt-viewmodel/631914555abe8613b3d2f620)

[Starting an activity from the Application class isn't the same as starting it from an activity. When using the application class the activity manager doesn't know which activity stack the new activity should be added to.](https://hashnode.com/posts/using-an-activity-from-a-hilt-viewmodel/631914555abe8613b3d2f620/comment/631eef1df73f4734bc05a4e4#reply-631f5bf66c86d75accc7e5f8)

Reply · Article · Sep 12, 2022 · [Using an Activity from a Hilt ViewModel](https://hashnode.com/posts/using-an-activity-from-a-hilt-viewmodel/631914555abe8613b3d2f620)
