Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logger cause many gc. #223

Open
auxor opened this issue Jan 19, 2018 · 0 comments
Open

Logger cause many gc. #223

auxor opened this issue Jan 19, 2018 · 0 comments

Comments

@auxor
Copy link

auxor commented Jan 19, 2018

Cling is a great project for dlna, and have enough for debugging. However, there is no way to disable log in release build. Logger code cause so much string allocating and gc. The following are some gc log in android.

01-19 10:28:16.398 1473 1487 I art : WaitForGcToComplete blocked for 100.878ms for cause Alloc
01-19 10:28:16.399 1473 4673 I art : WaitForGcToComplete blocked for 101.861ms for cause Alloc.

I have try to use proguard to remove log code. See https://www.guardsquare.com/en/proguard/manual/examples#logging.

The logger code is removed,but the string allocating in logger calling is kept.

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

No branches or pull requests

1 participant