Created
July 14, 2016 16:47
-
-
Save tir38/037c3c0ebb756c607aa66b9e47eb155e to your computer and use it in GitHub Desktop.
Use Crashlytics to track Crashlytics initialization
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
long start = System.currentTimeMillis(); | |
boolean isDebugApplication = ... | |
Fabric.with(context, new Crashlytics.Builder() | |
.core(new CrashlyticsCore.Builder().disabled(isDebugApplication).build()) | |
.build()); | |
long initDuration = System.currentTimeMillis() - start; | |
Answers.getInstance().logContentView(new ContentViewEvent() | |
.putContentName("Fabric initialization time in milliseconds") | |
.putCustomAttribute("time", initDuration)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment