Add support for baseline profiles.

This commit is contained in:
Clark
2023-03-09 14:27:03 -05:00
committed by Greyson Parrelli
parent 79a062c838
commit 04baa7925f
20 changed files with 37283 additions and 22 deletions

View File

@@ -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 {

View File

@@ -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()
}
}