Skip to content

Commit 3e19e87

Browse files
committed
Revert manual multi process perf session
1 parent c6fd05a commit 3e19e87

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed
Submodule crashpad updated from c902f6b to 8df174c
Submodule lss updated from 9719c1e to ed31caa
Submodule mini_chromium updated from 4332ddb to 8b56c77

firebase-perf/src/main/java/com/google/firebase/perf/session/PerfSession.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff 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
/**

0 commit comments

Comments
 (0)