【埋点】adjust 初始化时间每次都是 181 秒麻烦帮忙检查下
This commit is contained in:
parent
c3a1455482
commit
0fc80a387e
|
|
@ -78,9 +78,6 @@ class AdjustManager private constructor() {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun saveUserType(userType: Int) {
|
private fun saveUserType(userType: Int) {
|
||||||
StatisticUtil.reportEvents(StatisticUtil.KEY_adjust_get_success, mapOf("pass_time" to
|
|
||||||
(System.currentTimeMillis() - mAdjustInitStartMs)/1000 + 1)
|
|
||||||
)
|
|
||||||
mSpHelper.saveUserType(userType)
|
mSpHelper.saveUserType(userType)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -117,7 +114,7 @@ class AdjustManager private constructor() {
|
||||||
enableCostDataInAttribution()*/
|
enableCostDataInAttribution()*/
|
||||||
|
|
||||||
onSessionTrackingFailedListener = OnSessionTrackingFailedListener { failSession ->
|
onSessionTrackingFailedListener = OnSessionTrackingFailedListener { failSession ->
|
||||||
val test = 111
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onSessionTrackingSucceededListener = OnSessionTrackingSucceededListener {
|
onSessionTrackingSucceededListener = OnSessionTrackingSucceededListener {
|
||||||
|
|
@ -172,7 +169,8 @@ class AdjustManager private constructor() {
|
||||||
// 计算从初始化开始到归因回调的总耗时(秒数,向上取整)
|
// 计算从初始化开始到归因回调的总耗时(秒数,向上取整)
|
||||||
val totalDurationSeconds = kotlin.math.ceil((System.currentTimeMillis() - initStartTime) / 1000.0).toInt()
|
val totalDurationSeconds = kotlin.math.ceil((System.currentTimeMillis() - initStartTime) / 1000.0).toInt()
|
||||||
StatisticLogger.d("Adjust初始化到归因回调总耗时: ${totalDurationSeconds}秒")
|
StatisticLogger.d("Adjust初始化到归因回调总耗时: ${totalDurationSeconds}秒")
|
||||||
DataReportManager.reportData("adjust_get_success", mapOf("pass_time" to totalDurationSeconds))
|
DataReportManager.reportData(StatisticUtil.KEY_adjust_get_success, mapOf("pass_time" to totalDurationSeconds))
|
||||||
|
|
||||||
|
|
||||||
// 设置当前用户渠道类型
|
// 设置当前用户渠道类型
|
||||||
val userChannelType = if (StatisticLogger.isLogEnabled()) {
|
val userChannelType = if (StatisticLogger.isLogEnabled()) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue