Home
last modified time | relevance | path

Searched refs:UCollect (Results 1 - 25 of 71) sorted by relevance

123

/base/hiviewdfx/hiview/framework/native/unified_collection/decorator/include/
H A Dtrace_decorator.h35 const std::unordered_map<UCollect::TraceCaller, std::string> CallerMap {
36 {UCollect::RELIABILITY, "RELIABILITY"},
37 {UCollect::XPERF, "XPERF"},
38 {UCollect::XPOWER, "XPOWER"},
39 {UCollect::BETACLUB, "BETACLUB"},
40 {UCollect::DEVELOP, "DEVELOP"},
41 {UCollect::OTHER, "OTHER"}
90 void UpdateTraceStatInfo(uint64_t startTime, uint64_t endTime, UCollect::TraceCaller& caller,
111 virtual CollectResult<std::vector<std::string>> DumpTrace(UCollect::TraceCaller &caller) override;
112 virtual CollectResult<std::vector<std::string>> DumpTraceWithDuration(UCollect
[all...]
H A Ddecorator.h77 isCallSucc = (result == UCollect::UcError::SUCCESS); in Invoke()
79 isCallSucc = (result.retCode == UCollect::UcError::SUCCESS); in Invoke()
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/utils/
H A Dtrace_utils.cpp254 std::shared_ptr<CleanPolicy> GetCleanPolicy(int type, UCollect::TraceCaller &caller) in GetCleanPolicy()
257 if (caller == UCollect::TraceCaller::APP) { in GetCleanPolicy()
264 if (caller == UCollect::TraceCaller::XPERF) { in GetCleanPolicy()
268 if (caller == UCollect::TraceCaller::RELIABILITY) { in GetCleanPolicy()
272 if (caller == UCollect::TraceCaller::APP) { in GetCleanPolicy()
278 void FileRemove(UCollect::TraceCaller &caller) in FileRemove()
283 case UCollect::TraceCaller::XPOWER: in FileRemove()
284 case UCollect::TraceCaller::HIVIEW: in FileRemove()
287 case UCollect::TraceCaller::RELIABILITY: in FileRemove()
288 case UCollect in FileRemove()
[all...]
H A Dtrace_flow_controller.cpp53 const std::unordered_map<UCollect::TraceCaller, std::pair<std::string, int64_t>> TRACE_QUOTA = {
54 {UCollect::TraceCaller::XPERF, {"xperf", XPERF_SIZE}},
55 {UCollect::TraceCaller::XPOWER, {"xpower", XPOWER_SIZE}},
56 {UCollect::TraceCaller::RELIABILITY, {"reliability", GetActualReliabilitySize()}},
57 {UCollect::TraceCaller::HIVIEW, {"hiview", HIVIEW_SIZE}},
58 {UCollect::TraceCaller::FOUNDATION, {"foundation", FOUNDATION_SIZE}},
89 TraceFlowController::TraceFlowController(UCollect::TraceCaller caller) : caller_(caller) in TraceFlowController()
220 UCollect::TraceCaller caller = UCollect::TraceCaller::APP; in CleanOldAppTrace()
/base/hiviewdfx/hiview/framework/native/unified_collection/utils/
H A Dcpu_util.cpp79 UCollect::UcError CpuUtil::GetSysCpuLoad(SysCpuLoad& sysCpuLoad) in GetSysCpuLoad()
85 return UCollect::READ_FAILED; in GetSysCpuLoad()
92 return UCollect::READ_FAILED; in GetSysCpuLoad()
97 return UCollect::SUCCESS; in GetSysCpuLoad()
100 UCollect::UcError CpuUtil::GetCpuTimeInfos(std::vector<CpuTimeInfo>& cpuInfos) in GetCpuTimeInfos()
106 return UCollect::READ_FAILED; in GetCpuTimeInfos()
116 return UCollect::SUCCESS; in GetCpuTimeInfos()
119 UCollect::UcError CpuUtil::GetCpuFrequency(std::vector<CpuFreq>& cpuFreqs) in GetCpuFrequency()
123 return UCollect::READ_FAILED; in GetCpuFrequency()
139 return UCollect in GetCpuFrequency()
[all...]
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/inner_include/
H A Dtrace_utils.h28 using OHOS::HiviewDFX::UCollect::UcError;
46 void FileRemove(UCollect::TraceCaller &caller);
49 const std::string EnumToString(UCollect::TraceCaller &caller);
50 std::vector<std::string> GetUnifiedFiles(Hitrace::TraceRetInfo ret, UCollect::TraceCaller &caller);
52 std::vector<std::string> GetUnifiedShareFiles(Hitrace::TraceRetInfo ret, UCollect::TraceCaller &caller);
54 UCollect::TraceCaller &caller);
H A Dtrace_flow_controller.h28 using OHOS::HiviewDFX::UCollect::UcError;
34 TraceFlowController(UCollect::TraceCaller caller = UCollect::TraceCaller::INVALIDITY);
73 UCollect::TraceCaller caller_;
H A Dtrace_collector_impl.h30 virtual CollectResult<std::vector<std::string>> DumpTrace(UCollect::TraceCaller &caller) override;
32 UCollect::TraceCaller &caller, uint32_t timeLimit, uint64_t happenTime = 0) override;
36 CollectResult<std::vector<std::string>> StartDumpTrace(UCollect::TraceCaller &caller,
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/
H A Dhiebpf_collector_impl.cpp26 using namespace OHOS::HiviewDFX::UCollect;
45 result.retCode = UCollect::UcError::UNSUPPORT; in StartHiebpf()
52 result.retCode = UCollect::UcError::SUCCESS; in StartHiebpf()
68 result.retCode = UCollect::UcError::UNSUPPORT; in StopHiebpf()
73 result.retCode = UCollect::UcError::SUCCESS; in StopHiebpf()
H A Dtrace_collector_impl.cpp33 using namespace OHOS::HiviewDFX::UCollect;
50 UCollect::TraceCaller &caller, uint32_t timeLimit, uint64_t happenTime) in DumpTraceWithDuration()
58 CollectResult<std::vector<std::string>> TraceCollectorImpl::DumpTrace(UCollect::TraceCaller &caller) in DumpTrace()
63 CollectResult<std::vector<std::string>> TraceCollectorImpl::StartDumpTrace(UCollect::TraceCaller &caller, in StartDumpTrace()
95 if (caller == UCollect::TraceCaller::DEVELOP) { in StartDumpTrace()
H A Dhilog_collector_impl.cpp65 result.retCode = UCollect::SYSTEM_ERROR; in CollectLastLog()
85 result.retCode = UCollect::SUCCESS; in CollectLastLog()
/base/hiviewdfx/hiview/plugins/unified_collector/task/
H A Dcpu_collection_task.cpp31 UCollect::TraceCaller caller;
81 {"hiview", UCollect::TraceCaller::HIVIEW, 0.07, false}, // 0.07 : 7% cpu load in CheckAndDumpTraceData()
82 {"foundation", UCollect::TraceCaller::FOUNDATION, 0.2, false}, // 0.2 : 20% cpu load in CheckAndDumpTraceData()
112 if (cpuCollectionsResult.retCode == UCollect::UcError::SUCCESS) { in CollectCpuData()
123 if (Parameter::IsBetaVersion() && threadCpuCollectResult.retCode == UCollect::UcError::SUCCESS) { in CollectCpuData()
/base/hiviewdfx/hiview/interfaces/inner_api/unified_collection/
H A Dcollect_result.h20 namespace UCollect { namespace
52 } // UCollect
58 retCode = UCollect::UcError::UNSUPPORT; in CollectResult()
62 UCollect::UcError retCode;
H A Dtrace_caller.h20 namespace UCollect { namespace
/base/hiviewdfx/hiview/service/
H A Dhiview_service.cpp309 if (openRet != UCollect::UcError::SUCCESS) { in OpenSnapshotTrace()
313 ret.retCode = UCollect::UcError(openRet); in OpenSnapshotTrace()
317 CollectResult<std::vector<std::string>> HiviewService::DumpSnapshotTrace(UCollect::TraceCaller caller) in DumpSnapshotTrace()
321 if (dumpRet.retCode != UCollect::UcError::SUCCESS) { in DumpSnapshotTrace()
331 if (openRet != UCollect::UcError::SUCCESS) { in OpenRecordingTrace()
335 ret.retCode = UCollect::UcError(openRet); in OpenRecordingTrace()
342 if (traceOnRet.retCode != UCollect::UcError::SUCCESS) { in RecordingTraceOn()
351 if (traceOffRet.retCode != UCollect::UcError::SUCCESS) { in RecordingTraceOff()
357 if (recoverRet != UCollect::UcError::SUCCESS) { in RecordingTraceOff()
359 traceOffRet.retCode = UCollect in RecordingTraceOff()
[all...]
/base/hiviewdfx/hiview/framework/native/unified_collection/utils/include/
H A Dcpu_util.h56 static UCollect::UcError GetSysCpuLoad(SysCpuLoad& sysCpuLoad);
57 static UCollect::UcError GetCpuTimeInfos(std::vector<CpuTimeInfo>& cpuInfos);
58 static UCollect::UcError GetCpuFrequency(std::vector<CpuFreq>& cpuFreqs);
/base/hiviewdfx/hiview/test/unittest/unified_collection/utility/
H A Dthermal_collector_test.cpp34 if (result.retCode == UCollect::UcError::SUCCESS) { in TestResult()
37 ASSERT_EQ(result.retCode, UCollect::UcError::UNSUPPORT); in TestResult()
72 ASSERT_EQ(result.retCode, UCollect::UcError::SUCCESS); in HWTEST_F()
74 ASSERT_EQ(result.retCode, UCollect::UcError::UNSUPPORT); in HWTEST_F()
H A Dtrace_collector_test.cpp27 using namespace OHOS::HiviewDFX::UCollect;
53 UCollect::TraceCaller caller = UCollect::TraceCaller::XPERF; in HWTEST_F()
76 UCollect::TraceCaller caller = UCollect::TraceCaller::XPOWER; in HWTEST_F()
100 UCollect::TraceCaller caller = UCollect::TraceCaller::RELIABILITY; in HWTEST_F()
147 UCollect::TraceCaller caller = UCollect::TraceCaller::BETACLUB; in HWTEST_F()
173 UCollect in HWTEST_F()
[all...]
/base/hiviewdfx/hiview/interfaces/inner_api/unified_collection/utility/
H A Dtrace_collector.h34 virtual CollectResult<std::vector<std::string>> DumpTrace(UCollect::TraceCaller &caller) = 0;
35 virtual CollectResult<std::vector<std::string>> DumpTraceWithDuration(UCollect::TraceCaller &caller,
/base/hiviewdfx/hiview/adapter/service/client/src/
H A Dhiview_service_memory_delegate.cpp27 ret.retCode = UCollect::SYSTEM_ERROR; in SetAppResourceLimit()
39 ret.retCode = UCollect::SYSTEM_ERROR; in GetGraphicUsage()
/base/hiviewdfx/hiview/plugins/unified_collector/app_trace/
H A Dapp_trace_context.cpp68 if (retCode != UCollect::UcError::SUCCESS) { in InnerStartAppTrace()
78 if (result.retCode != UCollect::UcError::SUCCESS) { in InnerStartAppTrace()
92 if (result.retCode != UCollect::UcError::SUCCESS) { in InnerDumpAppTrace()
152 appCallerEvent->resultCode_ = UCollect::UcError::HAD_CAPTURED_TRACE; in InnerHasCallAppTrace()
223 appCallerEvent_->resultCode_ = UCollect::UcError::INVALID_TRACE_STATE; in Accept()
254 appCallerEvent_->resultCode_ = UCollect::UcError::EXISTS_CAPTURE_TASK; in DoCaptureTrace()
272 appCallerEvent_->resultCode_ = UCollect::UcError::SUCCESS; in DoCaptureTrace()
285 appCallerEvent_->resultCode_ = UCollect::UcError::INCONSISTENT_PROCESS; in Accept()
291 appCallerEvent_->resultCode_ = UCollect::UcError::INVALID_TRACE_STATE; in Accept()
315 appCallerEvent_->resultCode_ = UCollect in DoCaptureTrace()
[all...]
/base/hiviewdfx/hitrace/cmd/src/
H A Dhitrace_cmd.cpp667 if (openRet.retCode != OHOS::HiviewDFX::UCollect::UcError::SUCCESS) { in HandleRecordingShortRaw()
669 if (openRet.retCode == OHOS::HiviewDFX::UCollect::UcError::TRACE_IS_OCCUPIED || in HandleRecordingShortRaw()
670 openRet.retCode == OHOS::HiviewDFX::UCollect::UcError::TRACE_CALL_ERROR) { in HandleRecordingShortRaw()
679 if (recOnRet.retCode != OHOS::HiviewDFX::UCollect::UcError::SUCCESS) { in HandleRecordingShortRaw()
688 if (recOffRet.retCode != OHOS::HiviewDFX::UCollect::UcError::SUCCESS) { in HandleRecordingShortRaw()
705 if (openRet.retCode != OHOS::HiviewDFX::UCollect::UcError::SUCCESS) { in HandleRecordingShortText()
707 if (openRet.retCode == OHOS::HiviewDFX::UCollect::UcError::TRACE_IS_OCCUPIED || in HandleRecordingShortText()
708 openRet.retCode == OHOS::HiviewDFX::UCollect::UcError::TRACE_CALL_ERROR) { in HandleRecordingShortText()
737 if (openRet.retCode != OHOS::HiviewDFX::UCollect::UcError::SUCCESS) { in HandleRecordingLongBegin()
739 if (openRet.retCode == OHOS::HiviewDFX::UCollect in HandleRecordingLongBegin()
[all...]
/base/hiviewdfx/hiview/interfaces/inner_api/unified_collection/client/
H A Dtrace_collector_client.h53 UCollect::TraceCaller caller = UCollect::TraceCaller::OTHER) = 0;
/base/hiviewdfx/hiview/interfaces/inner_api/unified_collection/client/src/
H A Dcpu_collector_client_impl.cpp19 using namespace OHOS::HiviewDFX::UCollect;
/base/hiviewdfx/hiview/service/test/fuzztest/common/hiviewservice_fuzzer/
H A Dhiviewservice_fuzzer.cpp78 UCollect::TraceCaller caller = static_cast<UCollect::TraceCaller>(*data); in HiViewServiceDumpSnapshotTraceFuzzTest()

Completed in 12 milliseconds

123