frogermcs / AndroidDevMetrics

Performance metrics library for Android development (includes dagger2metrics)
1.54k stars 118 forks source link

Metrics for lifecycle methods are showing as 0ms for Library projects #30

Open ravipaduchuri opened 7 years ago

ravipaduchuri commented 7 years ago

Metrics are only showing for the activities in the App module, if we launch activities from a library component then metrics are showing as 0ms

Reproduction:

  1. Create a sample Android application
  2. Create sample library project with few activities(make proper dependency to the above sample app.).
  3. Navigate to the activity in the sample library project from App module.
  4. Check the metrics, 0ms is showing for the activities(of sample library).
theshuklz commented 7 years ago

@frogermcs Can you help with the above issue?

Heroes84 commented 7 years ago

Metrics also not working in Application class, who inerhit from library application class, where android dev metric was initialized.