Home
last modified time | relevance | path

Searched refs:httpPerfInfo (Results 1 - 5 of 5) sorted by relevance

/foundation/communication/netstack/test/unittest/utils/common_utils/
H A Dnetstack_hisysevent_test.cpp41 HttpPerfInfo httpPerfInfo; in HWTEST_F() local
42 httpPerfInfo.responseCode = 200; in HWTEST_F()
43 ASSERT_TRUE(httpPerfInfo.IsSuccess()); in HWTEST_F()
48 HttpPerfInfo httpPerfInfo; in HWTEST_F() local
49 httpPerfInfo.responseCode = 199; in HWTEST_F()
50 ASSERT_FALSE(httpPerfInfo.IsSuccess()); in HWTEST_F()
55 HttpPerfInfo httpPerfInfo; in HWTEST_F() local
56 httpPerfInfo.responseCode = 400; in HWTEST_F()
57 ASSERT_FALSE(httpPerfInfo.IsSuccess()); in HWTEST_F()
74 HttpPerfInfo httpPerfInfo; in HWTEST_F() local
83 HttpPerfInfo httpPerfInfo; HWTEST_F() local
92 HttpPerfInfo httpPerfInfo; HWTEST_F() local
102 HttpPerfInfo httpPerfInfo; HWTEST_F() local
[all...]
/foundation/communication/netstack/utils/common_utils/src/
H A Dnetstack_hisysevent.cpp77 void EventReport::ProcessHttpPerfHiSysevent(const HttpPerfInfo &httpPerfInfo) in ProcessHttpPerfHiSysevent() argument
86 if (httpPerfInfo.IsSuccess() && httpPerfInfo.totalTime != 0) { in ProcessHttpPerfHiSysevent()
88 eventInfo.totalTime += httpPerfInfo.totalTime; in ProcessHttpPerfHiSysevent()
89 eventInfo.totalRate += httpPerfInfo.size / httpPerfInfo.totalTime; in ProcessHttpPerfHiSysevent()
90 eventInfo.totalDnsTime += httpPerfInfo.dnsTime; in ProcessHttpPerfHiSysevent()
91 eventInfo.totalTlsTime += httpPerfInfo.tlsTime; in ProcessHttpPerfHiSysevent()
92 eventInfo.totalFirstRecvTime += httpPerfInfo.firstRecvTime; in ProcessHttpPerfHiSysevent()
93 eventInfo.totalTcpTime += httpPerfInfo in ProcessHttpPerfHiSysevent()
[all...]
/foundation/communication/netstack/frameworks/native/http/http_client/
H A Dhttp_client_task.cpp676 HttpPerfInfo httpPerfInfo; in DumpHttpPerformance() local
677 httpPerfInfo.totalTime = totalTime; in DumpHttpPerformance()
678 httpPerfInfo.size = size; in DumpHttpPerformance()
679 httpPerfInfo.dnsTime = dnsTime; in DumpHttpPerformance()
680 httpPerfInfo.tlsTime = tlsTime == 0 ? 0 : tlsTime - connectTime; in DumpHttpPerformance()
681 httpPerfInfo.tcpTime = connectTime == 0 ? 0 : connectTime - dnsTime; in DumpHttpPerformance()
682 httpPerfInfo.firstRecvTime = firstRecvTime == 0 ? 0 : firstRecvTime - firstSendTime; in DumpHttpPerformance()
683 httpPerfInfo.responseCode = responseCode; in DumpHttpPerformance()
684 httpPerfInfo.version = std::to_string(httpVer); in DumpHttpPerformance()
685 EventReport::GetInstance().ProcessHttpPerfHiSysevent(httpPerfInfo); in DumpHttpPerformance()
[all...]
/foundation/communication/netstack/utils/common_utils/include/
H A Dnetstack_hisysevent.h55 void ProcessHttpPerfHiSysevent(const HttpPerfInfo &httpPerfInfo);
/foundation/communication/netstack/frameworks/js/napi/http/http_exec/src/
H A Dhttp_exec.cpp472 HttpPerfInfo httpPerfInfo; in AddCurlHandle() local
473 httpPerfInfo.totalTime = totalTime; in AddCurlHandle()
474 httpPerfInfo.size = size; in AddCurlHandle()
475 httpPerfInfo.dnsTime = dnsTime; in AddCurlHandle()
476 httpPerfInfo.tlsTime = tlsTime == 0 ? 0 : tlsTime - connectTime; in AddCurlHandle()
477 httpPerfInfo.tcpTime = connectTime == 0 ? 0 : connectTime - dnsTime; in AddCurlHandle()
478 httpPerfInfo.firstRecvTime = firstRecvTime == 0 ? 0 : firstRecvTime - firstSendTime; in AddCurlHandle()
479 httpPerfInfo.responseCode = responseCode; in AddCurlHandle()
480 httpPerfInfo.version = std::to_string(httpVer); in AddCurlHandle()
481 EventReport::GetInstance().ProcessHttpPerfHiSysevent(httpPerfInfo); in AddCurlHandle()
[all...]

Completed in 4 milliseconds