Lines Matching refs:appCaller

388 static std::shared_ptr<AppCallerEvent> InnerCreateAppCallerEvent(UCollectClient::AppCaller &appCaller,

394 appCallerEvent->isBusinessJank_ = appCaller.isBusinessJank;
395 appCallerEvent->bundleName_ = appCaller.bundleName;
396 appCallerEvent->bundleVersion_ = appCaller.bundleVersion;
397 appCallerEvent->uid_ = appCaller.uid;
398 appCallerEvent->pid_ = appCaller.pid;
399 appCallerEvent->happenTime_ = static_cast<uint64_t>(appCaller.happenTime);
400 appCallerEvent->beginTime_ = appCaller.beginTime;
401 appCallerEvent->endTime_ = appCaller.endTime;
405 appCallerEvent->foreground_ = appCaller.foreground;
406 appCallerEvent->threadName_ = appCaller.threadName;
410 static CollectResult<int32_t> InnerResponseAppTrace(UCollectClient::AppCaller &appCaller, const std::string &eventName)
419 appCaller.uid, appCaller.pid);
424 std::shared_ptr<AppCallerEvent> appCallerEvent = InnerCreateAppCallerEvent(appCaller, eventName);
428 eventName.c_str(), appCaller.uid, appCaller.pid, appCallerEvent->resultCode_);
435 static CollectResult<int32_t> InnerResponseStartAppTrace(UCollectClient::AppCaller &appCaller)
437 return InnerResponseAppTrace(appCaller, UCollectUtil::START_APP_TRACE);
440 static CollectResult<int32_t> InnerResponseDumpAppTrace(UCollectClient::AppCaller &appCaller)
442 return InnerResponseAppTrace(appCaller, UCollectUtil::DUMP_APP_TRACE);
445 CollectResult<int32_t> HiviewService::CaptureDurationTrace(UCollectClient::AppCaller &appCaller)
451 appCaller.uid, appCaller.pid);
456 if (appCaller.actionId == UCollectClient::ACTION_ID_START_TRACE) {
457 return InnerResponseStartAppTrace(appCaller);
458 } else if (appCaller.actionId == UCollectClient::ACTION_ID_DUMP_TRACE) {
459 return InnerResponseDumpAppTrace(appCaller);
462 appCaller.actionId, appCaller.uid, appCaller.pid);