Home
last modified time | relevance | path

Searched refs:stats (Results 1 – 25 of 65) sorted by relevance

123

/foundation/communication/netmanager_base/test/netsysbpfstats/unittest/netsys_bpf_stats_test/
Dnetsys_bpf_stats_test.cpp75 uint64_t stats = 0; variable
76 bpfStats->GetTotalStats(stats, StatsType::STATS_TYPE_RX_BYTES);
77 EXPECT_GE(stats, 0);
78 bpfStats->GetTotalStats(stats, StatsType::STATS_TYPE_RX_PACKETS);
79 EXPECT_GE(stats, 0);
80 bpfStats->GetTotalStats(stats, StatsType::STATS_TYPE_TX_BYTES);
81 EXPECT_GE(stats, 0);
82 bpfStats->GetTotalStats(stats, StatsType::STATS_TYPE_TX_PACKETS);
83 EXPECT_GE(stats, 0);
89 uint64_t stats = 0; variable
[all …]
/foundation/arkui/ace_engine_lite/frameworks/tools/qt/simulator/jsfwk/targets/simulator/utils/
Djs_heap_stats_dumper.cpp35 JSHeapStatus stats; in Dump() local
36 if (!JSI::GetJSHeapStatus(stats)) { in Dump()
40 if (HasChanged(stats)) { in Dump()
41 HandleChange(stats); in Dump()
45 bool JSHeapStatsDumper::HasChanged(const JSHeapStatus &stats) const in HasChanged()
47 return stats.allocBytes != stats_.allocBytes || stats.peakAllocBytes != stats_.peakAllocBytes; in HasChanged()
50 void JSHeapStatsDumper::HandleChange(const JSHeapStatus &stats) in HandleChange() argument
52 UpdateStats(stats); in HandleChange()
53 LogStats(stats); in HandleChange()
54 SaveStats(stats); in HandleChange()
[all …]
Djs_heap_stats_dumper.h32 bool HasChanged(const JSHeapStatus &stats) const;
33 void HandleChange(const JSHeapStatus &stats);
34 void UpdateStats(const JSHeapStatus &stats);
35 void LogStats(const JSHeapStatus &stats) const;
36 void SaveStats(const JSHeapStatus &stats);
/foundation/communication/netmanager_base/frameworks/native/netstatsclient/src/
Dnet_stats_info.cpp50 bool NetStatsInfo::Marshalling(Parcel &parcel, const NetStatsInfo &stats) in Marshalling() argument
52 if (!parcel.WriteUint32(stats.uid_)) { in Marshalling()
55 if (!parcel.WriteString(stats.iface_)) { in Marshalling()
58 if (!parcel.WriteUint64(stats.date_)) { in Marshalling()
61 if (!parcel.WriteUint64(stats.rxBytes_)) { in Marshalling()
64 if (!parcel.WriteUint64(stats.txBytes_)) { in Marshalling()
67 if (!parcel.WriteUint64(stats.rxPackets_)) { in Marshalling()
70 if (!parcel.WriteUint64(stats.txPackets_)) { in Marshalling()
112 bool NetStatsInfo::Unmarshalling(Parcel &parcel, NetStatsInfo &stats) in Unmarshalling() argument
114 if (!parcel.ReadUint32(stats.uid_)) { in Unmarshalling()
[all …]
Dnet_stats_client.cpp116 int32_t NetStatsClient::GetIfaceRxBytes(uint64_t &stats, const std::string &interfaceName) in GetIfaceRxBytes() argument
123 return proxy->GetIfaceRxBytes(stats, interfaceName); in GetIfaceRxBytes()
126 int32_t NetStatsClient::GetIfaceTxBytes(uint64_t &stats, const std::string &interfaceName) in GetIfaceTxBytes() argument
133 return proxy->GetIfaceTxBytes(stats, interfaceName); in GetIfaceTxBytes()
136 int32_t NetStatsClient::GetCellularRxBytes(uint64_t &stats) in GetCellularRxBytes() argument
143 return proxy->GetCellularRxBytes(stats); in GetCellularRxBytes()
146 int32_t NetStatsClient::GetCellularTxBytes(uint64_t &stats) in GetCellularTxBytes() argument
153 return proxy->GetCellularTxBytes(stats); in GetCellularTxBytes()
156 int32_t NetStatsClient::GetAllRxBytes(uint64_t &stats) in GetAllRxBytes() argument
163 return proxy->GetAllRxBytes(stats); in GetAllRxBytes()
[all …]
/foundation/communication/netmanager_base/services/netmanagernative/bpf/src/
Dbpf_stats.cpp27 int32_t NetsysBpfStats::GetNumberFromStatsValue(uint64_t &stats, StatsType statsType, const stats_v… in GetNumberFromStatsValue() argument
31 stats = value.rxBytes; in GetNumberFromStatsValue()
34 stats = value.rxPackets; in GetNumberFromStatsValue()
37 stats = value.txBytes; in GetNumberFromStatsValue()
40 stats = value.txPackets; in GetNumberFromStatsValue()
49 int32_t NetsysBpfStats::GetTotalStats(uint64_t &stats, StatsType statsType) in GetTotalStats() argument
51 stats = 0; in GetTotalStats()
72 return GetNumberFromStatsValue(stats, statsType, totalStats); in GetTotalStats()
75 int32_t NetsysBpfStats::GetUidStats(uint64_t &stats, StatsType statsType, uint32_t uid) in GetUidStats() argument
77 stats = 0; in GetUidStats()
[all …]
/foundation/communication/netmanager_base/test/netstatsmanager/unittest/net_stats_manager_test/
Dnet_stats_service_proxy_test.cpp269 uint64_t stats = 0; variable
271 EXPECT_EQ(instance_.GetIfaceRxBytes(stats, ETH_IFACE_NAME), NETMANAGER_ERR_LOCAL_PTR_NULL);
281 uint64_t stats = 0; variable
284 EXPECT_EQ(instance_.GetIfaceRxBytes(stats, ETH_IFACE_NAME), NETMANAGER_ERR_OPERATION_FAILED);
294 uint64_t stats = 0; variable
297 EXPECT_EQ(instance_.GetIfaceRxBytes(stats, ETH_IFACE_NAME), NETSYS_SUCCESS);
298 EXPECT_EQ(stats, STATS_CODE);
308 uint64_t stats = 0; variable
310 EXPECT_EQ(instance_.GetIfaceTxBytes(stats, ETH_IFACE_NAME), NETMANAGER_ERR_LOCAL_PTR_NULL);
320 uint64_t stats = 0; variable
[all …]
Dnet_stats_service_test.cpp128 uint64_t stats = 0; variable
129 …int32_t ret = DelayedSingleton<NetStatsService>::GetInstance()->GetIfaceRxBytes(stats, ETH_IFACE_N…
130 EXPECT_GE(stats, static_cast<uint64_t>(0));
141 uint64_t stats = 0; variable
142 …int32_t ret = DelayedSingleton<NetStatsService>::GetInstance()->GetIfaceTxBytes(stats, ETH_IFACE_N…
143 EXPECT_GE(stats, static_cast<uint64_t>(0));
155 uint64_t stats = 0; variable
156 int32_t ret = DelayedSingleton<NetStatsService>::GetInstance()->GetCellularRxBytes(stats);
162 EXPECT_GE(stats, static_cast<uint64_t>(0));
173 uint64_t stats = 0; variable
[all …]
Dnet_stats_client_test.cpp160 uint64_t stats = 0; variable
161 …int32_t ret = DelayedSingleton<NetStatsClient>::GetInstance()->GetIfaceRxBytes(stats, ETH_IFACE_NA…
162 EXPECT_GE(stats, static_cast<uint64_t>(0));
173 uint64_t stats = 0; variable
174 …int32_t ret = DelayedSingleton<NetStatsClient>::GetInstance()->GetIfaceTxBytes(stats, ETH_IFACE_NA…
175 EXPECT_GE(stats, static_cast<uint64_t>(0));
187 uint64_t stats = 0; variable
188 int32_t ret = DelayedSingleton<NetStatsClient>::GetInstance()->GetCellularRxBytes(stats);
194 EXPECT_GE(stats, static_cast<uint64_t>(0));
205 uint64_t stats = 0; variable
[all …]
/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/streammsgmanager_fuzzer/
Dstreammsgmanager_fuzzer.cpp30 Communication::SoftBus::HistoryStats stats; in SendTest() local
31 stats.periodFrameNum = size; in SendTest()
34 streamMsgManager.Send((const Communication::SoftBus::HistoryStats &)stats); in SendTest()
42 Communication::SoftBus::HistoryStats stats; in RecvTest() local
43 stats.periodFrameNum = size; in RecvTest()
46 streamMsgManager.Recv((const Communication::SoftBus::HistoryStats &)stats); in RecvTest()
54 Communication::SoftBus::HistoryStats stats; in UpdateTest() local
55 stats.periodFrameNum = size; in UpdateTest()
58 streamMsgManager.Update((const Communication::SoftBus::HistoryStats &)stats); in UpdateTest()
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream/
Dstream_msg_manager.cpp29 bool StreamMsgManager::Send(const HistoryStats &stats) in Send() argument
31 static_cast<void>(stats); in Send()
35 void StreamMsgManager::Update(const HistoryStats &stats) in Update() argument
37 historyStatsSet_.push_back(stats); in Update()
40 void StreamMsgManager::Recv(const HistoryStats &stats) in Recv() argument
42 static_cast<void>(stats); in Recv()
Dstream_msg_manager.h32 bool Send(const HistoryStats &stats);
33 void Recv(const HistoryStats &stats);
35 void Update(const HistoryStats &stats);
/foundation/communication/netmanager_base/interfaces/innerkits/netstatsclient/include/proxy/
Di_net_stats_service.h34 virtual int32_t GetIfaceRxBytes(uint64_t &stats, const std::string &interfaceName) = 0;
35 virtual int32_t GetIfaceTxBytes(uint64_t &stats, const std::string &interfaceName) = 0;
36 virtual int32_t GetCellularRxBytes(uint64_t &stats) = 0;
37 virtual int32_t GetCellularTxBytes(uint64_t &stats) = 0;
38 virtual int32_t GetAllRxBytes(uint64_t &stats) = 0;
39 virtual int32_t GetAllTxBytes(uint64_t &stats) = 0;
40 virtual int32_t GetUidRxBytes(uint64_t &stats, uint32_t uid) = 0;
41 virtual int32_t GetUidTxBytes(uint64_t &stats, uint32_t uid) = 0;
50 const NetStatsInfo &stats) = 0;
Dnet_stats_service_proxy.h30 int32_t GetIfaceRxBytes(uint64_t &stats, const std::string &interfaceName) override;
31 int32_t GetIfaceTxBytes(uint64_t &stats, const std::string &interfaceName) override;
32 int32_t GetCellularRxBytes(uint64_t &stats) override;
33 int32_t GetCellularTxBytes(uint64_t &stats) override;
34 int32_t GetAllRxBytes(uint64_t &stats) override;
35 int32_t GetAllTxBytes(uint64_t &stats) override;
36 int32_t GetUidRxBytes(uint64_t &stats, uint32_t uid) override;
37 int32_t GetUidTxBytes(uint64_t &stats, uint32_t uid) override;
44 const NetStatsInfo &stats) override;
/foundation/resourceschedule/device_usage_statistics/services/packageusage/src/
Dbundle_active_stats_combiner.cpp21 …const std::shared_ptr<BundleActivePeriodStats>& stats, std::vector<BundleActivePackageStats>& accu… in combine() argument
25 for (auto it : stats->bundleStats_) { in combine()
32 …iveStatsCombiner<BundleActiveEvent>::combine(const std::shared_ptr<BundleActivePeriodStats>& stats, in combine() argument
36 int32_t startIndex = stats->events_.FindBestIndex(beginTime); in combine()
37 int32_t size = static_cast<int32_t>(stats->events_.events_.size()); in combine()
39 accumulatedResult.push_back(stats->events_.events_[i]); in combine()
/foundation/communication/netmanager_base/interfaces/innerkits/netstatsclient/include/
Dnet_stats_client.h64 int32_t GetIfaceRxBytes(uint64_t &stats, const std::string &interfaceName);
75 int32_t GetIfaceTxBytes(uint64_t &stats, const std::string &interfaceName);
85 int32_t GetCellularRxBytes(uint64_t &stats);
95 int32_t GetCellularTxBytes(uint64_t &stats);
105 int32_t GetAllRxBytes(uint64_t &stats);
115 int32_t GetAllTxBytes(uint64_t &stats);
126 int32_t GetUidRxBytes(uint64_t &stats, uint32_t uid);
137 int32_t GetUidTxBytes(uint64_t &stats, uint32_t uid);
188 …dateIfacesStats(const std::string &iface, uint64_t start, uint64_t end, const NetStatsInfo &stats);
/foundation/communication/netmanager_base/services/netstatsmanager/include/
Dnet_stats_service.h42 int32_t GetIfaceRxBytes(uint64_t &stats, const std::string &interfaceName) override;
43 int32_t GetIfaceTxBytes(uint64_t &stats, const std::string &interfaceName) override;
44 int32_t GetCellularRxBytes(uint64_t &stats) override;
45 int32_t GetCellularTxBytes(uint64_t &stats) override;
46 int32_t GetAllRxBytes(uint64_t &stats) override;
47 int32_t GetAllTxBytes(uint64_t &stats) override;
48 int32_t GetUidRxBytes(uint64_t &stats, uint32_t uid) override;
49 int32_t GetUidTxBytes(uint64_t &stats, uint32_t uid) override;
58 const NetStatsInfo &stats) override;
/foundation/communication/netmanager_base/services/netmanagernative/bpf/include/
Dbpf_stats.h48 int32_t GetTotalStats(uint64_t &stats, StatsType type);
58 int32_t GetUidStats(uint64_t &stats, StatsType type, uint32_t uid);
68 int32_t GetIfaceStats(uint64_t &stats, StatsType type, const std::string &interfaceName);
76 int32_t GetAllStatsInfo(std::vector<OHOS::NetManagerStandard::NetStatsInfo> &stats);
79 …static int32_t GetNumberFromStatsValue(uint64_t &stats, StatsType statsType, const stats_value &va…
/foundation/communication/netmanager_base/services/netstatsmanager/src/stub/
Dnet_stats_service_stub.cpp147 uint64_t stats = 0; in OnGetIfaceRxBytes() local
153 int32_t result = GetIfaceRxBytes(stats, iface); in OnGetIfaceRxBytes()
159 if (!reply.WriteUint64(stats)) { in OnGetIfaceRxBytes()
169 uint64_t stats = 0; in OnGetIfaceTxBytes() local
176 int32_t result = GetIfaceTxBytes(stats, iface); in OnGetIfaceTxBytes()
182 if (!reply.WriteUint64(stats)) { in OnGetIfaceTxBytes()
192 uint64_t stats = 0; in OnGetCellularRxBytes() local
193 int32_t ret = GetCellularRxBytes(stats); in OnGetCellularRxBytes()
199 if (!reply.WriteUint64(stats)) { in OnGetCellularRxBytes()
209 uint64_t stats = 0; in OnGetCellularTxBytes() local
[all …]
/foundation/communication/netmanager_base/services/netstatsmanager/src/
Dnet_stats_service.cpp198 int32_t NetStatsService::GetIfaceRxBytes(uint64_t &stats, const std::string &interfaceName) in GetIfaceRxBytes() argument
200 …return NetsysController::GetInstance().GetIfaceStats(stats, static_cast<uint32_t>(StatsType::STATS… in GetIfaceRxBytes()
204 int32_t NetStatsService::GetIfaceTxBytes(uint64_t &stats, const std::string &interfaceName) in GetIfaceTxBytes() argument
206 …return NetsysController::GetInstance().GetIfaceStats(stats, static_cast<uint32_t>(StatsType::STATS… in GetIfaceTxBytes()
210 int32_t NetStatsService::GetCellularRxBytes(uint64_t &stats) in GetCellularRxBytes() argument
225 stats += totalCellular; in GetCellularRxBytes()
230 int32_t NetStatsService::GetCellularTxBytes(uint64_t &stats) in GetCellularTxBytes() argument
245 stats += totalCellular; in GetCellularTxBytes()
250 int32_t NetStatsService::GetAllRxBytes(uint64_t &stats) in GetAllRxBytes() argument
252 …return NetsysController::GetInstance().GetTotalStats(stats, static_cast<uint32_t>(StatsType::STATS… in GetAllRxBytes()
[all …]
/foundation/communication/netmanager_base/frameworks/native/netstatsclient/src/proxy/
Dnet_stats_service_proxy.cpp106 int32_t NetStatsServiceProxy::GetIfaceRxBytes(uint64_t &stats, const std::string &interfaceName) in GetIfaceRxBytes() argument
131 if (!reply.ReadUint64(stats)) { in GetIfaceRxBytes()
138 int32_t NetStatsServiceProxy::GetIfaceTxBytes(uint64_t &stats, const std::string &interfaceName) in GetIfaceTxBytes() argument
163 if (!reply.ReadUint64(stats)) { in GetIfaceTxBytes()
170 int32_t NetStatsServiceProxy::GetCellularRxBytes(uint64_t &stats) in GetCellularRxBytes() argument
191 if (!reply.ReadUint64(stats)) { in GetCellularRxBytes()
198 int32_t NetStatsServiceProxy::GetCellularTxBytes(uint64_t &stats) in GetCellularTxBytes() argument
219 if (!reply.ReadUint64(stats)) { in GetCellularTxBytes()
226 int32_t NetStatsServiceProxy::GetAllRxBytes(uint64_t &stats) in GetAllRxBytes() argument
247 if (!reply.ReadUint64(stats)) { in GetAllRxBytes()
[all …]
/foundation/resourceschedule/device_usage_statistics/services/packageusage/include/
Dbundle_active_stats_combiner.h28 …void combine(const std::shared_ptr<BundleActivePeriodStats>& stats, std::vector<T>& accumulatedRes…
34 void combine(const std::shared_ptr<BundleActivePeriodStats>& stats,
40 void combine(const std::shared_ptr<BundleActivePeriodStats>& stats,
/foundation/arkui/napi/scope_manager/
Dnative_scope_manager.h100 ChunkStats stats(scope, currentHandleStorageIndex_, ptr_, end_); in PushChunkStats()
101 chunkStats_.emplace_back(stats); in PushChunkStats()
121 ChunkStats& stats = chunkStats_.back(); in PopChunkStatsAndReset() local
122 ChunkReset(stats.prevScopeIndex_, stats.prevNext_, stats.prevEnd_); in PopChunkStatsAndReset()
127 for (; index > stats.prevScopeIndex_; index--) { in PopChunkStatsAndReset()
/foundation/arkui/ace_engine_lite/frameworks/common/memory/
Dmem_proc.cpp119 jerry_heap_stats_t stats = {0}; in JerryMemTracing() local
120 if (!jerry_get_memory_stats(&stats)) { in JerryMemTracing()
131 size_t total = stats.size; in JerryMemTracing()
132 size_t current = stats.allocated_bytes; in JerryMemTracing()
133 size_t peak = stats.peak_allocated_bytes; in JerryMemTracing()
/foundation/communication/netmanager_base/test/fuzztest/netstatsclient_fuzzer/
Dnet_stats_client_fuzzer.cpp354 NetStatsInfo stats; in UpdateIfacesStatsFuzzTest() local
355 stats.iface_ = GetStringFromData(STR_LEN); in UpdateIfacesStatsFuzzTest()
356 stats.uid_ = GetData<uint32_t>(); in UpdateIfacesStatsFuzzTest()
357 stats.date_ = GetData<uint64_t>(); in UpdateIfacesStatsFuzzTest()
358 stats.rxBytes_ = GetData<uint64_t>(); in UpdateIfacesStatsFuzzTest()
359 stats.txBytes_ = GetData<uint64_t>(); in UpdateIfacesStatsFuzzTest()
360 stats.rxPackets_ = GetData<uint64_t>(); in UpdateIfacesStatsFuzzTest()
361 stats.txPackets_ = GetData<uint64_t>(); in UpdateIfacesStatsFuzzTest()
362 stats.Marshalling(dataParcel); in UpdateIfacesStatsFuzzTest()

123