Home
last modified time | relevance | path

Searched refs:stats (Results 1 - 22 of 22) sorted by relevance

/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/
H A Ddfx_instr_statistic.cpp48 std::shared_ptr<std::vector<std::pair<uint64_t, uint64_t>>> stats; in AddInstrStatistic() local
51 stats = iter->second; in AddInstrStatistic()
53 stats = std::make_shared<std::vector<std::pair<uint64_t, uint64_t>>>(); in AddInstrStatistic()
54 statisticInfo_[type] = stats; in AddInstrStatistic()
56 if (stats != nullptr) { in AddInstrStatistic()
57 stats->push_back(std::make_pair(val, err)); in AddInstrStatistic()
67 std::shared_ptr<std::vector<std::pair<uint64_t, uint64_t>>> stats = iter->second; in DumpInstrStatResult() local
68 if (stats == nullptr) { in DumpInstrStatResult()
77 type, (uint64_t) stats->size()); in DumpInstrStatResult()
78 for (size_t i = 0; i < stats in DumpInstrStatResult()
[all...]
/base/powermgr/battery_statistics/frameworks/napi/src/
H A Dbattery_stats_module.cpp45 BatteryStats stats(env); in GetBatteryStats()
50 stats.StatsAsyncCallBack(argv[ARGV_IND_0]); in GetBatteryStats()
54 return stats.StatsPromise(); in GetBatteryStats()
59 BatteryStats stats(env); in GetAppStatsMah()
60 return stats.GetAppStatsMah(info, MAX_ARGC, ARGV_IND_0); in GetAppStatsMah()
65 BatteryStats stats(env); in GetAppStatsPercent()
66 return stats.GetAppStatsPercent(info, MAX_ARGC, ARGV_IND_0); in GetAppStatsPercent()
71 BatteryStats stats(env); in GetPartStatsMah()
72 return stats.GetPartStatsMah(info, MAX_ARGC, ARGV_IND_0); in GetPartStatsMah()
77 BatteryStats stats(en in GetPartStatsPercent()
[all...]
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/
H A Dio_collector_impl.cpp224 HIVIEW_LOGI("collect disk stats size=%{public}zu, isUpdate=%{public}d", result.data.size(), isUpdate); in CollectDiskStats()
244 if (!it->second.stats.deviceName.empty() && !filter(it->second.stats)) { in GetDiskStats()
245 diskStats.push_back(it->second.stats); in GetDiskStats()
301 DiskStats& stats = device.stats; in CalculateDeviceDiskStats() local
302 stats.deviceName = deviceName; in CalculateDeviceDiskStats()
304 stats.sectorReadRate = IoCalculator::PercentValue(preData.sectorRead, currData.sectorRead, period); in CalculateDeviceDiskStats()
305 stats.sectorWriteRate = IoCalculator::PercentValue(preData.sectorWrite, currData.sectorWrite, period); in CalculateDeviceDiskStats()
306 stats in CalculateDeviceDiskStats()
531 ProcIoStatsFilter(const ProcessIoStats& stats) ProcIoStatsFilter() argument
558 ProcessIoStats& stats = statsInfo.stats; CalculateProcIoStats() local
[all...]
/base/hiviewdfx/hilog/services/hilogd/include/
H A Dservice_controller.h67 void SendOverallStats(const LogStats& stats);
68 void SendLogTypeDomainStats(const LogStats& stats);
69 void SendDomainStats(const LogStats& stats);
70 void SendDomainTagStats(const LogStats& stats);
71 void SendProcStats(const LogStats& stats);
72 void SendProcLogTypeStats(const LogStats& stats);
73 void SendProcTagStats(const LogStats& stats);
H A Dlog_stats.h132 StatsEntry stats; member
141 StatsEntry stats[TypeNum]; member
H A Dlog_buffer.h81 LogStats stats; member in OHOS::HiviewDFX::HilogBuffer
/base/hiviewdfx/hiview/plugins/performance/monitor/
H A DJankAnimatorMonitor.cpp34 JankAnimatorMonitor::JankAnimatorMonitor(IMonitorThrExecutor* thr, IAnimatorSceneDataProcessor* stats, in JankAnimatorMonitor() argument
38 this->stats = stats; in JankAnimatorMonitor()
67 if (stats != nullptr) { in ProcessStats()
68 stats->ProcessSceneData(evt); in ProcessStats()
70 HIVIEW_LOGE("[JankAnimatorMonitor::ProcessStats] stats is null"); in ProcessStats()
H A DJankAnimatorMonitor.h34 JankAnimatorMonitor(IMonitorThrExecutor* thr, IAnimatorSceneDataProcessor* stats, IJankAnimatorReporter* report);
46 IAnimatorSceneDataProcessor* stats{nullptr};
/base/hiviewdfx/hilog/services/hilogd/
H A Dservice_controller.cpp183 void ServiceController::SendOverallStats(const LogStats& stats) in SendOverallStats() argument
186 const LogTypeDomainTable& ldTable = stats.GetDomainTable(); in SendOverallStats()
187 const PidTable& pTable = stats.GetPidTable(); in SendOverallStats()
188 const LogTimeStamp tsBegin = stats.GetBeginTs(); in SendOverallStats()
191 const LogTimeStamp monoBegin = stats.GetBeginMono(); in SendOverallStats()
196 stats.GetTotalLines(rsp.totalLines); in SendOverallStats()
197 stats.GetTotalLens(rsp.totalLens); in SendOverallStats()
211 void ServiceController::SendLogTypeDomainStats(const LogStats& stats) in SendLogTypeDomainStats() argument
213 const LogTypeDomainTable& ldTable = stats.GetDomainTable(); in SendLogTypeDomainStats()
251 void ServiceController::SendDomainStats(const LogStats& stats) in SendDomainStats() argument
289 SendDomainTagStats(const LogStats& stats) SendDomainTagStats() argument
302 SendProcStats(const LogStats& stats) SendProcStats() argument
349 SendProcLogTypeStats(const LogStats& stats) SendProcLogTypeStats() argument
392 SendProcTagStats(const LogStats& stats) SendProcTagStats() argument
772 LogStats& stats = m_hilogBuffer.GetStatsInfo(); HandleStatsQueryRqst() local
[all...]
H A Dlog_stats.cpp138 UpdateStats(it->second.stats, info); in UpdateDomainTable()
141 StatsInfo2NewStatsEntry(info, entry.stats); in UpdateDomainTable()
158 UpdateStats(it->second.stats[info.type], info); in UpdatePidTable()
162 for (StatsEntry &e : entry.stats) { in UpdatePidTable()
165 entry.stats[info.type] = entry.statsAll; in UpdatePidTable()
263 it.second.stats.Print(); in Print()
277 for (auto &s : t.second.stats) { in Print()
H A Dlog_buffer.cpp401 stats.Count(info); in CountLog()
406 stats.Reset(); in ResetStats()
411 return stats; in GetStatsInfo()
/base/hiviewdfx/hiview/interfaces/inner_api/unified_collection/utility/
H A Dio_collector.h27 static bool DefaultDiskStatsFilter(const DiskStats &stats) in DefaultDiskStatsFilter() argument
29 return (stats.operReadRate == 0 && stats.operWriteRate == 0); in DefaultDiskStatsFilter()
/base/hiviewdfx/hiview/interfaces/inner_api/unified_collection/resource/
H A Dio.h58 DiskStats stats; member
93 ProcessIoStats stats; member
/base/web/webview/ohos_interface/ohos_glue/base/bridge/
H A Dark_web_bridge_helper.cpp107 struct stat stats; in PrereadLibFile() local
108 if (stat(realPath, &stats) < 0) { in PrereadLibFile()
135 int readCnt = stats.st_size / SINGLE_READ_SIZE; in PrereadLibFile()
136 if (readCnt * SINGLE_READ_SIZE < stats.st_size) { in PrereadLibFile()
/base/hiviewdfx/hiview/framework/native/unified_collection/decorator/
H A Ddecorator.cpp62 void UCDecorator::WriteLinesToFile(const std::vector<std::string>& stats, bool addBlankLine)
69 for (const auto& record : stats) {
/base/hiviewdfx/hilog/frameworks/libhilog/include/
H A Dhilog_cmd.h207 StatsRsp stats; member
212 StatsRsp stats; member
225 StatsRsp stats; member
231 StatsRsp stats; member
/base/hiviewdfx/hilog/services/hilogtool/
H A Dlog_display.cpp149 return GetTotalLen(a.stats) > GetTotalLen(b.stats); in SortByLens()
188 PrintStats(dStats.stats); in HilogShowDomainStatsInfo()
201 PrintStats(tStats.stats); in HilogShowDomainStatsInfo()
245 PrintStats(pStats.stats); in HilogShowProcStatsInfo()
253 if (GetTotalLines(lStats.stats) == 0) { in HilogShowProcStatsInfo()
257 PrintStats(lStats.stats); in HilogShowProcStatsInfo()
268 PrintStats(tStats.stats); in HilogShowProcStatsInfo()
/base/hiviewdfx/faultloggerd/services/
H A Dfault_logger_daemon.cpp978 DumpStats stats; in HandleDumpStats() local
980 stats.pid = request->pid; in HandleDumpStats()
981 stats.signalTime = request->signalTime; in HandleDumpStats()
982 stats.processdumpStartTime = request->processdumpStartTime; in HandleDumpStats()
983 stats.processdumpFinishTime = request->processdumpFinishTime; in HandleDumpStats()
984 stats.targetProcessName = request->targetProcess; in HandleDumpStats()
985 stats_.emplace_back(stats); in HandleDumpStats()
996 stats.pid = request->pid; in HandleDumpStats()
997 stats.requestTime = request->requestTime; in HandleDumpStats()
998 stats in HandleDumpStats()
[all...]
/base/hiviewdfx/hiview/test/unittest/unified_collection/utility/
H A Dio_collector_test.cpp99 std::cout << "collect raw disk stats result " << result.retCode << std::endl; in HWTEST_F()
111 auto result = collect->CollectDiskStats([] (const DiskStats &stats) { in HWTEST_F()
114 std::cout << "collect disk stats result " << result.retCode << std::endl; in HWTEST_F()
126 auto result = collect->ExportDiskStats([] (const DiskStats &stats) { in HWTEST_F()
129 std::cout << "export disk stats result " << result.retCode << std::endl; in HWTEST_F()
136 std::cout << "export disk stats nextResult " << nextResult.retCode << std::endl; in HWTEST_F()
150 auto result = collect->CollectDiskStats([] (const DiskStats &stats) { in HWTEST_F()
153 std::cout << "export disk stats result " << result.retCode << std::endl; in HWTEST_F()
158 std::cout << "export disk stats nextResult " << nextResult.retCode << std::endl; in HWTEST_F()
201 std::cout << "collect all proc io stats resul in HWTEST_F()
[all...]
/base/hiviewdfx/hiview/framework/native/unified_collection/decorator/include/
H A Ddecorator.h86 static void WriteLinesToFile(const std::vector<std::string>& stats, bool addBlankLine);
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/inner_include/
H A Dio_collector_impl.h56 bool ProcIoStatsFilter(const ProcessIoStats& stats);
/base/hiviewdfx/hiview/plugins/unified_collector/
H A Dunified_collector.cpp478 (void)ioCollector->CollectDiskStats([](const DiskStats &stats) { return false; }, true); in IoCollectionTask()

Completed in 20 milliseconds