Skip to content

Commit a2198d3

Browse files
committed
CONTRIBUTING.md: add performance section
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
1 parent e85737f commit a2198d3

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

CONTRIBUTING.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,22 @@ and thereof we'd ask contributors to be mindful of their code testability:
407407
should at least not make future efforts more challenging
408408
3. whenever possible, testability should be improved even if the code is not covered by tests
409409

410+
### Performance
411+
412+
If you're interested in improving the app's performance, please check the [official documentation](https://developer.android.com/topic/performance)
413+
for ways you can inspect and improve performance.
414+
415+
For additional analysis, set the `perfAnalysis` property
416+
in your Gradle build:
417+
418+
```shell
419+
./gradlew installGplayDebug -P perfAnalysis
420+
```
421+
422+
This will install the app with [LeakCanary](https://square.github.io/leakcanary/) and
423+
[StrictMode](https://developer.android.com/reference/android/os/StrictMode) enabled and configured.
424+
These tools can help find memory leaks, foreground operations that should be in background, and other performance
425+
problems.
410426

411427
# Releases
412428
At the moment we are releasing the app in two app stores:

0 commit comments

Comments
 (0)