/base/hiviewdfx/hiview/framework/native/unified_collection/decorator/include/ |
H A D | trace_decorator.h | 35 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 D | decorator.h | 77 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 D | trace_utils.cpp | 254 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 D | trace_flow_controller.cpp | 53 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 D | cpu_util.cpp | 79 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 D | trace_utils.h | 28 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 D | trace_flow_controller.h | 28 using OHOS::HiviewDFX::UCollect::UcError;
34 TraceFlowController(UCollect::TraceCaller caller = UCollect::TraceCaller::INVALIDITY);
73 UCollect::TraceCaller caller_;
|
H A D | trace_collector_impl.h | 30 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 D | hiebpf_collector_impl.cpp | 26 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 D | trace_collector_impl.cpp | 33 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 D | hilog_collector_impl.cpp | 65 result.retCode = UCollect::SYSTEM_ERROR; in CollectLastLog() 85 result.retCode = UCollect::SUCCESS; in CollectLastLog()
|
/base/hiviewdfx/hiview/plugins/unified_collector/task/ |
H A D | cpu_collection_task.cpp | 31 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 D | collect_result.h | 20 namespace UCollect {
namespace 52 } // UCollect
58 retCode = UCollect::UcError::UNSUPPORT;
in CollectResult() 62 UCollect::UcError retCode;
|
H A D | trace_caller.h | 20 namespace UCollect {
namespace
|
/base/hiviewdfx/hiview/service/ |
H A D | hiview_service.cpp | 309 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 D | cpu_util.h | 56 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 D | thermal_collector_test.cpp | 34 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 D | trace_collector_test.cpp | 27 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 D | trace_collector.h | 34 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 D | hiview_service_memory_delegate.cpp | 27 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 D | app_trace_context.cpp | 68 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 D | hitrace_cmd.cpp | 667 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 D | trace_collector_client.h | 53 UCollect::TraceCaller caller = UCollect::TraceCaller::OTHER) = 0;
|
/base/hiviewdfx/hiview/interfaces/inner_api/unified_collection/client/src/ |
H A D | cpu_collector_client_impl.cpp | 19 using namespace OHOS::HiviewDFX::UCollect;
|
/base/hiviewdfx/hiview/service/test/fuzztest/common/hiviewservice_fuzzer/ |
H A D | hiviewservice_fuzzer.cpp | 78 UCollect::TraceCaller caller = static_cast<UCollect::TraceCaller>(*data); in HiViewServiceDumpSnapshotTraceFuzzTest()
|