File tree Expand file tree Collapse file tree 4 files changed +6
-10
lines changed
firebase-crashlytics-ndk/src/third_party
firebase-perf/src/main/java/com/google/firebase/perf/session Expand file tree Collapse file tree 4 files changed +6
-10
lines changed Submodule
crashpad updated from c902f6b to 8df174c
Submodule
lss updated from 9719c1e to ed31caa
Original file line number Diff line number Diff line change @@ -38,8 +38,6 @@ public class PerfSession implements Parcelable {
3838 * Creates a PerfSession object and decides what metrics to collect.
3939 */
4040 public static PerfSession createWithId (@ NonNull String sessionId ) {
41- // For testing retain session ID.
42- sessionId = "b007cc71-7582-4655-8e82-cbb2407a6bf4" ;
4341 String prunedSessionId = sessionId .replace ("-" , "" );
4442 PerfSession session = new PerfSession (prunedSessionId , new Clock ());
4543 session .setGaugeAndEventCollectionEnabled (shouldCollectGaugesAndEvents ());
@@ -166,12 +164,10 @@ public static com.google.firebase.perf.v1.PerfSession[] buildAndSort(
166164
167165 /** If true, Session Gauge collection is enabled. */
168166 public static boolean shouldCollectGaugesAndEvents () {
169- return true ;
167+ ConfigResolver configResolver = ConfigResolver . getInstance () ;
170168
171- // ConfigResolver configResolver = ConfigResolver.getInstance();
172- //
173- // return configResolver.isPerformanceMonitoringEnabled()
174- // && Math.random() < configResolver.getSessionsSamplingRate();
169+ return configResolver .isPerformanceMonitoringEnabled ()
170+ && Math .random () < configResolver .getSessionsSamplingRate ();
175171 }
176172
177173 /**
You can’t perform that action at this time.
0 commit comments