标签: firebase-performance

Firebase性能详细的URL模式

即使API在过去几个月内有超过30,000的样本,我也无法在Firebase性能监控中查看详细的URL模式.

它只是显示根API域,如下所示:

api.myAppName.in/**
Run Code Online (Sandbox Code Playgroud)

而不是像

api.myAppName.in/app/v3/user/*/profile/
Run Code Online (Sandbox Code Playgroud)

如果您将鼠标悬停在控制台上,控制台只会在API上显示"未分类"标签

当我们收集大量样本时,将显示来自api.myAppName.in的详细UR​​L模式.收集后最多24小时.

但正如前面所提到的,它已经过了几个月,超过30,000个样本.

我正在使用改造,如果这有帮助.

android firebase firebase-performance

8
推荐指数
2
解决办法
1345
查看次数

如何使用 Firebase 性能跟踪 Fragment 的帧指标?

适用于 Android 的 Firebase 性能监控 SDK 自动跟踪 Activity 的缓慢渲染和冻结帧。但是 Fragment 没有这样的数据。例如,如果活动A托管 3 个片段,那么它会报告活动的渲染缓慢和冻结帧,A但无法知道是哪个片段导致了这种情况。有没有办法为片段实现类似的屏幕跟踪?

android android-fragments firebase firebase-performance

8
推荐指数
1
解决办法
586
查看次数

Firebase 性能视图会话显示没有会话

我正在尝试按照文档将我的 Android 应用程序与 Firebase 性能监控集成

我看到控制台中报告了数据,但我总是看到“0 个会话”。当我点击“查看会话”时,我只收到一条通用消息,提示我需要升级 SDK。

我在用'com.google.firebase:firebase-perf:20.0.1'

我错过了什么吗?

0 会话

在此输入图像描述

android firebase firebase-performance

8
推荐指数
1
解决办法
906
查看次数

Firebase性能测试版/插件构建问题

在整合2017年I/O期间发布的当前Android Firebase性能监控(beta)版本时,如下所示...

添加到项目build.gradle:

dependencies {
    classpath 'com.google.firebase:firebase-plugins:1.1.0'
}
Run Code Online (Sandbox Code Playgroud)

添加到app build.gradle:

dependencies {
    compile 'com.google.firebase:firebase-perf:10.2.6'
}
Run Code Online (Sandbox Code Playgroud)

您可能会遇到以下构建错误.

Error:Execution failed for task ':app:packageDebug'.
> com.google.common.util.concurrent.MoreExecutors.directExecutor()Ljava/util/concurrent/Executor;
Run Code Online (Sandbox Code Playgroud)

这是由Guava依赖项不匹配引起的,可以按如下方式解决,方法是修改项目build.gradle,如下所示:

dependencies {
    classpath ('com.google.firebase:firebase-plugins:1.1.0') {
                exclude group: 'com.google.guava', module: 'guava-jdk5'
            }
    }
Run Code Online (Sandbox Code Playgroud)

Firebase团队了解此问题,建议采用上述解决方法,并将在未来的版本中进行修复.

把它放在那里帮助其他人挠头.

android firebase-performance

7
推荐指数
1
解决办法
423
查看次数

Firebase性能监控和改造

我在其中一个项目中集成了Firebase性能监控功能.在该项目中,我使用Retrofit来管理我的网络请求.

遗憾的是,Firebase Performance的"网络请求"选项卡中没有显示通过Retrofit提出的任何请求.

以下是我看到的唯一内容:

Firebase性能监控

有人可以告诉我,为了在Firebase Performance中查看我的Retrofit管理的网络请求,我需要做些什么吗?

谢谢

android firebase retrofit2 firebase-performance

7
推荐指数
1
解决办法
2213
查看次数

firebase 性能返回“未收到 HTTP 响应代码”

我已经集成了 firebase,日志完美地显示在 firebase 控制台中。

 implementation 'com.google.firebase:firebase-perf:16.0.0'  
Run Code Online (Sandbox Code Playgroud)

