• Home
  • Raw
  • Download

Lines Matching refs:stats

196     stats.Reset();  in Reset()
222 BtifMediaStats stats; member in BtifA2dpSource
265 static void update_scheduling_stats(SchedulingStats* stats, uint64_t now_us,
799 btif_a2dp_source_cb.stats.Reset(); in btif_a2dp_source_audio_tx_start_event()
803 btif_a2dp_source_cb.stats.session_start_us = in btif_a2dp_source_audio_tx_start_event()
805 if (btif_a2dp_source_cb.stats.session_start_us == 0) { in btif_a2dp_source_audio_tx_start_event()
806 btif_a2dp_source_cb.stats.session_start_us = 1; in btif_a2dp_source_audio_tx_start_event()
808 btif_a2dp_source_cb.stats.session_end_us = 0; in btif_a2dp_source_audio_tx_start_event()
811 btif_a2dp_source_cb.stats.codec_index = codec_config->codecIndex(); in btif_a2dp_source_audio_tx_start_event()
824 btif_a2dp_source_cb.stats.session_end_us = in btif_a2dp_source_audio_tx_stop_event()
827 btif_a2dp_source_accumulate_stats(&btif_a2dp_source_cb.stats, in btif_a2dp_source_audio_tx_stop_event()
898 update_scheduling_stats(&btif_a2dp_source_cb.stats.tx_queue_enqueue_stats, in btif_a2dp_source_audio_handle_timer()
916 btif_a2dp_source_cb.stats.media_read_total_underflow_bytes += in btif_a2dp_source_read_callback()
918 btif_a2dp_source_cb.stats.media_read_total_underflow_count++; in btif_a2dp_source_read_callback()
919 btif_a2dp_source_cb.stats.media_read_last_underflow_us = in btif_a2dp_source_read_callback()
944 btif_a2dp_source_cb.stats.tx_queue_total_flushed_messages += in btif_a2dp_source_enqueue_callback()
946 btif_a2dp_source_cb.stats.tx_queue_last_flushed_us = now_us; in btif_a2dp_source_enqueue_callback()
961 btif_a2dp_source_cb.stats.tx_queue_dropouts++; in btif_a2dp_source_enqueue_callback()
962 btif_a2dp_source_cb.stats.tx_queue_last_dropouts_us = now_us; in btif_a2dp_source_enqueue_callback()
966 btif_a2dp_source_cb.stats.tx_queue_max_dropped_messages = std::max( in btif_a2dp_source_enqueue_callback()
967 drop_n, btif_a2dp_source_cb.stats.tx_queue_max_dropped_messages); in btif_a2dp_source_enqueue_callback()
971 btif_a2dp_source_cb.stats.tx_queue_total_dropped_messages++; in btif_a2dp_source_enqueue_callback()
1006 btif_a2dp_source_cb.stats.tx_queue_total_frames += frames_n; in btif_a2dp_source_enqueue_callback()
1007 btif_a2dp_source_cb.stats.tx_queue_max_frames_per_packet = std::max( in btif_a2dp_source_enqueue_callback()
1008 frames_n, btif_a2dp_source_cb.stats.tx_queue_max_frames_per_packet); in btif_a2dp_source_enqueue_callback()
1024 btif_a2dp_source_cb.stats.tx_queue_total_flushed_messages += in btif_a2dp_source_audio_tx_flush_event()
1026 btif_a2dp_source_cb.stats.tx_queue_last_flushed_us = in btif_a2dp_source_audio_tx_flush_event()
1048 btif_a2dp_source_cb.stats.tx_queue_total_readbuf_calls++; in btif_a2dp_source_audio_readbuf()
1049 btif_a2dp_source_cb.stats.tx_queue_last_readbuf_us = now_us; in btif_a2dp_source_audio_readbuf()
1052 update_scheduling_stats(&btif_a2dp_source_cb.stats.tx_queue_dequeue_stats, in btif_a2dp_source_audio_readbuf()
1069 static void update_scheduling_stats(SchedulingStats* stats, uint64_t now_us, in update_scheduling_stats() argument
1071 uint64_t last_us = stats->last_update_us; in update_scheduling_stats()
1073 stats->total_updates++; in update_scheduling_stats()
1074 stats->last_update_us = now_us; in update_scheduling_stats()
1084 stats->max_overdue_scheduling_delta_us = in update_scheduling_stats()
1085 std::max(delta_us, stats->max_overdue_scheduling_delta_us); in update_scheduling_stats()
1086 stats->total_overdue_scheduling_delta_us += delta_us; in update_scheduling_stats()
1087 stats->overdue_scheduling_count++; in update_scheduling_stats()
1088 stats->total_scheduling_time_us += now_us - last_us; in update_scheduling_stats()
1095 stats->max_premature_scheduling_delta_us = in update_scheduling_stats()
1096 std::max(delta_us, stats->max_premature_scheduling_delta_us); in update_scheduling_stats()
1097 stats->total_premature_scheduling_delta_us += delta_us; in update_scheduling_stats()
1098 stats->premature_scheduling_count++; in update_scheduling_stats()
1099 stats->total_scheduling_time_us += now_us - last_us; in update_scheduling_stats()
1103 stats->exact_scheduling_count++; in update_scheduling_stats()
1104 stats->total_scheduling_time_us += now_us - last_us; in update_scheduling_stats()
1109 btif_a2dp_source_accumulate_stats(&btif_a2dp_source_cb.stats, in btif_a2dp_source_debug_dump()
1274 BtifMediaStats stats = btif_a2dp_source_cb.stats; in btif_a2dp_source_update_metrics() local
1275 SchedulingStats enqueue_stats = stats.tx_queue_enqueue_stats; in btif_a2dp_source_update_metrics()
1277 metrics.codec_index = stats.codec_index; in btif_a2dp_source_update_metrics()
1281 if (stats.session_start_us != 0) { in btif_a2dp_source_update_metrics()
1282 int64_t session_end_us = stats.session_end_us == 0 in btif_a2dp_source_update_metrics()
1284 : stats.session_end_us; in btif_a2dp_source_update_metrics()
1285 if (static_cast<uint64_t>(session_end_us) > stats.session_start_us) { in btif_a2dp_source_update_metrics()
1287 (session_end_us - stats.session_start_us) / 1000; in btif_a2dp_source_update_metrics()
1307 metrics.buffer_overruns_max_count = stats.tx_queue_max_dropped_messages; in btif_a2dp_source_update_metrics()
1308 metrics.buffer_overruns_total = stats.tx_queue_total_dropped_messages; in btif_a2dp_source_update_metrics()
1309 metrics.buffer_underruns_count = stats.media_read_total_underflow_count; in btif_a2dp_source_update_metrics()
1313 stats.media_read_total_underflow_bytes / in btif_a2dp_source_update_metrics()