mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-19 16:19:33 +01:00
Add support for baseline profiles.
This commit is contained in:
@@ -158,7 +158,7 @@ public final class SignalProxyUtil {
|
||||
private static boolean testWebsocketConnectionUnregistered(long timeout) {
|
||||
CountDownLatch latch = new CountDownLatch(1);
|
||||
AtomicBoolean success = new AtomicBoolean(false);
|
||||
SignalServiceAccountManager accountManager = AccountManagerFactory.createUnauthenticated(ApplicationDependencies.getApplication(), "", SignalServiceAddress.DEFAULT_DEVICE_ID, "");
|
||||
SignalServiceAccountManager accountManager = AccountManagerFactory.getInstance().createUnauthenticated(ApplicationDependencies.getApplication(), "", SignalServiceAddress.DEFAULT_DEVICE_ID, "");
|
||||
|
||||
SignalExecutors.UNBOUNDED.execute(() -> {
|
||||
try {
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
package org.thoughtcrime.securesms.util
|
||||
|
||||
import org.thoughtcrime.securesms.BuildConfig
|
||||
import androidx.tracing.Trace as AndroidTrace
|
||||
|
||||
object SignalTrace {
|
||||
@JvmStatic
|
||||
fun beginSection(methodName: String) {
|
||||
if (!BuildConfig.TRACING_ENABLED) {
|
||||
return
|
||||
}
|
||||
AndroidTrace.beginSection(methodName)
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
fun endSection() {
|
||||
if (!BuildConfig.TRACING_ENABLED) {
|
||||
return
|
||||
}
|
||||
AndroidTrace.endSection()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user