Home
last modified time | relevance | path

Searched refs:currentCost (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/communication/ipc/ipc/native/test/unittest/common/
H A Dipc_payload_statistics_impl_unittest.cpp415 uint32_t currentCost = 10; variable
435 EXPECT_EQ(instance.GetCost(pid), currentCost);
445 EXPECT_EQ(cost.totalCost, currentCost);
446 EXPECT_EQ(cost.maxCost, currentCost);
447 EXPECT_EQ(cost.minCost, currentCost);
448 EXPECT_EQ(cost.averCost, currentCost / currentCount);
465 uint32_t currentCost = 5; variable
494 EXPECT_EQ(cost.totalCost, currentCost);
495 EXPECT_EQ(cost.maxCost, currentCost);
496 EXPECT_EQ(cost.minCost, currentCost);
[all …]
/ohos5.0/foundation/communication/ipc/ipc/native/src/core/source/
H A Dipc_payload_statistics_impl.cpp245 const int32_t pid, const std::u16string &desc, const int32_t code, const uint32_t currentCost) in UpdatePayloadInfo() argument
247 if (currentCost == 0 || !isStatisticsFlag_) { in UpdatePayloadInfo()
258 payloadInfo.cost.totalCost = currentCost; in UpdatePayloadInfo()
259 payloadInfo.cost.maxCost = currentCost; in UpdatePayloadInfo()
260 payloadInfo.cost.minCost = currentCost; in UpdatePayloadInfo()
279 iterDesc->second.cost.totalCost += currentCost; in UpdatePayloadInfo()
280 if (iterDesc->second.cost.maxCost < currentCost) { in UpdatePayloadInfo()
281 iterDesc->second.cost.maxCost = currentCost; in UpdatePayloadInfo()
283 if (iterDesc->second.cost.minCost > currentCost) { in UpdatePayloadInfo()
284 iterDesc->second.cost.minCost = currentCost; in UpdatePayloadInfo()
/ohos5.0/foundation/communication/ipc/ipc/native/src/core/include/
H A Dipc_payload_statistics_impl.h68 … const int32_t pid, const std::u16string &desc, const int32_t code, const uint32_t currentCost);