使用Firebase Analytics

时间:2017-09-03 20:17:30

标签: swift firebase-analytics

我遇到了一个问题,当调用UIAlert时,应用程序会变慢。警报需要几秒钟才能显示,并且需要几秒钟才能做出反应。与此同时,有一连串涉及计时器的Firebase / Analytics调用,我已在下面复制过了。有什么想法或提示可能是什么?我正在运行最新的Firebase和Swift版本。

2017-09-03 20:23:41.628 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS031006] View controller already tracked. Class, ID: MyApp.ViewController, 9XXXXXXXXXXXXXXXX0
2017-09-03 20:23:45.678 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS031010] Tracking view controller. Class, ID: UIAlertController, 9XXXXXXXXXXXXXXXX1
2017-09-03 20:23:45.678 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS033003] Scheduling user engagement timer
2017-09-03 20:23:45.679 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS002003] Engagement timer canceled
2017-09-03 20:23:45.679 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS002002] Engagement timer scheduled to fire in approx. (s): 3600
2017-09-03 20:23:45.728 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, user_engagement (_e), {
        firebase_screen_id (_si) = 9XXXXXXXXXXXXXXXX0;
        engagement_time_msec (_et) = 41483;
        firebase_screen_class (_sc) = MyApp.ViewController;
        firebase_event_origin (_o) = auto;
    }
2017-09-03 20:23:45.729 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: user_engagement (_e), {
        firebase_screen_id (_si) = 9XXXXXXXXXXXXXXXX0;
        engagement_time_msec (_et) = 41483;
        firebase_screen_class (_sc) = MyApp.ViewController;
        firebase_event_origin (_o) = auto;
        firebase_realtime (_r) = 1;
        firebase_debug (_dbg) = 1;
    }
2017-09-03 20:23:45.782 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: user_engagement (_e), {
        firebase_screen_id (_si) = 9XXXXXXXXXXXXXXXX0;
        engagement_time_msec (_et) = 41483;
        firebase_screen_class (_sc) = MyApp.ViewController;
        firebase_event_origin (_o) = auto;
        firebase_realtime (_r) = 1;
        firebase_debug (_dbg) = 1;
    }
2017-09-03 20:23:45.784 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): 0.8859719038009644
2017-09-03 20:23:45.784 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): 0.8859719038009644
2017-09-03 20:23:45.784 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, screen_view (_vs), {
        firebase_screen_id (_si) = 9XXXXXXXXXXXXXXXX1;
        firebase_previous_class (_pc) = MyApp.ViewController;
        firebase_screen_class (_sc) = UIAlertController;
        firebase_event_origin (_o) = auto;
        firebase_previous_id (_pi) = 9XXXXXXXXXXXXXXXX0;
    }
2017-09-03 20:23:45.785 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: screen_view (_vs), {
        firebase_event_origin (_o) = auto;
        firebase_realtime (_r) = 1;
        firebase_screen_class (_sc) = UIAlertController;
        firebase_debug (_dbg) = 1;
        firebase_screen_id (_si) = 9XXXXXXXXXXXXXXXX1;
        firebase_previous_class (_pc) = MyApp.ViewController;
        firebase_previous_id (_pi) = 9XXXXXXXXXXXXXXXX0;
    }
2017-09-03 20:23:45.802 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS023072] Event logged. Event name, event params: screen_view (_vs), {
        firebase_event_origin (_o) = auto;
        firebase_realtime (_r) = 1;
        firebase_screen_class (_sc) = UIAlertController;
        firebase_debug (_dbg) = 1;
        firebase_screen_id (_si) = 9XXXXXXXXXXXXXXXX1;
        firebase_previous_class (_pc) = MyApp.ViewController;
        firebase_previous_id (_pi) = 9XXXXXXXXXXXXXXXX0;
    }
2017-09-03 20:23:45.802 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS023027] Do not schedule an upload task. Task already exists. Will be executed in seconds: 0.8794739246368408
2017-09-03 20:23:46.778 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS002001] Measurement timer fired
2017-09-03 20:23:46.778 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2017-09-03 20:23:46.779 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS023033] Starting data upload
2017-09-03 20:23:46.781 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: user_engagement (_e), {
        firebase_screen_id (_si) = 9XXXXXXXXXXXXXXXX0;
        engagement_time_msec (_et) = 41483;
        firebase_screen_class (_sc) = MyApp.ViewController;
        firebase_realtime (_r) = 1;
        firebase_debug (_dbg) = 1;
        firebase_event_origin (_o) = auto;
    }
2017-09-03 20:23:46.829 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: screen_view (_vs), {
        firebase_event_origin (_o) = auto;
        firebase_realtime (_r) = 1;
        firebase_screen_class (_sc) = UIAlertController;
        firebase_debug (_dbg) = 1;
        firebase_screen_id (_si) = 9XXXXXXXXXXXXXXXX1;
        firebase_previous_class (_pc) = MyApp.ViewController;
        firebase_previous_id (_pi) = 9XXXXXXXXXXXXXXXX0;
    }
2017-09-03 20:23:46.878 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS012018] Saving bundle. size (bytes): 429
2017-09-03 20:23:46.880 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS023116] Bundle added to the upload queue. BundleID, timestamp (ms): 1008, 1504463025670
2017-09-03 20:23:46.979 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS023038] Uploading events. Elapsed time since last successful upload (s): 40.90037298202515
2017-09-03 20:23:46.982 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS023039] Measurement data sent to network. Timestamp (ms), data: 1504463026979, <FIRAPBMeasurementBatch: 0x608000015a50>
2017-09-03 20:23:46.984 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS900000] Uploading data. Host: https://app-measurement.com/a
2017-09-03 20:23:47.091 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/a
2017-09-03 20:23:47.149 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS023044] Successful upload. Got network response. Code, size: 204, -1
2017-09-03 20:23:47.153 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -0.4830329418182373
2017-09-03 20:23:47.154 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): -0.4830329418182373
2017-09-03 20:23:47.279 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS023024] No data to upload. Upload task will not be scheduled
2017-09-03 20:23:47.279 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS002003] Measurement timer canceled
cancel action: <UIAlertAction: 0x608000304b60 Title = "Yes" Descriptive = "(null)" Image = 0x0>
2017-09-03 20:23:50.528 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS031010] Tracking view controller. Class, ID: MyApp.ViewController, 9XXXXXXXXXXXXXXXX0
init nua: (1293.40002441406, 343.466674804688)
2017-09-03 20:23:50.530 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS033003] Scheduling user engagement timer
2017-09-03 20:23:50.531 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS002003] Engagement timer canceled
2017-09-03 20:23:50.532 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS002002] Engagement timer scheduled to fire in approx. (s): 3600
2017-09-03 20:23:50.533 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, user_engagement (_e), {
        firebase_screen_id (_si) = 9XXXXXXXXXXXXXXXX1;
        engagement_time_msec (_et) = 4847;
        firebase_screen_class (_sc) = UIAlertController;
        firebase_event_origin (_o) = auto;
    }
2017-09-03 20:23:50.533 MyApp[32419] <Debug> [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: user_engagement (_e), {
        firebase_screen_id (_si) = 9XXXXXXXXXXXXXXXX1;
        engagement_time_msec (_et) = 4847;
        firebase_screen_class (_sc) = UIAlertController;
        firebase_event_origin (_o) = auto;
        firebase_realtime (_r) = 1;
        firebase_debug (_dbg) = 1;
    }

0 个答案:

没有答案