Fixed
Status Update
Comments
je...@google.com <je...@google.com>
jv...@google.com <jv...@google.com>
je...@google.com <je...@google.com> #2
Are there any updates here?
je...@google.com <je...@google.com>
cm...@google.com <cm...@google.com> #3
I looked at it and I'm planning to remove the deduplicating lookup the callstack refers to. It should be no longer needed. How was the 80ms in
je...@google.com <je...@google.com> #4
I couldn't move the logging off thread but I was able to address an area of concern in the callstack:
com.google.protobuf.Descriptors$FileDescriptor.internalBuildGeneratedFileFrom(Descriptors.java)
com.android.build.gradle.internal.cxx.logging.CxxLogging.<clinit>(CxxLogging.java:82)
com.android.build.gradle.internal.cxx.logging.LoggingMessage.getDescriptor(LoggingMessage.java:110)
com.android.build.gradle.internal.cxx.logging.LoggingMessage.hashCode(LoggingMessage.java:489)
java.util.HashMap.hash(HashMap.java:340)
java.util.HashMap.containsKey(HashMap.java:592)
java.util.HashSet.contains(HashSet.java:204)
This logic was deduplicating messages (including chatty 'info' messages). This deduplication shouldn't be needed anymore so I removed it.
I don't know how the 80ms from comment#1 was gathered so I can't say how much it has improved logging, but it should help quite a bit. Let me know if you can still measure a performance issue. The next step would be to reduce the 'info' that's logged.
com.google.protobuf.Descriptors$FileDescriptor.internalBuildGeneratedFileFrom(Descriptors.java)
com.android.build.gradle.internal.cxx.logging.CxxLogging.<clinit>(CxxLogging.java:82)
com.android.build.gradle.internal.cxx.logging.LoggingMessage.getDescriptor(LoggingMessage.java:110)
com.android.build.gradle.internal.cxx.logging.LoggingMessage.hashCode(LoggingMessage.java:489)
java.util.HashMap.hash(HashMap.java:340)
java.util.HashMap.containsKey(HashMap.java:592)
java.util.HashSet.contains(HashSet.java:204)
This logic was deduplicating messages (including chatty 'info' messages). This deduplication shouldn't be needed anymore so I removed it.
I don't know how the 80ms from
cm...@google.com <cm...@google.com> #6
No problem, they annoyed me but I missed that they were from AGP code and not Gradle!
sa...@google.com <sa...@google.com> #7
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in the latest version of Android Studio 4.0. We encourage you to get the latest update.
If you notice any further issues or have questions please file a new bug report from Android Studio by selecting Help > Submit Feedback.
Thank you for taking the time to submit feedback -- we really appreciate it!
If you notice any further issues or have questions please file a new bug report from Android Studio by selecting Help > Submit Feedback.
Thank you for taking the time to submit feedback -- we really appreciate it!
Description
21053 lines of output:
$ wc -l /tmp/log
21053 /tmp/log
Of which 17372 seem to be about creating configurations:
$ grep "Creating configuration" /tmp/log | wc -l
17372
AndroidX would like to enable info-level logging in certain circumstances, most notably when rerunning the build and validating that all tasks are up-to-date (
Can we move this log message to debug level?