Searched refs:GetCost (Results 1 – 10 of 10) sorted by relevance
40 uint64_t IPCPayloadStatistics::GetCost(const int32_t pid) in GetCost() function in OHOS::IPCPayloadStatistics42 return IPCPayloadStatisticsImpl::GetInstance().GetCost(pid); in GetCost()
112 uint64_t IPCPayloadStatisticsImpl::GetCost(const int32_t pid) in GetCost() function in OHOS::IPCPayloadStatisticsImpl
218 EXPECT_EQ(instance.GetCost(PID_1), 0);230 EXPECT_EQ(instance.GetCost(PID_1), DEFAULT_TOTAL_COST);231 EXPECT_EQ(instance.GetCost(PID_2), DEFAULT_TOTAL_COST * DOUBLE_COEFFICIENT);232 EXPECT_EQ(instance.GetCost(PID_3), DEFAULT_TOTAL_COST * TRIPLE_COEFFICIENT);435 EXPECT_EQ(instance.GetCost(pid), currentCost);484 EXPECT_EQ(instance.GetCost(pid), DEFAULT_TOTAL_COST + currentCost);532 EXPECT_EQ(instance.GetCost(pid), DEFAULT_TOTAL_COST + currentCost);
113 EXPECT_EQ(IPCPayloadStatistics::GetCost(PID), 0);123 EXPECT_EQ(IPCPayloadStatistics::GetCost(INVALID_PID), 0);
62 static uint64_t GetCost(const int32_t pid);
56 uint64_t GetCost(const int32_t pid);
67 result += std::to_string(IPCPayloadStatistics::GetCost(pid)); in DumpIpcStat()
60 result += std::to_string(IPCPayloadStatistics::GetCost(pids[i])); in GetIpcStatistics()
263 << " PidCost = " << IPCPayloadStatistics::GetCost(val) << std::endl; in Dump()
195 result += std::to_string(IPCPayloadStatistics::GetCost(pids[i])); in GetSamgrIpcStatistics()