/external/webrtc/webrtc/modules/rtp_rtcp/source/ |
D | packet_loss_stats_unittest.cc | 18 PacketLossStats stats_; member in webrtc::PacketLossStatsTest 25 stats_.AddLostPacket(i); in TEST_F() 27 EXPECT_EQ(500, stats_.GetSingleLossCount()); in TEST_F() 28 EXPECT_EQ(0, stats_.GetMultipleLossEventCount()); in TEST_F() 29 EXPECT_EQ(0, stats_.GetMultipleLossPacketCount()); in TEST_F() 36 stats_.AddLostPacket(i & 0xFFFF); in TEST_F() 38 EXPECT_EQ(500, stats_.GetSingleLossCount()); in TEST_F() 39 EXPECT_EQ(0, stats_.GetMultipleLossEventCount()); in TEST_F() 40 EXPECT_EQ(0, stats_.GetMultipleLossPacketCount()); in TEST_F() 48 stats_.AddLostPacket(i & 0xFFFF); in TEST_F() [all …]
|
D | receive_statistics_unittest.cc | 156 : RtcpStatisticsCallback(), num_calls_(0), ssrc_(0), stats_() {} in TEST_F() 162 stats_ = statistics; in TEST_F() 170 RtcpStatistics stats_; in TEST_F() member in webrtc::TEST_F::TestCallback 203 EXPECT_EQ(statistics.cumulative_lost, callback.stats_.cumulative_lost); in TEST_F() 205 callback.stats_.extended_max_sequence_number); in TEST_F() 206 EXPECT_EQ(statistics.fraction_lost, callback.stats_.fraction_lost); in TEST_F() 207 EXPECT_EQ(statistics.jitter, callback.stats_.jitter); in TEST_F() 244 : StreamDataCountersCallback(), num_calls_(0), ssrc_(0), stats_() {} in RtpTestCallback() 250 stats_ = counters; in DataCountersUpdated() 267 MatchPacketCounter(expected.transmitted, stats_.transmitted); in Matches() [all …]
|
/external/webrtc/webrtc/modules/remote_bitrate_estimator/ |
D | rate_statistics_unittest.cc | 20 RateStatisticsTest() : stats_(500, 8000) {} in RateStatisticsTest() 21 RateStatistics stats_; member in __anon9950d8330111::RateStatisticsTest 27 EXPECT_EQ(0u, stats_.Rate(now_ms)); in TEST_F() 28 stats_.Update(1500, now_ms); in TEST_F() 30 EXPECT_EQ(24000u, stats_.Rate(now_ms)); in TEST_F() 31 stats_.Reset(); in TEST_F() 33 EXPECT_EQ(0u, stats_.Rate(now_ms)); in TEST_F() 36 stats_.Update(1500, now_ms); in TEST_F() 41 EXPECT_NEAR(1200000u, stats_.Rate(now_ms), 24000u); in TEST_F() 48 EXPECT_EQ(0u, stats_.Rate(now_ms)); in TEST_F() [all …]
|
/external/webrtc/webrtc/video/ |
D | receive_statistics_proxy.cc | 30 stats_.ssrc = ssrc; in ReceiveStatisticsProxy() 77 return stats_; in GetStats() 82 stats_.current_payload_type = payload_type; in OnIncomingPayloadType() 88 stats_.decoder_implementation_name = implementation_name; in OnDecoderImplementationName() 93 stats_.network_frame_rate = framerate; in OnIncomingRate() 94 stats_.total_bitrate_bps = bitrate_bps; in OnIncomingRate() 106 stats_.decode_ms = decode_ms; in OnDecoderTiming() 107 stats_.max_decode_ms = max_decode_ms; in OnDecoderTiming() 108 stats_.current_delay_ms = current_delay_ms; in OnDecoderTiming() 109 stats_.target_delay_ms = target_delay_ms; in OnDecoderTiming() [all …]
|
D | send_statistics_proxy.cc | 173 stats_.encoder_implementation_name = implementation_name; in OnEncoderImplementationName() 178 stats_.encode_frame_rate = framerate; in OnOutgoingRate() 179 stats_.media_bitrate_bps = bitrate; in OnOutgoingRate() 185 stats_.encode_usage_percent = metrics.encode_usage_percent; in CpuOveruseMetricsUpdated() 190 stats_.suspended = is_suspended; in OnSuspendChange() 196 stats_.input_frame_rate = in GetStats() 198 return stats_; in GetStats() 204 stats_.substreams.begin(); in PurgeOldStats() 205 it != stats_.substreams.end(); ++it) { in PurgeOldStats() 217 stats_.substreams.find(ssrc); in GetStatsEntry() [all …]
|
/external/webrtc/webrtc/modules/video_coding/codecs/test/ |
D | stats.cc | 61 stats_.push_back(stat); in NewFrame() 62 return stats_[frame_number]; in NewFrame() 67 if (stats_.size() == 0) { in PrintSummary() 81 for (FrameStatisticsIterator it = stats_.begin(); it != stats_.end(); ++it) { in PrintSummary() 98 frame = std::min_element(stats_.begin(), stats_.end(), LessForEncodeTime); in PrintSummary() 102 frame = std::max_element(stats_.begin(), stats_.end(), LessForEncodeTime); in PrintSummary() 107 static_cast<int>(total_encoding_time_in_us / stats_.size())); in PrintSummary() 114 for (std::vector<FrameStatistic>::iterator it = stats_.begin(); in PrintSummary() 115 it != stats_.end(); ++it) { in PrintSummary() 136 static_cast<int>(stats_.size() - decoded_frames.size())); in PrintSummary() [all …]
|
D | stats_unittest.cc | 25 void SetUp() { stats_ = new Stats(); } in SetUp() 27 void TearDown() { delete stats_; } in TearDown() 29 Stats* stats_; member in webrtc::test::StatsTest 34 EXPECT_EQ(0u, stats_->stats_.size()); in TEST_F() 35 stats_->PrintSummary(); // should not crash in TEST_F() 40 stats_->NewFrame(0u); in TEST_F() 41 FrameStatistic* frameStat = &stats_->stats_[0]; in TEST_F() 49 FrameStatistic& frameStat = stats_->NewFrame(i); in TEST_F() 52 EXPECT_EQ(nbr_of_frames, static_cast<int>(stats_->stats_.size())); in TEST_F() 54 stats_->PrintSummary(); // should not crash in TEST_F()
|
/external/webrtc/talk/app/webrtc/test/ |
D | mockpeerconnectionobservers.h | 122 MockStatsObserver() : called_(false), stats_() {} in MockStatsObserver() 128 stats_.Clear(); in OnComplete() 129 stats_.number_of_reports = reports.size(); in OnComplete() 132 stats_.timestamp = r->timestamp(); in OnComplete() 134 &stats_.audio_output_level); in OnComplete() 136 &stats_.audio_input_level); in OnComplete() 138 &stats_.bytes_received); in OnComplete() 140 &stats_.bytes_sent); in OnComplete() 142 stats_.timestamp = r->timestamp(); in OnComplete() 144 &stats_.available_receive_bandwidth); in OnComplete() [all …]
|
/external/perfetto/src/tracing/core/ |
D | trace_buffer.cc | 94 stats_.set_buffer_size(size); in Initialize() 120 stats_.set_abi_violations(stats_.abi_violations() + 1); in CopyChunkUntrusted() 167 stats_.set_abi_violations(stats_.abi_violations() + 1); in CopyChunkUntrusted() 184 stats_.set_abi_violations(stats_.abi_violations() + 1); in CopyChunkUntrusted() 222 stats_.set_chunks_rewritten(stats_.chunks_rewritten() + 1); in CopyChunkUntrusted() 239 stats_.set_write_wrap_count(stats_.write_wrap_count() + 1); in CopyChunkUntrusted() 269 stats_.set_chunks_written(stats_.chunks_written() + 1); in CopyChunkUntrusted() 270 stats_.set_bytes_written(stats_.bytes_written() + record_size); in CopyChunkUntrusted() 283 stats_.set_write_wrap_count(stats_.write_wrap_count() + 1); in CopyChunkUntrusted() 306 stats_.set_chunks_committed_out_of_order( in CopyChunkUntrusted() [all …]
|
/external/tensorflow/tensorflow/core/common_runtime/sycl/ |
D | sycl_allocator.cc | 26 stats_.bytes_limit = in SYCLAllocator() 49 ++stats_.num_allocs; in AllocateRaw() 50 stats_.bytes_in_use += bytes_allocated; in AllocateRaw() 51 stats_.max_bytes_in_use = in AllocateRaw() 52 std::max<int64>(stats_.max_bytes_in_use, stats_.bytes_in_use); in AllocateRaw() 53 stats_.max_alloc_size = in AllocateRaw() 54 std::max<int64>(stats_.max_alloc_size, bytes_allocated); in AllocateRaw() 64 stats_.bytes_in_use -= dealloc_size; in DeallocateRaw() 71 *stats = stats_; in GetStats() 76 stats_.num_allocs = 0; in ClearStats() [all …]
|
/external/deqp-deps/SPIRV-Tools/tools/stats/ |
D | spirv_stats.cpp | 45 : stats_(in_out_stats), vstate_(state) {} in StatsAggregator() 51 ++stats_->version_hist[vstate_->version()]; in aggregate() 52 ++stats_->generator_hist[vstate_->generator()]; in aggregate() 68 ++stats_->capability_hist[capability]; in ProcessCapability() 75 ++stats_->extension_hist[extension]; in ProcessExtension() 81 ++stats_->opcode_hist[opcode]; in ProcessOpcode() 89 auto step_it = stats_->opcode_markov_hist.begin(); in ProcessOpcode() 90 for (; step_it != stats_->opcode_markov_hist.end(); --idx, ++step_it) { in ProcessOpcode() 114 ++stats_->s16_constant_hist[inst->GetOperandAs<int16_t>(2)]; in ProcessConstant() 116 ++stats_->u16_constant_hist[inst->GetOperandAs<uint16_t>(2)]; in ProcessConstant() [all …]
|
D | stats_analyzer.cpp | 118 StatsAnalyzer::StatsAnalyzer(const SpirvStats& stats) : stats_(stats) { in StatsAnalyzer() 120 for (const auto& pair : stats_.version_hist) { in StatsAnalyzer() 124 version_freq_ = GetRecall(stats_.version_hist, num_modules_); in StatsAnalyzer() 125 generator_freq_ = GetRecall(stats_.generator_hist, num_modules_); in StatsAnalyzer() 126 capability_freq_ = GetRecall(stats_.capability_hist, num_modules_); in StatsAnalyzer() 127 extension_freq_ = GetRecall(stats_.extension_hist, num_modules_); in StatsAnalyzer() 128 opcode_freq_ = GetPrevalence(stats_.opcode_hist); in StatsAnalyzer() 156 WriteFreq(out, GetPrevalence(stats_.f32_constant_hist), KeyIsLabel); in WriteConstantLiterals() 159 WriteFreq(out, GetPrevalence(stats_.f64_constant_hist), KeyIsLabel); in WriteConstantLiterals() 162 WriteFreq(out, GetPrevalence(stats_.u16_constant_hist), KeyIsLabel); in WriteConstantLiterals() [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/tools/stats/ |
D | spirv_stats.cpp | 45 : stats_(in_out_stats), vstate_(state) {} in StatsAggregator() 51 ++stats_->version_hist[vstate_->version()]; in aggregate() 52 ++stats_->generator_hist[vstate_->generator()]; in aggregate() 68 ++stats_->capability_hist[capability]; in ProcessCapability() 75 ++stats_->extension_hist[extension]; in ProcessExtension() 81 ++stats_->opcode_hist[opcode]; in ProcessOpcode() 89 auto step_it = stats_->opcode_markov_hist.begin(); in ProcessOpcode() 90 for (; step_it != stats_->opcode_markov_hist.end(); --idx, ++step_it) { in ProcessOpcode() 114 ++stats_->s16_constant_hist[inst->GetOperandAs<int16_t>(2)]; in ProcessConstant() 116 ++stats_->u16_constant_hist[inst->GetOperandAs<uint16_t>(2)]; in ProcessConstant() [all …]
|
D | stats_analyzer.cpp | 118 StatsAnalyzer::StatsAnalyzer(const SpirvStats& stats) : stats_(stats) { in StatsAnalyzer() 120 for (const auto& pair : stats_.version_hist) { in StatsAnalyzer() 124 version_freq_ = GetRecall(stats_.version_hist, num_modules_); in StatsAnalyzer() 125 generator_freq_ = GetRecall(stats_.generator_hist, num_modules_); in StatsAnalyzer() 126 capability_freq_ = GetRecall(stats_.capability_hist, num_modules_); in StatsAnalyzer() 127 extension_freq_ = GetRecall(stats_.extension_hist, num_modules_); in StatsAnalyzer() 128 opcode_freq_ = GetPrevalence(stats_.opcode_hist); in StatsAnalyzer() 156 WriteFreq(out, GetPrevalence(stats_.f32_constant_hist), KeyIsLabel); in WriteConstantLiterals() 159 WriteFreq(out, GetPrevalence(stats_.f64_constant_hist), KeyIsLabel); in WriteConstantLiterals() 162 WriteFreq(out, GetPrevalence(stats_.u16_constant_hist), KeyIsLabel); in WriteConstantLiterals() [all …]
|
/external/tensorflow/tensorflow/core/common_runtime/ |
D | mkl_cpu_allocator.h | 58 stats_.bytes_limit = total_memory; in MklSmallSizeAllocator() 87 return stats_; in GetStats() 92 stats_.num_allocs = 0; in ClearStats() 93 stats_.peak_bytes_in_use = 0; in ClearStats() 94 stats_.largest_alloc_size = 0; in ClearStats() 95 stats_.bytes_in_use = 0; in ClearStats() 96 stats_.bytes_limit = 0; in ClearStats() 103 ++stats_.num_allocs; in IncrementStats() 104 stats_.bytes_in_use += alloc_size; in IncrementStats() 105 stats_.peak_bytes_in_use = in IncrementStats() [all …]
|
D | step_stats_collector.cc | 48 stats_->set_node_name(node->name()); in NodeExecStatsWrapper() 54 : stats_(std::move(stats)), in NodeExecStatsWrapper() 63 for (auto& all : stats_->memory()) { in Done() 99 stats_->set_timeline_label(text); in Done() 105 stats_->set_all_start_micros(now_nanos / EnvTime::kMicrosToNanos); in RecordExecutorStarted() 106 stats_->set_all_start_nanos(now_nanos); in RecordExecutorStarted() 111 DCHECK_NE(stats_->all_start_micros(), 0); in RecordComputeStarted() 112 DCHECK_NE(stats_->all_start_nanos(), 0); in RecordComputeStarted() 113 stats_->set_op_start_rel_micros(now_nanos / EnvTime::kMicrosToNanos - in RecordComputeStarted() 114 stats_->all_start_micros()); in RecordComputeStarted() [all …]
|
/external/tensorflow/tensorflow/core/framework/ |
D | allocator.cc | 125 ++stats_.num_allocs; in AllocateRaw() 126 stats_.bytes_in_use += alloc_size; in AllocateRaw() 127 stats_.peak_bytes_in_use = in AllocateRaw() 128 std::max<int64>(stats_.peak_bytes_in_use, stats_.bytes_in_use); in AllocateRaw() 129 stats_.largest_alloc_size = in AllocateRaw() 130 std::max<int64>(stats_.largest_alloc_size, alloc_size); in AllocateRaw() 132 if (stats_.bytes_in_use > TotalAllocationWarningBytes() && in AllocateRaw() 135 LOG(WARNING) << "Total allocated memory " << stats_.bytes_in_use in AllocateRaw() 148 stats_.bytes_in_use -= alloc_size; in DeallocateRaw() 155 return stats_; in GetStats() [all …]
|
/external/tensorflow/tensorflow/cc/profiler/ |
D | profiler.cc | 23 stats_.reset(new TFStats(std::move(graph_ptr), nullptr, nullptr, nullptr)); in Profiler() 29 stats_->AddRunMeta(step, std::move(run_meta_ptr)); in AddStep() 33 stats_->BuildView(kCmds[1]); in ProfileGraph() 34 return stats_->ShowGraphNode(kCmds[1], options); in ProfileGraph() 38 stats_->BuildView(kCmds[0]); in ProfileNameScope() 39 return stats_->ShowGraphNode(kCmds[0], options); in ProfileNameScope() 43 stats_->BuildView(kCmds[3]); in ProfileOperations() 44 return stats_->ShowMultiGraphNode(kCmds[3], options); in ProfileOperations() 52 stats_->SerializeToString(content); in SerializeToString()
|
/external/tensorflow/tensorflow/contrib/tensor_forest/kernels/v4/ |
D | split_collection_operators.cc | 72 stats_[slot.node_id()] = CreateGrowStats(slot.node_id(), slot.depth()); in ExtractFromProto() 73 stats_[slot.node_id()]->ExtractFromProto(slot); in ExtractFromProto() 78 for (const auto& pair : stats_) { in PackToProto() 89 stats_[node_id] = std::unique_ptr<GrowStats>(CreateGrowStats(node_id, depth)); in InitializeSlot() 90 stats_[node_id]->Initialize(); in InitializeSlot() 96 auto* slot = stats_.at(node_id).get(); in AddExample() 103 auto it = stats_.find(node_id); in IsInitialized() 104 if (it == stats_.end()) { in IsInitialized() 136 stats_.at(node_id)->AddSplit(split, input_data, target, example); in CreateAndInitializeCandidateWithExample() 141 auto* slot = stats_.at(node_id).get(); in BestSplit()
|
/external/image_io/includes/image_io/utils/ |
D | message_stats_writer.h | 25 : stats_(message_stats), outputter_(outputter), name_(name) {} in MessageStatsWriter() 29 const string kError = stats_->error_count == 1 ? "error" : "errors"; in ~MessageStatsWriter() 30 const string kWarning = stats_->warning_count == 1 ? "warning" : "warnings"; in ~MessageStatsWriter() 33 << name_ << " finished, " << stats_->error_count << " " << kError << ", " in ~MessageStatsWriter() 34 << stats_->warning_count << " " << kWarning << std::endl; in ~MessageStatsWriter() 39 std::shared_ptr<MessageStats> stats_;
|
/external/webrtc/talk/app/webrtc/ |
D | rtpsender.cc | 69 stats_(stats), in AudioRtpSender() 83 stats_(stats), in AudioRtpSender() 118 if (can_send_track() && stats_) { in SetTrack() 119 stats_->RemoveLocalAudioTrack(track_.get(), ssrc_); in SetTrack() 134 if (stats_) { in SetTrack() 135 stats_->AddLocalAudioTrack(track_.get(), ssrc_); in SetTrack() 152 if (stats_) { in SetSsrc() 153 stats_->RemoveLocalAudioTrack(track_.get(), ssrc_); in SetSsrc() 159 if (stats_) { in SetSsrc() 160 stats_->AddLocalAudioTrack(track_.get(), ssrc_); in SetSsrc() [all …]
|
/external/tensorflow/tensorflow/core/profiler/internal/advisor/ |
D | tfprof_advisor.h | 32 Advisor(const TFStats* stats) : stats_(stats) {} in Advisor() 46 AdviceProto ret = RunInternalCheckers(options, stats_); in Advise() 51 au_checker.Run(options.checkers().at(kCheckers[0]), stats_)); in Advise() 56 op_checker.Run(options.checkers().at(kCheckers[1]), stats_)); in Advise() 62 stats_)); in Advise() 75 const TFStats* stats_;
|
D | tfprof_advisor_test.cc | 29 stats_.reset(new TFStats(std::unique_ptr<GraphDef>(new GraphDef()), nullptr, in TFProfAdvisorTest() 32 stats_->AddNodeForTest( in TFProfAdvisorTest() 34 stats_->AddNodeForTest(0, CreateNode("n2", "Conv2D", {}, 0, 20, 2)); in TFProfAdvisorTest() 35 stats_->BuildAllViews(); in TFProfAdvisorTest() 36 advisor_.reset(new Advisor(stats_.get())); in TFProfAdvisorTest() 68 std::unique_ptr<TFStats> stats_; member in tensorflow::tfprof::TFProfAdvisorTest
|
/external/perf_data_converter/src/quipper/ |
D | perf_parser.cc | 143 stats_ = {0}; in ProcessEvents() 145 stats_.did_remap = false; // Explicitly clear the remap flag. in ProcessEvents() 173 ++stats_.num_sample_events; in ProcessEvents() 174 if (MapSampleEvent(&parsed_event)) ++stats_.num_sample_events_mapped; in ProcessEvents() 181 ++stats_.num_mmap_events; in ProcessEvents() 204 ++stats_.num_fork_events; in ProcessEvents() 213 ++stats_.num_exit_events; in ProcessEvents() 222 ++stats_.num_comm_events; in ProcessEvents() 257 << stats_.num_mmap_events << " MMAP/MMAP2 events, " in ProcessEvents() 258 << stats_.num_comm_events << " COMM events, " in ProcessEvents() [all …]
|
/external/webrtc/talk/media/webrtc/ |
D | fakewebrtccall.cc | 51 stats_ = stats; in SetStats() 68 return stats_; in GetStats() 84 stats_ = stats; in SetStats() 92 return stats_; in GetStats() 172 stats_ = stats; in SetStats() 176 return stats_; in GetStats() 229 return stats_; in GetStats() 242 stats_ = stats; in SetStats() 416 stats_ = stats; in SetStats() 428 return stats_; in GetStats()
|