/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/ |
H A D | dfx_instr_statistic.cpp | 48 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 D | battery_stats_module.cpp | 45 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 D | io_collector_impl.cpp | 224 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 D | service_controller.h | 67 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 D | log_stats.h | 132 StatsEntry stats;
member 141 StatsEntry stats[TypeNum];
member
|
H A D | log_buffer.h | 81 LogStats stats; member in OHOS::HiviewDFX::HilogBuffer
|
/base/hiviewdfx/hiview/plugins/performance/monitor/ |
H A D | JankAnimatorMonitor.cpp | 34 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 D | JankAnimatorMonitor.h | 34 JankAnimatorMonitor(IMonitorThrExecutor* thr, IAnimatorSceneDataProcessor* stats, IJankAnimatorReporter* report); 46 IAnimatorSceneDataProcessor* stats{nullptr};
|
/base/hiviewdfx/hilog/services/hilogd/ |
H A D | service_controller.cpp | 183 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 D | log_stats.cpp | 138 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 D | log_buffer.cpp | 401 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 D | io_collector.h | 27 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 D | io.h | 58 DiskStats stats;
member 93 ProcessIoStats stats;
member
|
/base/web/webview/ohos_interface/ohos_glue/base/bridge/ |
H A D | ark_web_bridge_helper.cpp | 107 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 D | decorator.cpp | 62 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 D | hilog_cmd.h | 207 StatsRsp stats; member 212 StatsRsp stats; member 225 StatsRsp stats; member 231 StatsRsp stats; member
|
/base/hiviewdfx/hilog/services/hilogtool/ |
H A D | log_display.cpp | 149 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 D | fault_logger_daemon.cpp | 978 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 D | io_collector_test.cpp | 99 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 D | decorator.h | 86 static void WriteLinesToFile(const std::vector<std::string>& stats, bool addBlankLine);
|
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/inner_include/ |
H A D | io_collector_impl.h | 56 bool ProcIoStatsFilter(const ProcessIoStats& stats);
|
/base/hiviewdfx/hiview/plugins/unified_collector/ |
H A D | unified_collector.cpp | 478 (void)ioCollector->CollectDiskStats([](const DiskStats &stats) { return false; }, true);
in IoCollectionTask()
|