是与 firebase SDK 集成的片段。错误信息如下,

 03-07 13:27:05.031 I/FirebasePerformance(17999): Did not receive a HTTP 
 Response Code
 03-07 13:27:05.031 I/FirebasePerformance(17999): Unable to process an HTTP 
 request/response due to missing or invalid values. See earlier log 
 statements for additional information on the specific invalid/missing values.
Run Code Online (Sandbox Code Playgroud)

android firebase-performance

7
推荐指数
0
解决办法
859
查看次数

Firebase 性能监控显示 0 个会话

我按照文档添加了 firebase 性能监控。有数据显示,但显示 0 个会话,并且在查看会话时没有显示 cpu/内存数据,但显示我需要更新 SDK 才能查看该信息。

android firebase firebase-performance

7
推荐指数
1
解决办法
1989
查看次数

Flutter/Firebase-performance 未捕获网络请求

该插件已正确安装,并在 Firebase 控制台上提供了一些统计信息。但网络请求未列出。我正在使用 Dio 插件来管理 http 请求。

是否有关于此 pb 的任何已知问题?有人成功让它发挥作用吗?

flutter firebase-performance

6
推荐指数
1
解决办法
2042
查看次数

Firebase android 性能 NoClassDefFoundError -> FirebasePerfUrlConnection

有人面临同样的问题吗?将 firebase 性能添加到项目后,启动应用程序后立即发生错误。它仅在调试版本中崩溃,在发布版本中一切都按预期工作。也许有人有真正的答案,因为我在类似问题中发现的所有内容都是通过试错方法来处理库版本。Multidex 已打开。

\n\n

错误:

\n\n
E/AndroidRuntime: FATAL EXCEPTION: RxCachedThreadScheduler-2\nProcess: {PROJECT PACKAGE}, PID: 9872\nio.reactivex.exceptions.UndeliverableException: The exception could not be delivered to the consumer because it has already canceled/disposed the flow or the exception has nowhere to go to begin with. Further reading: https://github.com/ReactiveX/RxJava/wiki/What\'s-different-in-2.0#error-handling | java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/firebase/perf/network/FirebasePerfUrlConnection;\n    at io.reactivex.plugins.RxJavaPlugins.onError(RxJavaPlugins.java:367)\n    at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:69)\n    at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)\n    at java.util.concurrent.FutureTask.run(FutureTask.java:266)\n    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)\n    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)\n    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)\n    at java.lang.Thread.run(Thread.java:919)\n Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/firebase/perf/network/FirebasePerfUrlConnection;\n    at com.github.pwittchen.reactivenetwork.library.rx2.internet.observing.strategy.WalledGardenInternetObservingStrategy.createHttpUrlConnection(WalledGardenInternetObservingStrategy.java:124)\n    at com.github.pwittchen.reactivenetwork.library.rx2.internet.observing.strategy.WalledGardenInternetObservingStrategy.isConnected(WalledGardenInternetObservingStrategy.java:107)\n    at com.github.pwittchen.reactivenetwork.library.rx2.internet.observing.strategy.WalledGardenInternetObservingStrategy$1.apply(WalledGardenInternetObservingStrategy.java:66)\n    at …
Run Code Online (Sandbox Code Playgroud)

android noclassdeffounderror firebase firebase-performance

6
推荐指数
2
解决办法
5981
查看次数

未找到 ID 为“com.google.firebase.firebase-perf”的插件

在实现 Firebase 的“性能”功能时,我在尝试同步 Gradle 时遇到以下错误:

Plugin with id 'com.google.firebase.firebase-perf' not found.
Run Code Online (Sandbox Code Playgroud)

我按照此处的说明实现了它: https://firebase.google.com/docs/perf-mon/get-started-android。特别是,它会引导您在根级别(项目级别)Gradle 文件中指定 com.google.firebase:perf-plugin 的类路径依赖项,而不是应用程序级别:

在此输入图像描述

这是我的 Gradle,左侧是应用程序级,右侧是项目级:

在此输入图像描述

android firebase firebase-performance

6
推荐指数
3
解决办法
6324
查看次数