Skip to content

Commit

Permalink
quick updates
Browse files Browse the repository at this point in the history
  • Loading branch information
pyricau committed May 10, 2024
1 parent c89ebc7 commit 6a22757
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 2 additions & 6 deletions docs/changelog.md
Expand Up @@ -87,16 +87,12 @@ class MyUiAutomatorTest {

### Heap Growth: Shark CLI

Install Shark CLI:

```
brew install leakcanary-shark
```
Download the [Shark CLI Zip](https://github.com/square/leakcanary/releases/download/v3.0-alpha-2/shark-cli-3.0-alpha-2.zip) (alphas cannot be released to brew) and unzip it.

Run the `heap-growth` command:

```
$ shark-cli -p com.example.app.debug heap-growth
$ ~/Downloads/shark-cli-3.0-alpha-2/bin/shark-cli -p com.example.app.debug heap-growth
```

## Version 2.14 (2024-04-17)
Expand Down
4 changes: 2 additions & 2 deletions shark/shark/src/main/java/shark/ObjectGrowthDetector.kt
Expand Up @@ -52,8 +52,8 @@ class ObjectGrowthDetector(
if (output is HeapGrowthTraversal) {
val scenarioCount = output.traversalCount * output.scenarioLoopsPerGraph
SharkLog.d {
"After $scenarioCount scenario iterations and ${output.traversalCount} heap dumps: " +
"${output.growingObjects.size} growing nodes"
"After $scenarioCount scenario iterations and ${output.traversalCount} heap dumps, " +
"${output.growingObjects.size} growing nodes:\n" + output.growingObjects
}
}
}
Expand Down

0 comments on commit 6a22757

Please sign in to comment.